@fedify/vocab 2.1.0-dev.543 → 2.1.0-dev.592
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 +2 -1
- package/dist/mod.cjs +225 -224
- package/dist/mod.js +3 -2
- package/{dist → dist-tests}/actor.test.js +5 -5
- package/{dist/deno-D76TUHGu.js → dist-tests/deno-BAfIdRCq.js} +3 -2
- package/{dist → dist-tests}/lookup.test.js +7 -6
- package/{dist → dist-tests}/type.test.js +3 -2
- package/{dist/vocab-BL0T9S6o.js → dist-tests/vocab-dV6QKnk_.js} +30 -6263
- package/{dist → dist-tests}/vocab.test.js +3 -2
- package/package.json +6 -7
- package/tsdown.config.ts +14 -5
- package/dist/actor.test.d.ts +0 -2
- package/dist/chunk-BeeFIeNn.js +0 -45
- package/dist/execAsync-Bj-9hhe9.js +0 -17
- package/dist/getMachineId-bsd-JZpH2DVB.js +0 -34
- package/dist/getMachineId-darwin-CIJUQhqg.js +0 -30
- package/dist/getMachineId-linux-l0DNcix-.js +0 -27
- package/dist/getMachineId-unsupported-DFK1bZgt.js +0 -20
- package/dist/getMachineId-win-B0bq2tSf.js +0 -32
- package/dist/lookup.test.d.ts +0 -2
- package/dist/type.test.d.ts +0 -2
- package/dist/vocab.test.d.ts +0 -2
- /package/{dist → dist-tests}/accept.yaml +0 -0
- /package/{dist → dist-tests}/activity.yaml +0 -0
- /package/{dist → dist-tests}/add.yaml +0 -0
- /package/{dist → dist-tests}/announce.yaml +0 -0
- /package/{dist → dist-tests}/announceauthorization.yaml +0 -0
- /package/{dist → dist-tests}/announcerequest.yaml +0 -0
- /package/{dist → dist-tests}/application.yaml +0 -0
- /package/{dist → dist-tests}/arrive.yaml +0 -0
- /package/{dist → dist-tests}/article.yaml +0 -0
- /package/{dist → dist-tests}/audio.yaml +0 -0
- /package/{dist → dist-tests}/block.yaml +0 -0
- /package/{dist → dist-tests}/chatmessage.yaml +0 -0
- /package/{dist → dist-tests}/collection.yaml +0 -0
- /package/{dist → dist-tests}/collectionpage.yaml +0 -0
- /package/{dist → dist-tests}/create.yaml +0 -0
- /package/{dist → dist-tests}/dataintegrityproof.yaml +0 -0
- /package/{dist → dist-tests}/delete.yaml +0 -0
- /package/{dist → dist-tests}/didservice.yaml +0 -0
- /package/{dist → dist-tests}/dislike.yaml +0 -0
- /package/{dist → dist-tests}/document.yaml +0 -0
- /package/{dist → dist-tests}/emoji.yaml +0 -0
- /package/{dist → dist-tests}/emojireact.yaml +0 -0
- /package/{dist → dist-tests}/endpoints.yaml +0 -0
- /package/{dist → dist-tests}/event.yaml +0 -0
- /package/{dist → dist-tests}/export.yaml +0 -0
- /package/{dist → dist-tests}/flag.yaml +0 -0
- /package/{dist → dist-tests}/follow.yaml +0 -0
- /package/{dist → dist-tests}/group.yaml +0 -0
- /package/{dist → dist-tests}/hashtag.yaml +0 -0
- /package/{dist → dist-tests}/ignore.yaml +0 -0
- /package/{dist → dist-tests}/image.yaml +0 -0
- /package/{dist → dist-tests}/interactionpolicy.yaml +0 -0
- /package/{dist → dist-tests}/interactionrule.yaml +0 -0
- /package/{dist → dist-tests}/intransitiveactivity.yaml +0 -0
- /package/{dist → dist-tests}/invite.yaml +0 -0
- /package/{dist → dist-tests}/join.yaml +0 -0
- /package/{dist → dist-tests}/key.yaml +0 -0
- /package/{dist → dist-tests}/leave.yaml +0 -0
- /package/{dist → dist-tests}/like.yaml +0 -0
- /package/{dist → dist-tests}/likeauthorization.yaml +0 -0
- /package/{dist → dist-tests}/likerequest.yaml +0 -0
- /package/{dist → dist-tests}/link.yaml +0 -0
- /package/{dist → dist-tests}/listen.yaml +0 -0
- /package/{dist → dist-tests}/mention.yaml +0 -0
- /package/{dist → dist-tests}/move.yaml +0 -0
- /package/{dist → dist-tests}/multikey.yaml +0 -0
- /package/{dist → dist-tests}/note.yaml +0 -0
- /package/{dist → dist-tests}/object.yaml +0 -0
- /package/{dist → dist-tests}/offer.yaml +0 -0
- /package/{dist → dist-tests}/orderedcollection.yaml +0 -0
- /package/{dist → dist-tests}/orderedcollectionpage.yaml +0 -0
- /package/{dist → dist-tests}/organization.yaml +0 -0
- /package/{dist → dist-tests}/page.yaml +0 -0
- /package/{dist → dist-tests}/person.yaml +0 -0
- /package/{dist → dist-tests}/place.yaml +0 -0
- /package/{dist → dist-tests}/profile.yaml +0 -0
- /package/{dist → dist-tests}/propertyvalue.yaml +0 -0
- /package/{dist → dist-tests}/question.yaml +0 -0
- /package/{dist → dist-tests}/read.yaml +0 -0
- /package/{dist → dist-tests}/reject.yaml +0 -0
- /package/{dist → dist-tests}/relationship.yaml +0 -0
- /package/{dist → dist-tests}/remove.yaml +0 -0
- /package/{dist → dist-tests}/replyauthorization.yaml +0 -0
- /package/{dist → dist-tests}/replyrequest.yaml +0 -0
- /package/{dist → dist-tests}/service.yaml +0 -0
- /package/{dist → dist-tests}/source.yaml +0 -0
- /package/{dist → dist-tests}/tentativeaccept.yaml +0 -0
- /package/{dist → dist-tests}/tentativereject.yaml +0 -0
- /package/{dist → dist-tests}/tombstone.yaml +0 -0
- /package/{dist → dist-tests}/travel.yaml +0 -0
- /package/{dist/type-Dnf0m2yO.js → dist-tests/type-CNuABalk.js} +0 -0
- /package/{dist → dist-tests}/undo.yaml +0 -0
- /package/{dist → dist-tests}/update.yaml +0 -0
- /package/{dist/utils-Dm0Onkcz.js → dist-tests/utils-BSWXlrig.js} +0 -0
- /package/{dist → dist-tests}/video.yaml +0 -0
- /package/{dist → dist-tests}/view.yaml +0 -0
package/dist/mod.cjs
CHANGED
|
@@ -27,14 +27,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
const __fedify_webfinger = __toESM(require("@fedify/webfinger"));
|
|
28
28
|
const __opentelemetry_api = __toESM(require("@opentelemetry/api"));
|
|
29
29
|
const node_url = __toESM(require("node:url"));
|
|
30
|
-
const
|
|
30
|
+
const __fedify_vocab_runtime_jsonld = __toESM(require("@fedify/vocab-runtime/jsonld"));
|
|
31
31
|
const __logtape_logtape = __toESM(require("@logtape/logtape"));
|
|
32
32
|
const __fedify_vocab_runtime = __toESM(require("@fedify/vocab-runtime"));
|
|
33
33
|
const es_toolkit = __toESM(require("es-toolkit"));
|
|
34
34
|
|
|
35
35
|
//#region deno.json
|
|
36
36
|
var name = "@fedify/vocab";
|
|
37
|
-
var version = "2.1.0-dev.
|
|
37
|
+
var version = "2.1.0-dev.592+6c1f6e6f";
|
|
38
38
|
var license = "MIT";
|
|
39
39
|
var exports$1 = { ".": "./src/mod.ts" };
|
|
40
40
|
var description = "Vocabularies library for @fedify/fedify";
|
|
@@ -50,6 +50,7 @@ var imports = {
|
|
|
50
50
|
};
|
|
51
51
|
var exclude = [
|
|
52
52
|
"dist/",
|
|
53
|
+
"dist-tests/",
|
|
53
54
|
"node_modules/",
|
|
54
55
|
"src/*.yaml",
|
|
55
56
|
"!src/vocab.ts"
|
|
@@ -5150,7 +5151,7 @@ var Object$1 = class Object$1 {
|
|
|
5150
5151
|
}
|
|
5151
5152
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Object"];
|
|
5152
5153
|
if (this.id != null) values["@id"] = this.id.href;
|
|
5153
|
-
if (options.format === "expand") return await
|
|
5154
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
5154
5155
|
const docContext = options.context ?? [
|
|
5155
5156
|
"https://www.w3.org/ns/activitystreams",
|
|
5156
5157
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -5164,7 +5165,7 @@ var Object$1 = class Object$1 {
|
|
|
5164
5165
|
}
|
|
5165
5166
|
}
|
|
5166
5167
|
];
|
|
5167
|
-
const compacted = await
|
|
5168
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
5168
5169
|
if (docContext != null) {
|
|
5169
5170
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
5170
5171
|
else compacted.proof["@context"] = docContext;
|
|
@@ -5221,7 +5222,7 @@ var Object$1 = class Object$1 {
|
|
|
5221
5222
|
let values;
|
|
5222
5223
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
5223
5224
|
else {
|
|
5224
|
-
const expanded = await
|
|
5225
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
5225
5226
|
documentLoader: options.contextLoader,
|
|
5226
5227
|
keepFreeFloatingNodes: true
|
|
5227
5228
|
});
|
|
@@ -6574,12 +6575,12 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6574
6575
|
const values = baseValues[0];
|
|
6575
6576
|
values["@type"] = ["http://joinmastodon.org/ns#Emoji"];
|
|
6576
6577
|
if (this.id != null) values["@id"] = this.id.href;
|
|
6577
|
-
if (options.format === "expand") return await
|
|
6578
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
6578
6579
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
|
|
6579
6580
|
"toot": "http://joinmastodon.org/ns#",
|
|
6580
6581
|
"Emoji": "toot:Emoji"
|
|
6581
6582
|
}];
|
|
6582
|
-
const compacted = await
|
|
6583
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
6583
6584
|
if (docContext != null) {
|
|
6584
6585
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
6585
6586
|
else compacted.proof["@context"] = docContext;
|
|
@@ -6631,7 +6632,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
6631
6632
|
let values;
|
|
6632
6633
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
6633
6634
|
else {
|
|
6634
|
-
const expanded = await
|
|
6635
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
6635
6636
|
documentLoader: options.contextLoader,
|
|
6636
6637
|
keepFreeFloatingNodes: true
|
|
6637
6638
|
});
|
|
@@ -6808,7 +6809,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6808
6809
|
}
|
|
6809
6810
|
values["@type"] = ["http://litepub.social/ns#ChatMessage"];
|
|
6810
6811
|
if (this.id != null) values["@id"] = this.id.href;
|
|
6811
|
-
if (options.format === "expand") return await
|
|
6812
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
6812
6813
|
const docContext = options.context ?? [
|
|
6813
6814
|
"https://www.w3.org/ns/activitystreams",
|
|
6814
6815
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -6828,7 +6829,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6828
6829
|
}
|
|
6829
6830
|
}
|
|
6830
6831
|
];
|
|
6831
|
-
const compacted = await
|
|
6832
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
6832
6833
|
if (docContext != null) {
|
|
6833
6834
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
6834
6835
|
else compacted.proof["@context"] = docContext;
|
|
@@ -6880,7 +6881,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6880
6881
|
let values;
|
|
6881
6882
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
6882
6883
|
else {
|
|
6883
|
-
const expanded = await
|
|
6884
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
6884
6885
|
documentLoader: options.contextLoader,
|
|
6885
6886
|
keepFreeFloatingNodes: true
|
|
6886
6887
|
});
|
|
@@ -8268,7 +8269,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8268
8269
|
}
|
|
8269
8270
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Activity"];
|
|
8270
8271
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8271
|
-
if (options.format === "expand") return await
|
|
8272
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8272
8273
|
const docContext = options.context ?? [
|
|
8273
8274
|
"https://w3id.org/identity/v1",
|
|
8274
8275
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -8276,7 +8277,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8276
8277
|
"https://w3id.org/security/data-integrity/v1",
|
|
8277
8278
|
"https://gotosocial.org/ns"
|
|
8278
8279
|
];
|
|
8279
|
-
const compacted = await
|
|
8280
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8280
8281
|
if (docContext != null) {
|
|
8281
8282
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
8282
8283
|
else compacted.proof["@context"] = docContext;
|
|
@@ -8328,7 +8329,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
8328
8329
|
let values;
|
|
8329
8330
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
8330
8331
|
else {
|
|
8331
|
-
const expanded = await
|
|
8332
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
8332
8333
|
documentLoader: options.contextLoader,
|
|
8333
8334
|
keepFreeFloatingNodes: true
|
|
8334
8335
|
});
|
|
@@ -8601,7 +8602,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8601
8602
|
const values = baseValues[0];
|
|
8602
8603
|
values["@type"] = ["http://litepub.social/ns#EmojiReact"];
|
|
8603
8604
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8604
|
-
if (options.format === "expand") return await
|
|
8605
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8605
8606
|
const docContext = options.context ?? [
|
|
8606
8607
|
"https://w3id.org/identity/v1",
|
|
8607
8608
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -8614,7 +8615,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8614
8615
|
"Emoji": "toot:Emoji"
|
|
8615
8616
|
}
|
|
8616
8617
|
];
|
|
8617
|
-
const compacted = await
|
|
8618
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8618
8619
|
if (docContext != null) {
|
|
8619
8620
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
8620
8621
|
else compacted.proof["@context"] = docContext;
|
|
@@ -8666,7 +8667,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8666
8667
|
let values;
|
|
8667
8668
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
8668
8669
|
else {
|
|
8669
|
-
const expanded = await
|
|
8670
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
8670
8671
|
documentLoader: options.contextLoader,
|
|
8671
8672
|
keepFreeFloatingNodes: true
|
|
8672
8673
|
});
|
|
@@ -8870,13 +8871,13 @@ var PropertyValue = class {
|
|
|
8870
8871
|
}
|
|
8871
8872
|
values["@type"] = ["http://schema.org#PropertyValue"];
|
|
8872
8873
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8873
|
-
if (options.format === "expand") return await
|
|
8874
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8874
8875
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
|
|
8875
8876
|
"schema": "http://schema.org#",
|
|
8876
8877
|
"PropertyValue": "schema:PropertyValue",
|
|
8877
8878
|
"value": "schema:value"
|
|
8878
8879
|
}];
|
|
8879
|
-
const compacted = await
|
|
8880
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8880
8881
|
if (docContext != null) {}
|
|
8881
8882
|
return compacted;
|
|
8882
8883
|
}
|
|
@@ -8927,7 +8928,7 @@ var PropertyValue = class {
|
|
|
8927
8928
|
let values;
|
|
8928
8929
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
8929
8930
|
else {
|
|
8930
|
-
const expanded = await
|
|
8931
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
8931
8932
|
documentLoader: options.contextLoader,
|
|
8932
8933
|
keepFreeFloatingNodes: true
|
|
8933
8934
|
});
|
|
@@ -9383,13 +9384,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9383
9384
|
}
|
|
9384
9385
|
values["@type"] = ["https://gotosocial.org/ns#AnnounceAuthorization"];
|
|
9385
9386
|
if (this.id != null) values["@id"] = this.id.href;
|
|
9386
|
-
if (options.format === "expand") return await
|
|
9387
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
9387
9388
|
const docContext = options.context ?? [
|
|
9388
9389
|
"https://www.w3.org/ns/activitystreams",
|
|
9389
9390
|
"https://w3id.org/security/data-integrity/v1",
|
|
9390
9391
|
"https://gotosocial.org/ns"
|
|
9391
9392
|
];
|
|
9392
|
-
const compacted = await
|
|
9393
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
9393
9394
|
if (docContext != null) {
|
|
9394
9395
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
9395
9396
|
else compacted.proof["@context"] = docContext;
|
|
@@ -9441,7 +9442,7 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
9441
9442
|
let values;
|
|
9442
9443
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
9443
9444
|
else {
|
|
9444
|
-
const expanded = await
|
|
9445
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
9445
9446
|
documentLoader: options.contextLoader,
|
|
9446
9447
|
keepFreeFloatingNodes: true
|
|
9447
9448
|
});
|
|
@@ -9591,14 +9592,14 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
9591
9592
|
const values = baseValues[0];
|
|
9592
9593
|
values["@type"] = ["https://gotosocial.org/ns#AnnounceRequest"];
|
|
9593
9594
|
if (this.id != null) values["@id"] = this.id.href;
|
|
9594
|
-
if (options.format === "expand") return await
|
|
9595
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
9595
9596
|
const docContext = options.context ?? [
|
|
9596
9597
|
"https://w3id.org/identity/v1",
|
|
9597
9598
|
"https://www.w3.org/ns/activitystreams",
|
|
9598
9599
|
"https://w3id.org/security/data-integrity/v1",
|
|
9599
9600
|
"https://gotosocial.org/ns"
|
|
9600
9601
|
];
|
|
9601
|
-
const compacted = await
|
|
9602
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
9602
9603
|
if (docContext != null) {
|
|
9603
9604
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
9604
9605
|
else compacted.proof["@context"] = docContext;
|
|
@@ -9650,7 +9651,7 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
9650
9651
|
let values;
|
|
9651
9652
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
9652
9653
|
else {
|
|
9653
|
-
const expanded = await
|
|
9654
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
9654
9655
|
documentLoader: options.contextLoader,
|
|
9655
9656
|
keepFreeFloatingNodes: true
|
|
9656
9657
|
});
|
|
@@ -9853,9 +9854,9 @@ var InteractionPolicy = class {
|
|
|
9853
9854
|
values["https://gotosocial.org/ns#canAnnounce"] = propValue;
|
|
9854
9855
|
}
|
|
9855
9856
|
if (this.id != null) values["@id"] = this.id.href;
|
|
9856
|
-
if (options.format === "expand") return await
|
|
9857
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
9857
9858
|
const docContext = options.context ?? "https://gotosocial.org/ns";
|
|
9858
|
-
const compacted = await
|
|
9859
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
9859
9860
|
if (docContext != null) {}
|
|
9860
9861
|
return compacted;
|
|
9861
9862
|
}
|
|
@@ -9907,7 +9908,7 @@ var InteractionPolicy = class {
|
|
|
9907
9908
|
let values;
|
|
9908
9909
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
9909
9910
|
else {
|
|
9910
|
-
const expanded = await
|
|
9911
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
9911
9912
|
documentLoader: options.contextLoader,
|
|
9912
9913
|
keepFreeFloatingNodes: true
|
|
9913
9914
|
});
|
|
@@ -10171,9 +10172,9 @@ var InteractionRule = class {
|
|
|
10171
10172
|
values["https://gotosocial.org/ns#manualApproval"] = propValue;
|
|
10172
10173
|
}
|
|
10173
10174
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10174
|
-
if (options.format === "expand") return await
|
|
10175
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10175
10176
|
const docContext = options.context ?? "https://gotosocial.org/ns";
|
|
10176
|
-
const compacted = await
|
|
10177
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10177
10178
|
if (docContext != null) {}
|
|
10178
10179
|
return compacted;
|
|
10179
10180
|
}
|
|
@@ -10222,7 +10223,7 @@ var InteractionRule = class {
|
|
|
10222
10223
|
let values;
|
|
10223
10224
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10224
10225
|
else {
|
|
10225
|
-
const expanded = await
|
|
10226
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10226
10227
|
documentLoader: options.contextLoader,
|
|
10227
10228
|
keepFreeFloatingNodes: true
|
|
10228
10229
|
});
|
|
@@ -10675,13 +10676,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10675
10676
|
}
|
|
10676
10677
|
values["@type"] = ["https://gotosocial.org/ns#LikeApproval"];
|
|
10677
10678
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10678
|
-
if (options.format === "expand") return await
|
|
10679
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10679
10680
|
const docContext = options.context ?? [
|
|
10680
10681
|
"https://www.w3.org/ns/activitystreams",
|
|
10681
10682
|
"https://w3id.org/security/data-integrity/v1",
|
|
10682
10683
|
"https://gotosocial.org/ns"
|
|
10683
10684
|
];
|
|
10684
|
-
const compacted = await
|
|
10685
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10685
10686
|
if (docContext != null) {
|
|
10686
10687
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
10687
10688
|
else compacted.proof["@context"] = docContext;
|
|
@@ -10733,7 +10734,7 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
10733
10734
|
let values;
|
|
10734
10735
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10735
10736
|
else {
|
|
10736
|
-
const expanded = await
|
|
10737
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10737
10738
|
documentLoader: options.contextLoader,
|
|
10738
10739
|
keepFreeFloatingNodes: true
|
|
10739
10740
|
});
|
|
@@ -10882,14 +10883,14 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
10882
10883
|
const values = baseValues[0];
|
|
10883
10884
|
values["@type"] = ["https://gotosocial.org/ns#LikeRequest"];
|
|
10884
10885
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10885
|
-
if (options.format === "expand") return await
|
|
10886
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10886
10887
|
const docContext = options.context ?? [
|
|
10887
10888
|
"https://w3id.org/identity/v1",
|
|
10888
10889
|
"https://www.w3.org/ns/activitystreams",
|
|
10889
10890
|
"https://w3id.org/security/data-integrity/v1",
|
|
10890
10891
|
"https://gotosocial.org/ns"
|
|
10891
10892
|
];
|
|
10892
|
-
const compacted = await
|
|
10893
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10893
10894
|
if (docContext != null) {
|
|
10894
10895
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
10895
10896
|
else compacted.proof["@context"] = docContext;
|
|
@@ -10941,7 +10942,7 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
10941
10942
|
let values;
|
|
10942
10943
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10943
10944
|
else {
|
|
10944
|
-
const expanded = await
|
|
10945
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10945
10946
|
documentLoader: options.contextLoader,
|
|
10946
10947
|
keepFreeFloatingNodes: true
|
|
10947
10948
|
});
|
|
@@ -11369,13 +11370,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11369
11370
|
}
|
|
11370
11371
|
values["@type"] = ["https://gotosocial.org/ns#ReplyAuthorization"];
|
|
11371
11372
|
if (this.id != null) values["@id"] = this.id.href;
|
|
11372
|
-
if (options.format === "expand") return await
|
|
11373
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
11373
11374
|
const docContext = options.context ?? [
|
|
11374
11375
|
"https://www.w3.org/ns/activitystreams",
|
|
11375
11376
|
"https://w3id.org/security/data-integrity/v1",
|
|
11376
11377
|
"https://gotosocial.org/ns"
|
|
11377
11378
|
];
|
|
11378
|
-
const compacted = await
|
|
11379
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
11379
11380
|
if (docContext != null) {
|
|
11380
11381
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
11381
11382
|
else compacted.proof["@context"] = docContext;
|
|
@@ -11427,7 +11428,7 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
11427
11428
|
let values;
|
|
11428
11429
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
11429
11430
|
else {
|
|
11430
|
-
const expanded = await
|
|
11431
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
11431
11432
|
documentLoader: options.contextLoader,
|
|
11432
11433
|
keepFreeFloatingNodes: true
|
|
11433
11434
|
});
|
|
@@ -11576,14 +11577,14 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
11576
11577
|
const values = baseValues[0];
|
|
11577
11578
|
values["@type"] = ["https://gotosocial.org/ns#ReplyRequest"];
|
|
11578
11579
|
if (this.id != null) values["@id"] = this.id.href;
|
|
11579
|
-
if (options.format === "expand") return await
|
|
11580
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
11580
11581
|
const docContext = options.context ?? [
|
|
11581
11582
|
"https://w3id.org/identity/v1",
|
|
11582
11583
|
"https://www.w3.org/ns/activitystreams",
|
|
11583
11584
|
"https://w3id.org/security/data-integrity/v1",
|
|
11584
11585
|
"https://gotosocial.org/ns"
|
|
11585
11586
|
];
|
|
11586
|
-
const compacted = await
|
|
11587
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
11587
11588
|
if (docContext != null) {
|
|
11588
11589
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
11589
11590
|
else compacted.proof["@context"] = docContext;
|
|
@@ -11635,7 +11636,7 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
11635
11636
|
let values;
|
|
11636
11637
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
11637
11638
|
else {
|
|
11638
|
-
const expanded = await
|
|
11639
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
11639
11640
|
documentLoader: options.contextLoader,
|
|
11640
11641
|
keepFreeFloatingNodes: true
|
|
11641
11642
|
});
|
|
@@ -11801,9 +11802,9 @@ var DidService = class {
|
|
|
11801
11802
|
}
|
|
11802
11803
|
values["@type"] = ["https://www.w3.org/ns/did#Service"];
|
|
11803
11804
|
if (this.id != null) values["@id"] = this.id.href;
|
|
11804
|
-
if (options.format === "expand") return await
|
|
11805
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
11805
11806
|
const docContext = options.context ?? "https://www.w3.org/ns/did/v1";
|
|
11806
|
-
const compacted = await
|
|
11807
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
11807
11808
|
if (docContext != null) {}
|
|
11808
11809
|
return compacted;
|
|
11809
11810
|
}
|
|
@@ -11852,7 +11853,7 @@ var DidService = class {
|
|
|
11852
11853
|
let values;
|
|
11853
11854
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
11854
11855
|
else {
|
|
11855
|
-
const expanded = await
|
|
11856
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
11856
11857
|
documentLoader: options.contextLoader,
|
|
11857
11858
|
keepFreeFloatingNodes: true
|
|
11858
11859
|
});
|
|
@@ -11965,9 +11966,9 @@ var Export = class Export extends DidService {
|
|
|
11965
11966
|
const values = baseValues[0];
|
|
11966
11967
|
values["@type"] = ["https://w3id.org/fep/9091#Export"];
|
|
11967
11968
|
if (this.id != null) values["@id"] = this.id.href;
|
|
11968
|
-
if (options.format === "expand") return await
|
|
11969
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
11969
11970
|
const docContext = options.context ?? "https://www.w3.org/ns/did/v1";
|
|
11970
|
-
const compacted = await
|
|
11971
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
11971
11972
|
if (docContext != null) {}
|
|
11972
11973
|
return compacted;
|
|
11973
11974
|
}
|
|
@@ -12016,7 +12017,7 @@ var Export = class Export extends DidService {
|
|
|
12016
12017
|
let values;
|
|
12017
12018
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
12018
12019
|
else {
|
|
12019
|
-
const expanded = await
|
|
12020
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
12020
12021
|
documentLoader: options.contextLoader,
|
|
12021
12022
|
keepFreeFloatingNodes: true
|
|
12022
12023
|
});
|
|
@@ -12381,9 +12382,9 @@ var DataIntegrityProof = class {
|
|
|
12381
12382
|
}
|
|
12382
12383
|
values["@type"] = ["https://w3id.org/security#DataIntegrityProof"];
|
|
12383
12384
|
if (this.id != null) values["@id"] = this.id.href;
|
|
12384
|
-
if (options.format === "expand") return await
|
|
12385
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
12385
12386
|
const docContext = options.context ?? "https://w3id.org/security/data-integrity/v1";
|
|
12386
|
-
const compacted = await
|
|
12387
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
12387
12388
|
if (docContext != null) {}
|
|
12388
12389
|
return compacted;
|
|
12389
12390
|
}
|
|
@@ -12432,7 +12433,7 @@ var DataIntegrityProof = class {
|
|
|
12432
12433
|
let values;
|
|
12433
12434
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
12434
12435
|
else {
|
|
12435
|
-
const expanded = await
|
|
12436
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
12436
12437
|
documentLoader: options.contextLoader,
|
|
12437
12438
|
keepFreeFloatingNodes: true
|
|
12438
12439
|
});
|
|
@@ -12873,9 +12874,9 @@ var CryptographicKey = class {
|
|
|
12873
12874
|
}
|
|
12874
12875
|
values["@type"] = ["https://w3id.org/security#Key"];
|
|
12875
12876
|
if (this.id != null) values["@id"] = this.id.href;
|
|
12876
|
-
if (options.format === "expand") return await
|
|
12877
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
12877
12878
|
const docContext = options.context ?? "https://w3id.org/security/v1";
|
|
12878
|
-
const compacted = await
|
|
12879
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
12879
12880
|
if (docContext != null) {}
|
|
12880
12881
|
return compacted;
|
|
12881
12882
|
}
|
|
@@ -12924,7 +12925,7 @@ var CryptographicKey = class {
|
|
|
12924
12925
|
let values;
|
|
12925
12926
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
12926
12927
|
else {
|
|
12927
|
-
const expanded = await
|
|
12928
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
12928
12929
|
documentLoader: options.contextLoader,
|
|
12929
12930
|
keepFreeFloatingNodes: true
|
|
12930
12931
|
});
|
|
@@ -13352,9 +13353,9 @@ var Multikey = class {
|
|
|
13352
13353
|
}
|
|
13353
13354
|
values["@type"] = ["https://w3id.org/security#Multikey"];
|
|
13354
13355
|
if (this.id != null) values["@id"] = this.id.href;
|
|
13355
|
-
if (options.format === "expand") return await
|
|
13356
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
13356
13357
|
const docContext = options.context ?? "https://w3id.org/security/multikey/v1";
|
|
13357
|
-
const compacted = await
|
|
13358
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13358
13359
|
if (docContext != null) {}
|
|
13359
13360
|
return compacted;
|
|
13360
13361
|
}
|
|
@@ -13403,7 +13404,7 @@ var Multikey = class {
|
|
|
13403
13404
|
let values;
|
|
13404
13405
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
13405
13406
|
else {
|
|
13406
|
-
const expanded = await
|
|
13407
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
13407
13408
|
documentLoader: options.contextLoader,
|
|
13408
13409
|
keepFreeFloatingNodes: true
|
|
13409
13410
|
});
|
|
@@ -13550,14 +13551,14 @@ var Accept = class Accept extends Activity {
|
|
|
13550
13551
|
const values = baseValues[0];
|
|
13551
13552
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Accept"];
|
|
13552
13553
|
if (this.id != null) values["@id"] = this.id.href;
|
|
13553
|
-
if (options.format === "expand") return await
|
|
13554
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
13554
13555
|
const docContext = options.context ?? [
|
|
13555
13556
|
"https://w3id.org/identity/v1",
|
|
13556
13557
|
"https://www.w3.org/ns/activitystreams",
|
|
13557
13558
|
"https://w3id.org/security/data-integrity/v1",
|
|
13558
13559
|
"https://gotosocial.org/ns"
|
|
13559
13560
|
];
|
|
13560
|
-
const compacted = await
|
|
13561
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13561
13562
|
if (docContext != null) {
|
|
13562
13563
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
13563
13564
|
else compacted.proof["@context"] = docContext;
|
|
@@ -13609,7 +13610,7 @@ var Accept = class Accept extends Activity {
|
|
|
13609
13610
|
let values;
|
|
13610
13611
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
13611
13612
|
else {
|
|
13612
|
-
const expanded = await
|
|
13613
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
13613
13614
|
documentLoader: options.contextLoader,
|
|
13614
13615
|
keepFreeFloatingNodes: true
|
|
13615
13616
|
});
|
|
@@ -13713,14 +13714,14 @@ var Add = class Add extends Activity {
|
|
|
13713
13714
|
const values = baseValues[0];
|
|
13714
13715
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Add"];
|
|
13715
13716
|
if (this.id != null) values["@id"] = this.id.href;
|
|
13716
|
-
if (options.format === "expand") return await
|
|
13717
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
13717
13718
|
const docContext = options.context ?? [
|
|
13718
13719
|
"https://w3id.org/identity/v1",
|
|
13719
13720
|
"https://www.w3.org/ns/activitystreams",
|
|
13720
13721
|
"https://w3id.org/security/data-integrity/v1",
|
|
13721
13722
|
"https://gotosocial.org/ns"
|
|
13722
13723
|
];
|
|
13723
|
-
const compacted = await
|
|
13724
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13724
13725
|
if (docContext != null) {
|
|
13725
13726
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
13726
13727
|
else compacted.proof["@context"] = docContext;
|
|
@@ -13772,7 +13773,7 @@ var Add = class Add extends Activity {
|
|
|
13772
13773
|
let values;
|
|
13773
13774
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
13774
13775
|
else {
|
|
13775
|
-
const expanded = await
|
|
13776
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
13776
13777
|
documentLoader: options.contextLoader,
|
|
13777
13778
|
keepFreeFloatingNodes: true
|
|
13778
13779
|
});
|
|
@@ -13874,7 +13875,7 @@ var Announce = class Announce extends Activity {
|
|
|
13874
13875
|
const values = baseValues[0];
|
|
13875
13876
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Announce"];
|
|
13876
13877
|
if (this.id != null) values["@id"] = this.id.href;
|
|
13877
|
-
if (options.format === "expand") return await
|
|
13878
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
13878
13879
|
const docContext = options.context ?? [
|
|
13879
13880
|
"https://w3id.org/identity/v1",
|
|
13880
13881
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -13900,7 +13901,7 @@ var Announce = class Announce extends Activity {
|
|
|
13900
13901
|
}
|
|
13901
13902
|
}
|
|
13902
13903
|
];
|
|
13903
|
-
const compacted = await
|
|
13904
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13904
13905
|
if (docContext != null) {
|
|
13905
13906
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
13906
13907
|
else compacted.proof["@context"] = docContext;
|
|
@@ -13952,7 +13953,7 @@ var Announce = class Announce extends Activity {
|
|
|
13952
13953
|
let values;
|
|
13953
13954
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
13954
13955
|
else {
|
|
13955
|
-
const expanded = await
|
|
13956
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
13956
13957
|
documentLoader: options.contextLoader,
|
|
13957
13958
|
keepFreeFloatingNodes: true
|
|
13958
13959
|
});
|
|
@@ -16814,7 +16815,7 @@ var Application = class Application extends Object$1 {
|
|
|
16814
16815
|
}
|
|
16815
16816
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Application"];
|
|
16816
16817
|
if (this.id != null) values["@id"] = this.id.href;
|
|
16817
|
-
if (options.format === "expand") return await
|
|
16818
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
16818
16819
|
const docContext = options.context ?? [
|
|
16819
16820
|
"https://www.w3.org/ns/activitystreams",
|
|
16820
16821
|
"https://w3id.org/security/v1",
|
|
@@ -16854,7 +16855,7 @@ var Application = class Application extends Object$1 {
|
|
|
16854
16855
|
"isCat": "misskey:isCat"
|
|
16855
16856
|
}
|
|
16856
16857
|
];
|
|
16857
|
-
const compacted = await
|
|
16858
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
16858
16859
|
if (docContext != null) {
|
|
16859
16860
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
16860
16861
|
else compacted.proof["@context"] = docContext;
|
|
@@ -16908,7 +16909,7 @@ var Application = class Application extends Object$1 {
|
|
|
16908
16909
|
let values;
|
|
16909
16910
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
16910
16911
|
else {
|
|
16911
|
-
const expanded = await
|
|
16912
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
16912
16913
|
documentLoader: options.contextLoader,
|
|
16913
16914
|
keepFreeFloatingNodes: true
|
|
16914
16915
|
});
|
|
@@ -17426,14 +17427,14 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
17426
17427
|
const values = baseValues[0];
|
|
17427
17428
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#IntransitiveActivity"];
|
|
17428
17429
|
if (this.id != null) values["@id"] = this.id.href;
|
|
17429
|
-
if (options.format === "expand") return await
|
|
17430
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
17430
17431
|
const docContext = options.context ?? [
|
|
17431
17432
|
"https://w3id.org/identity/v1",
|
|
17432
17433
|
"https://www.w3.org/ns/activitystreams",
|
|
17433
17434
|
"https://w3id.org/security/data-integrity/v1",
|
|
17434
17435
|
"https://gotosocial.org/ns"
|
|
17435
17436
|
];
|
|
17436
|
-
const compacted = await
|
|
17437
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
17437
17438
|
if (docContext != null) {
|
|
17438
17439
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
17439
17440
|
else compacted.proof["@context"] = docContext;
|
|
@@ -17485,7 +17486,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
17485
17486
|
let values;
|
|
17486
17487
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
17487
17488
|
else {
|
|
17488
|
-
const expanded = await
|
|
17489
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
17489
17490
|
documentLoader: options.contextLoader,
|
|
17490
17491
|
keepFreeFloatingNodes: true
|
|
17491
17492
|
});
|
|
@@ -17590,14 +17591,14 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
17590
17591
|
const values = baseValues[0];
|
|
17591
17592
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Arrive"];
|
|
17592
17593
|
if (this.id != null) values["@id"] = this.id.href;
|
|
17593
|
-
if (options.format === "expand") return await
|
|
17594
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
17594
17595
|
const docContext = options.context ?? [
|
|
17595
17596
|
"https://w3id.org/identity/v1",
|
|
17596
17597
|
"https://www.w3.org/ns/activitystreams",
|
|
17597
17598
|
"https://w3id.org/security/data-integrity/v1",
|
|
17598
17599
|
"https://gotosocial.org/ns"
|
|
17599
17600
|
];
|
|
17600
|
-
const compacted = await
|
|
17601
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
17601
17602
|
if (docContext != null) {
|
|
17602
17603
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
17603
17604
|
else compacted.proof["@context"] = docContext;
|
|
@@ -17649,7 +17650,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
17649
17650
|
let values;
|
|
17650
17651
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
17651
17652
|
else {
|
|
17652
|
-
const expanded = await
|
|
17653
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
17653
17654
|
documentLoader: options.contextLoader,
|
|
17654
17655
|
keepFreeFloatingNodes: true
|
|
17655
17656
|
});
|
|
@@ -17823,7 +17824,7 @@ var Article = class Article extends Object$1 {
|
|
|
17823
17824
|
}
|
|
17824
17825
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Article"];
|
|
17825
17826
|
if (this.id != null) values["@id"] = this.id.href;
|
|
17826
|
-
if (options.format === "expand") return await
|
|
17827
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
17827
17828
|
const docContext = options.context ?? [
|
|
17828
17829
|
"https://www.w3.org/ns/activitystreams",
|
|
17829
17830
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -17844,7 +17845,7 @@ var Article = class Article extends Object$1 {
|
|
|
17844
17845
|
}
|
|
17845
17846
|
}
|
|
17846
17847
|
];
|
|
17847
|
-
const compacted = await
|
|
17848
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
17848
17849
|
if (docContext != null) {
|
|
17849
17850
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
17850
17851
|
else compacted.proof["@context"] = docContext;
|
|
@@ -17896,7 +17897,7 @@ var Article = class Article extends Object$1 {
|
|
|
17896
17897
|
let values;
|
|
17897
17898
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
17898
17899
|
else {
|
|
17899
|
-
const expanded = await
|
|
17900
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
17900
17901
|
documentLoader: options.contextLoader,
|
|
17901
17902
|
keepFreeFloatingNodes: true
|
|
17902
17903
|
});
|
|
@@ -18090,13 +18091,13 @@ var Document = class Document extends Object$1 {
|
|
|
18090
18091
|
}
|
|
18091
18092
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Document"];
|
|
18092
18093
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18093
|
-
if (options.format === "expand") return await
|
|
18094
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18094
18095
|
const docContext = options.context ?? [
|
|
18095
18096
|
"https://www.w3.org/ns/activitystreams",
|
|
18096
18097
|
"https://w3id.org/security/data-integrity/v1",
|
|
18097
18098
|
"https://gotosocial.org/ns"
|
|
18098
18099
|
];
|
|
18099
|
-
const compacted = await
|
|
18100
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18100
18101
|
if (docContext != null) {
|
|
18101
18102
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18102
18103
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18148,7 +18149,7 @@ var Document = class Document extends Object$1 {
|
|
|
18148
18149
|
let values;
|
|
18149
18150
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18150
18151
|
else {
|
|
18151
|
-
const expanded = await
|
|
18152
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18152
18153
|
documentLoader: options.contextLoader,
|
|
18153
18154
|
keepFreeFloatingNodes: true
|
|
18154
18155
|
});
|
|
@@ -18292,13 +18293,13 @@ var Audio = class Audio extends Document {
|
|
|
18292
18293
|
const values = baseValues[0];
|
|
18293
18294
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Audio"];
|
|
18294
18295
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18295
|
-
if (options.format === "expand") return await
|
|
18296
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18296
18297
|
const docContext = options.context ?? [
|
|
18297
18298
|
"https://www.w3.org/ns/activitystreams",
|
|
18298
18299
|
"https://w3id.org/security/data-integrity/v1",
|
|
18299
18300
|
"https://gotosocial.org/ns"
|
|
18300
18301
|
];
|
|
18301
|
-
const compacted = await
|
|
18302
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18302
18303
|
if (docContext != null) {
|
|
18303
18304
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18304
18305
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18350,7 +18351,7 @@ var Audio = class Audio extends Document {
|
|
|
18350
18351
|
let values;
|
|
18351
18352
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18352
18353
|
else {
|
|
18353
|
-
const expanded = await
|
|
18354
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18354
18355
|
documentLoader: options.contextLoader,
|
|
18355
18356
|
keepFreeFloatingNodes: true
|
|
18356
18357
|
});
|
|
@@ -18451,14 +18452,14 @@ var Ignore = class Ignore extends Activity {
|
|
|
18451
18452
|
const values = baseValues[0];
|
|
18452
18453
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Ignore"];
|
|
18453
18454
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18454
|
-
if (options.format === "expand") return await
|
|
18455
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18455
18456
|
const docContext = options.context ?? [
|
|
18456
18457
|
"https://w3id.org/identity/v1",
|
|
18457
18458
|
"https://www.w3.org/ns/activitystreams",
|
|
18458
18459
|
"https://w3id.org/security/data-integrity/v1",
|
|
18459
18460
|
"https://gotosocial.org/ns"
|
|
18460
18461
|
];
|
|
18461
|
-
const compacted = await
|
|
18462
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18462
18463
|
if (docContext != null) {
|
|
18463
18464
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18464
18465
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18510,7 +18511,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
18510
18511
|
let values;
|
|
18511
18512
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18512
18513
|
else {
|
|
18513
|
-
const expanded = await
|
|
18514
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18514
18515
|
documentLoader: options.contextLoader,
|
|
18515
18516
|
keepFreeFloatingNodes: true
|
|
18516
18517
|
});
|
|
@@ -18614,14 +18615,14 @@ var Block = class Block extends Ignore {
|
|
|
18614
18615
|
const values = baseValues[0];
|
|
18615
18616
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Block"];
|
|
18616
18617
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18617
|
-
if (options.format === "expand") return await
|
|
18618
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18618
18619
|
const docContext = options.context ?? [
|
|
18619
18620
|
"https://w3id.org/identity/v1",
|
|
18620
18621
|
"https://www.w3.org/ns/activitystreams",
|
|
18621
18622
|
"https://w3id.org/security/data-integrity/v1",
|
|
18622
18623
|
"https://gotosocial.org/ns"
|
|
18623
18624
|
];
|
|
18624
|
-
const compacted = await
|
|
18625
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18625
18626
|
if (docContext != null) {
|
|
18626
18627
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18627
18628
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18673,7 +18674,7 @@ var Block = class Block extends Ignore {
|
|
|
18673
18674
|
let values;
|
|
18674
18675
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18675
18676
|
else {
|
|
18676
|
-
const expanded = await
|
|
18677
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18677
18678
|
documentLoader: options.contextLoader,
|
|
18678
18679
|
keepFreeFloatingNodes: true
|
|
18679
18680
|
});
|
|
@@ -20686,7 +20687,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20686
20687
|
}
|
|
20687
20688
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Collection"];
|
|
20688
20689
|
if (this.id != null) values["@id"] = this.id.href;
|
|
20689
|
-
if (options.format === "expand") return await
|
|
20690
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
20690
20691
|
const docContext = options.context ?? [
|
|
20691
20692
|
"https://www.w3.org/ns/activitystreams",
|
|
20692
20693
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -20709,7 +20710,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20709
20710
|
}
|
|
20710
20711
|
}
|
|
20711
20712
|
];
|
|
20712
|
-
const compacted = await
|
|
20713
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
20713
20714
|
if (docContext != null) {
|
|
20714
20715
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
20715
20716
|
else compacted.proof["@context"] = docContext;
|
|
@@ -20761,7 +20762,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
20761
20762
|
let values;
|
|
20762
20763
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
20763
20764
|
else {
|
|
20764
|
-
const expanded = await
|
|
20765
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
20765
20766
|
documentLoader: options.contextLoader,
|
|
20766
20767
|
keepFreeFloatingNodes: true
|
|
20767
20768
|
});
|
|
@@ -21679,7 +21680,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
21679
21680
|
}
|
|
21680
21681
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#CollectionPage"];
|
|
21681
21682
|
if (this.id != null) values["@id"] = this.id.href;
|
|
21682
|
-
if (options.format === "expand") return await
|
|
21683
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
21683
21684
|
const docContext = options.context ?? [
|
|
21684
21685
|
"https://www.w3.org/ns/activitystreams",
|
|
21685
21686
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -21702,7 +21703,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
21702
21703
|
}
|
|
21703
21704
|
}
|
|
21704
21705
|
];
|
|
21705
|
-
const compacted = await
|
|
21706
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
21706
21707
|
if (docContext != null) {
|
|
21707
21708
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
21708
21709
|
else compacted.proof["@context"] = docContext;
|
|
@@ -21754,7 +21755,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
21754
21755
|
let values;
|
|
21755
21756
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
21756
21757
|
else {
|
|
21757
|
-
const expanded = await
|
|
21758
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
21758
21759
|
documentLoader: options.contextLoader,
|
|
21759
21760
|
keepFreeFloatingNodes: true
|
|
21760
21761
|
});
|
|
@@ -21915,7 +21916,7 @@ var Create = class Create extends Activity {
|
|
|
21915
21916
|
const values = baseValues[0];
|
|
21916
21917
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Create"];
|
|
21917
21918
|
if (this.id != null) values["@id"] = this.id.href;
|
|
21918
|
-
if (options.format === "expand") return await
|
|
21919
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
21919
21920
|
const docContext = options.context ?? [
|
|
21920
21921
|
"https://w3id.org/identity/v1",
|
|
21921
21922
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -21942,7 +21943,7 @@ var Create = class Create extends Activity {
|
|
|
21942
21943
|
}
|
|
21943
21944
|
}
|
|
21944
21945
|
];
|
|
21945
|
-
const compacted = await
|
|
21946
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
21946
21947
|
if (docContext != null) {
|
|
21947
21948
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
21948
21949
|
else compacted.proof["@context"] = docContext;
|
|
@@ -21994,7 +21995,7 @@ var Create = class Create extends Activity {
|
|
|
21994
21995
|
let values;
|
|
21995
21996
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
21996
21997
|
else {
|
|
21997
|
-
const expanded = await
|
|
21998
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
21998
21999
|
documentLoader: options.contextLoader,
|
|
21999
22000
|
keepFreeFloatingNodes: true
|
|
22000
22001
|
});
|
|
@@ -22095,7 +22096,7 @@ var Delete = class Delete extends Activity {
|
|
|
22095
22096
|
const values = baseValues[0];
|
|
22096
22097
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Delete"];
|
|
22097
22098
|
if (this.id != null) values["@id"] = this.id.href;
|
|
22098
|
-
if (options.format === "expand") return await
|
|
22099
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
22099
22100
|
const docContext = options.context ?? [
|
|
22100
22101
|
"https://w3id.org/identity/v1",
|
|
22101
22102
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -22118,7 +22119,7 @@ var Delete = class Delete extends Activity {
|
|
|
22118
22119
|
"quoteUri": "fedibird:quoteUri"
|
|
22119
22120
|
}
|
|
22120
22121
|
];
|
|
22121
|
-
const compacted = await
|
|
22122
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
22122
22123
|
if (docContext != null) {
|
|
22123
22124
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
22124
22125
|
else compacted.proof["@context"] = docContext;
|
|
@@ -22170,7 +22171,7 @@ var Delete = class Delete extends Activity {
|
|
|
22170
22171
|
let values;
|
|
22171
22172
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
22172
22173
|
else {
|
|
22173
|
-
const expanded = await
|
|
22174
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
22174
22175
|
documentLoader: options.contextLoader,
|
|
22175
22176
|
keepFreeFloatingNodes: true
|
|
22176
22177
|
});
|
|
@@ -22270,7 +22271,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
22270
22271
|
const values = baseValues[0];
|
|
22271
22272
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Dislike"];
|
|
22272
22273
|
if (this.id != null) values["@id"] = this.id.href;
|
|
22273
|
-
if (options.format === "expand") return await
|
|
22274
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
22274
22275
|
const docContext = options.context ?? [
|
|
22275
22276
|
"https://w3id.org/identity/v1",
|
|
22276
22277
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -22281,7 +22282,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
22281
22282
|
"Emoji": "toot:Emoji"
|
|
22282
22283
|
}
|
|
22283
22284
|
];
|
|
22284
|
-
const compacted = await
|
|
22285
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
22285
22286
|
if (docContext != null) {
|
|
22286
22287
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
22287
22288
|
else compacted.proof["@context"] = docContext;
|
|
@@ -22333,7 +22334,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
22333
22334
|
let values;
|
|
22334
22335
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
22335
22336
|
else {
|
|
22336
|
-
const expanded = await
|
|
22337
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
22337
22338
|
documentLoader: options.contextLoader,
|
|
22338
22339
|
keepFreeFloatingNodes: true
|
|
22339
22340
|
});
|
|
@@ -22654,9 +22655,9 @@ var Endpoints = class {
|
|
|
22654
22655
|
values["https://www.w3.org/ns/activitystreams#sharedInbox"] = propValue;
|
|
22655
22656
|
}
|
|
22656
22657
|
if (this.id != null) values["@id"] = this.id.href;
|
|
22657
|
-
if (options.format === "expand") return await
|
|
22658
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
22658
22659
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
22659
|
-
const compacted = await
|
|
22660
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
22660
22661
|
if (docContext != null) {}
|
|
22661
22662
|
return compacted;
|
|
22662
22663
|
}
|
|
@@ -22705,7 +22706,7 @@ var Endpoints = class {
|
|
|
22705
22706
|
let values;
|
|
22706
22707
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
22707
22708
|
else {
|
|
22708
|
-
const expanded = await
|
|
22709
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
22709
22710
|
documentLoader: options.contextLoader,
|
|
22710
22711
|
keepFreeFloatingNodes: true
|
|
22711
22712
|
});
|
|
@@ -22892,13 +22893,13 @@ var Event = class Event extends Object$1 {
|
|
|
22892
22893
|
const values = baseValues[0];
|
|
22893
22894
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Event"];
|
|
22894
22895
|
if (this.id != null) values["@id"] = this.id.href;
|
|
22895
|
-
if (options.format === "expand") return await
|
|
22896
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
22896
22897
|
const docContext = options.context ?? [
|
|
22897
22898
|
"https://www.w3.org/ns/activitystreams",
|
|
22898
22899
|
"https://w3id.org/security/data-integrity/v1",
|
|
22899
22900
|
"https://gotosocial.org/ns"
|
|
22900
22901
|
];
|
|
22901
|
-
const compacted = await
|
|
22902
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
22902
22903
|
if (docContext != null) {
|
|
22903
22904
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
22904
22905
|
else compacted.proof["@context"] = docContext;
|
|
@@ -22950,7 +22951,7 @@ var Event = class Event extends Object$1 {
|
|
|
22950
22951
|
let values;
|
|
22951
22952
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
22952
22953
|
else {
|
|
22953
|
-
const expanded = await
|
|
22954
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
22954
22955
|
documentLoader: options.contextLoader,
|
|
22955
22956
|
keepFreeFloatingNodes: true
|
|
22956
22957
|
});
|
|
@@ -23052,14 +23053,14 @@ var Flag = class Flag extends Activity {
|
|
|
23052
23053
|
const values = baseValues[0];
|
|
23053
23054
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Flag"];
|
|
23054
23055
|
if (this.id != null) values["@id"] = this.id.href;
|
|
23055
|
-
if (options.format === "expand") return await
|
|
23056
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
23056
23057
|
const docContext = options.context ?? [
|
|
23057
23058
|
"https://w3id.org/identity/v1",
|
|
23058
23059
|
"https://www.w3.org/ns/activitystreams",
|
|
23059
23060
|
"https://w3id.org/security/data-integrity/v1",
|
|
23060
23061
|
"https://gotosocial.org/ns"
|
|
23061
23062
|
];
|
|
23062
|
-
const compacted = await
|
|
23063
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
23063
23064
|
if (docContext != null) {
|
|
23064
23065
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
23065
23066
|
else compacted.proof["@context"] = docContext;
|
|
@@ -23111,7 +23112,7 @@ var Flag = class Flag extends Activity {
|
|
|
23111
23112
|
let values;
|
|
23112
23113
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
23113
23114
|
else {
|
|
23114
|
-
const expanded = await
|
|
23115
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
23115
23116
|
documentLoader: options.contextLoader,
|
|
23116
23117
|
keepFreeFloatingNodes: true
|
|
23117
23118
|
});
|
|
@@ -23214,7 +23215,7 @@ var Follow = class Follow extends Activity {
|
|
|
23214
23215
|
const values = baseValues[0];
|
|
23215
23216
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Follow"];
|
|
23216
23217
|
if (this.id != null) values["@id"] = this.id.href;
|
|
23217
|
-
if (options.format === "expand") return await
|
|
23218
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
23218
23219
|
const docContext = options.context ?? [
|
|
23219
23220
|
"https://w3id.org/identity/v1",
|
|
23220
23221
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -23224,7 +23225,7 @@ var Follow = class Follow extends Activity {
|
|
|
23224
23225
|
"https://w3id.org/security/multikey/v1",
|
|
23225
23226
|
"https://gotosocial.org/ns"
|
|
23226
23227
|
];
|
|
23227
|
-
const compacted = await
|
|
23228
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
23228
23229
|
if (docContext != null) {
|
|
23229
23230
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
23230
23231
|
else compacted.proof["@context"] = docContext;
|
|
@@ -23276,7 +23277,7 @@ var Follow = class Follow extends Activity {
|
|
|
23276
23277
|
let values;
|
|
23277
23278
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
23278
23279
|
else {
|
|
23279
|
-
const expanded = await
|
|
23280
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
23280
23281
|
documentLoader: options.contextLoader,
|
|
23281
23282
|
keepFreeFloatingNodes: true
|
|
23282
23283
|
});
|
|
@@ -26138,7 +26139,7 @@ var Group = class Group extends Object$1 {
|
|
|
26138
26139
|
}
|
|
26139
26140
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Group"];
|
|
26140
26141
|
if (this.id != null) values["@id"] = this.id.href;
|
|
26141
|
-
if (options.format === "expand") return await
|
|
26142
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
26142
26143
|
const docContext = options.context ?? [
|
|
26143
26144
|
"https://www.w3.org/ns/activitystreams",
|
|
26144
26145
|
"https://w3id.org/security/v1",
|
|
@@ -26178,7 +26179,7 @@ var Group = class Group extends Object$1 {
|
|
|
26178
26179
|
"isCat": "misskey:isCat"
|
|
26179
26180
|
}
|
|
26180
26181
|
];
|
|
26181
|
-
const compacted = await
|
|
26182
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
26182
26183
|
if (docContext != null) {
|
|
26183
26184
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
26184
26185
|
else compacted.proof["@context"] = docContext;
|
|
@@ -26232,7 +26233,7 @@ var Group = class Group extends Object$1 {
|
|
|
26232
26233
|
let values;
|
|
26233
26234
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
26234
26235
|
else {
|
|
26235
|
-
const expanded = await
|
|
26236
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
26236
26237
|
documentLoader: options.contextLoader,
|
|
26237
26238
|
keepFreeFloatingNodes: true
|
|
26238
26239
|
});
|
|
@@ -27210,9 +27211,9 @@ var Link = class Link {
|
|
|
27210
27211
|
}
|
|
27211
27212
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Link"];
|
|
27212
27213
|
if (this.id != null) values["@id"] = this.id.href;
|
|
27213
|
-
if (options.format === "expand") return await
|
|
27214
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
27214
27215
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
27215
|
-
const compacted = await
|
|
27216
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27216
27217
|
if (docContext != null) {}
|
|
27217
27218
|
return compacted;
|
|
27218
27219
|
}
|
|
@@ -27262,7 +27263,7 @@ var Link = class Link {
|
|
|
27262
27263
|
let values;
|
|
27263
27264
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
27264
27265
|
else {
|
|
27265
|
-
const expanded = await
|
|
27266
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
27266
27267
|
documentLoader: options.contextLoader,
|
|
27267
27268
|
keepFreeFloatingNodes: true
|
|
27268
27269
|
});
|
|
@@ -27556,9 +27557,9 @@ var Hashtag = class Hashtag extends Link {
|
|
|
27556
27557
|
const values = baseValues[0];
|
|
27557
27558
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Hashtag"];
|
|
27558
27559
|
if (this.id != null) values["@id"] = this.id.href;
|
|
27559
|
-
if (options.format === "expand") return await
|
|
27560
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
27560
27561
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", { "Hashtag": "as:Hashtag" }];
|
|
27561
|
-
const compacted = await
|
|
27562
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27562
27563
|
if (docContext != null) {}
|
|
27563
27564
|
return compacted;
|
|
27564
27565
|
}
|
|
@@ -27607,7 +27608,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
27607
27608
|
let values;
|
|
27608
27609
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
27609
27610
|
else {
|
|
27610
|
-
const expanded = await
|
|
27611
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
27611
27612
|
documentLoader: options.contextLoader,
|
|
27612
27613
|
keepFreeFloatingNodes: true
|
|
27613
27614
|
});
|
|
@@ -27723,13 +27724,13 @@ var Image = class Image extends Document {
|
|
|
27723
27724
|
const values = baseValues[0];
|
|
27724
27725
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Image"];
|
|
27725
27726
|
if (this.id != null) values["@id"] = this.id.href;
|
|
27726
|
-
if (options.format === "expand") return await
|
|
27727
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
27727
27728
|
const docContext = options.context ?? [
|
|
27728
27729
|
"https://www.w3.org/ns/activitystreams",
|
|
27729
27730
|
"https://w3id.org/security/data-integrity/v1",
|
|
27730
27731
|
"https://gotosocial.org/ns"
|
|
27731
27732
|
];
|
|
27732
|
-
const compacted = await
|
|
27733
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27733
27734
|
if (docContext != null) {
|
|
27734
27735
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
27735
27736
|
else compacted.proof["@context"] = docContext;
|
|
@@ -27781,7 +27782,7 @@ var Image = class Image extends Document {
|
|
|
27781
27782
|
let values;
|
|
27782
27783
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
27783
27784
|
else {
|
|
27784
|
-
const expanded = await
|
|
27785
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
27785
27786
|
documentLoader: options.contextLoader,
|
|
27786
27787
|
keepFreeFloatingNodes: true
|
|
27787
27788
|
});
|
|
@@ -27883,14 +27884,14 @@ var Offer = class Offer extends Activity {
|
|
|
27883
27884
|
const values = baseValues[0];
|
|
27884
27885
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Offer"];
|
|
27885
27886
|
if (this.id != null) values["@id"] = this.id.href;
|
|
27886
|
-
if (options.format === "expand") return await
|
|
27887
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
27887
27888
|
const docContext = options.context ?? [
|
|
27888
27889
|
"https://w3id.org/identity/v1",
|
|
27889
27890
|
"https://www.w3.org/ns/activitystreams",
|
|
27890
27891
|
"https://w3id.org/security/data-integrity/v1",
|
|
27891
27892
|
"https://gotosocial.org/ns"
|
|
27892
27893
|
];
|
|
27893
|
-
const compacted = await
|
|
27894
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
27894
27895
|
if (docContext != null) {
|
|
27895
27896
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
27896
27897
|
else compacted.proof["@context"] = docContext;
|
|
@@ -27942,7 +27943,7 @@ var Offer = class Offer extends Activity {
|
|
|
27942
27943
|
let values;
|
|
27943
27944
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
27944
27945
|
else {
|
|
27945
|
-
const expanded = await
|
|
27946
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
27946
27947
|
documentLoader: options.contextLoader,
|
|
27947
27948
|
keepFreeFloatingNodes: true
|
|
27948
27949
|
});
|
|
@@ -28044,14 +28045,14 @@ var Invite = class Invite extends Offer {
|
|
|
28044
28045
|
const values = baseValues[0];
|
|
28045
28046
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Invite"];
|
|
28046
28047
|
if (this.id != null) values["@id"] = this.id.href;
|
|
28047
|
-
if (options.format === "expand") return await
|
|
28048
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28048
28049
|
const docContext = options.context ?? [
|
|
28049
28050
|
"https://w3id.org/identity/v1",
|
|
28050
28051
|
"https://www.w3.org/ns/activitystreams",
|
|
28051
28052
|
"https://w3id.org/security/data-integrity/v1",
|
|
28052
28053
|
"https://gotosocial.org/ns"
|
|
28053
28054
|
];
|
|
28054
|
-
const compacted = await
|
|
28055
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28055
28056
|
if (docContext != null) {
|
|
28056
28057
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
28057
28058
|
else compacted.proof["@context"] = docContext;
|
|
@@ -28103,7 +28104,7 @@ var Invite = class Invite extends Offer {
|
|
|
28103
28104
|
let values;
|
|
28104
28105
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
28105
28106
|
else {
|
|
28106
|
-
const expanded = await
|
|
28107
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
28107
28108
|
documentLoader: options.contextLoader,
|
|
28108
28109
|
keepFreeFloatingNodes: true
|
|
28109
28110
|
});
|
|
@@ -28204,14 +28205,14 @@ var Join = class Join extends Activity {
|
|
|
28204
28205
|
const values = baseValues[0];
|
|
28205
28206
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Join"];
|
|
28206
28207
|
if (this.id != null) values["@id"] = this.id.href;
|
|
28207
|
-
if (options.format === "expand") return await
|
|
28208
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28208
28209
|
const docContext = options.context ?? [
|
|
28209
28210
|
"https://w3id.org/identity/v1",
|
|
28210
28211
|
"https://www.w3.org/ns/activitystreams",
|
|
28211
28212
|
"https://w3id.org/security/data-integrity/v1",
|
|
28212
28213
|
"https://gotosocial.org/ns"
|
|
28213
28214
|
];
|
|
28214
|
-
const compacted = await
|
|
28215
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28215
28216
|
if (docContext != null) {
|
|
28216
28217
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
28217
28218
|
else compacted.proof["@context"] = docContext;
|
|
@@ -28263,7 +28264,7 @@ var Join = class Join extends Activity {
|
|
|
28263
28264
|
let values;
|
|
28264
28265
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
28265
28266
|
else {
|
|
28266
|
-
const expanded = await
|
|
28267
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
28267
28268
|
documentLoader: options.contextLoader,
|
|
28268
28269
|
keepFreeFloatingNodes: true
|
|
28269
28270
|
});
|
|
@@ -28364,14 +28365,14 @@ var Leave = class Leave extends Activity {
|
|
|
28364
28365
|
const values = baseValues[0];
|
|
28365
28366
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Leave"];
|
|
28366
28367
|
if (this.id != null) values["@id"] = this.id.href;
|
|
28367
|
-
if (options.format === "expand") return await
|
|
28368
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28368
28369
|
const docContext = options.context ?? [
|
|
28369
28370
|
"https://w3id.org/identity/v1",
|
|
28370
28371
|
"https://www.w3.org/ns/activitystreams",
|
|
28371
28372
|
"https://w3id.org/security/data-integrity/v1",
|
|
28372
28373
|
"https://gotosocial.org/ns"
|
|
28373
28374
|
];
|
|
28374
|
-
const compacted = await
|
|
28375
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28375
28376
|
if (docContext != null) {
|
|
28376
28377
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
28377
28378
|
else compacted.proof["@context"] = docContext;
|
|
@@ -28423,7 +28424,7 @@ var Leave = class Leave extends Activity {
|
|
|
28423
28424
|
let values;
|
|
28424
28425
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
28425
28426
|
else {
|
|
28426
|
-
const expanded = await
|
|
28427
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
28427
28428
|
documentLoader: options.contextLoader,
|
|
28428
28429
|
keepFreeFloatingNodes: true
|
|
28429
28430
|
});
|
|
@@ -28524,7 +28525,7 @@ var Like = class Like extends Activity {
|
|
|
28524
28525
|
const values = baseValues[0];
|
|
28525
28526
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Like"];
|
|
28526
28527
|
if (this.id != null) values["@id"] = this.id.href;
|
|
28527
|
-
if (options.format === "expand") return await
|
|
28528
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28528
28529
|
const docContext = options.context ?? [
|
|
28529
28530
|
"https://w3id.org/identity/v1",
|
|
28530
28531
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -28535,7 +28536,7 @@ var Like = class Like extends Activity {
|
|
|
28535
28536
|
"Emoji": "toot:Emoji"
|
|
28536
28537
|
}
|
|
28537
28538
|
];
|
|
28538
|
-
const compacted = await
|
|
28539
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28539
28540
|
if (docContext != null) {
|
|
28540
28541
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
28541
28542
|
else compacted.proof["@context"] = docContext;
|
|
@@ -28587,7 +28588,7 @@ var Like = class Like extends Activity {
|
|
|
28587
28588
|
let values;
|
|
28588
28589
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
28589
28590
|
else {
|
|
28590
|
-
const expanded = await
|
|
28591
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
28591
28592
|
documentLoader: options.contextLoader,
|
|
28592
28593
|
keepFreeFloatingNodes: true
|
|
28593
28594
|
});
|
|
@@ -28687,14 +28688,14 @@ var Listen = class Listen extends Activity {
|
|
|
28687
28688
|
const values = baseValues[0];
|
|
28688
28689
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Listen"];
|
|
28689
28690
|
if (this.id != null) values["@id"] = this.id.href;
|
|
28690
|
-
if (options.format === "expand") return await
|
|
28691
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28691
28692
|
const docContext = options.context ?? [
|
|
28692
28693
|
"https://w3id.org/identity/v1",
|
|
28693
28694
|
"https://www.w3.org/ns/activitystreams",
|
|
28694
28695
|
"https://w3id.org/security/data-integrity/v1",
|
|
28695
28696
|
"https://gotosocial.org/ns"
|
|
28696
28697
|
];
|
|
28697
|
-
const compacted = await
|
|
28698
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28698
28699
|
if (docContext != null) {
|
|
28699
28700
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
28700
28701
|
else compacted.proof["@context"] = docContext;
|
|
@@ -28746,7 +28747,7 @@ var Listen = class Listen extends Activity {
|
|
|
28746
28747
|
let values;
|
|
28747
28748
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
28748
28749
|
else {
|
|
28749
|
-
const expanded = await
|
|
28750
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
28750
28751
|
documentLoader: options.contextLoader,
|
|
28751
28752
|
keepFreeFloatingNodes: true
|
|
28752
28753
|
});
|
|
@@ -28858,9 +28859,9 @@ var Mention = class Mention extends Link {
|
|
|
28858
28859
|
const values = baseValues[0];
|
|
28859
28860
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Mention"];
|
|
28860
28861
|
if (this.id != null) values["@id"] = this.id.href;
|
|
28861
|
-
if (options.format === "expand") return await
|
|
28862
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
28862
28863
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
28863
|
-
const compacted = await
|
|
28864
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
28864
28865
|
if (docContext != null) {}
|
|
28865
28866
|
return compacted;
|
|
28866
28867
|
}
|
|
@@ -28909,7 +28910,7 @@ var Mention = class Mention extends Link {
|
|
|
28909
28910
|
let values;
|
|
28910
28911
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
28911
28912
|
else {
|
|
28912
|
-
const expanded = await
|
|
28913
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
28913
28914
|
documentLoader: options.contextLoader,
|
|
28914
28915
|
keepFreeFloatingNodes: true
|
|
28915
28916
|
});
|
|
@@ -29011,14 +29012,14 @@ var Move = class Move extends Activity {
|
|
|
29011
29012
|
const values = baseValues[0];
|
|
29012
29013
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Move"];
|
|
29013
29014
|
if (this.id != null) values["@id"] = this.id.href;
|
|
29014
|
-
if (options.format === "expand") return await
|
|
29015
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
29015
29016
|
const docContext = options.context ?? [
|
|
29016
29017
|
"https://w3id.org/identity/v1",
|
|
29017
29018
|
"https://www.w3.org/ns/activitystreams",
|
|
29018
29019
|
"https://w3id.org/security/data-integrity/v1",
|
|
29019
29020
|
"https://gotosocial.org/ns"
|
|
29020
29021
|
];
|
|
29021
|
-
const compacted = await
|
|
29022
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
29022
29023
|
if (docContext != null) {
|
|
29023
29024
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
29024
29025
|
else compacted.proof["@context"] = docContext;
|
|
@@ -29070,7 +29071,7 @@ var Move = class Move extends Activity {
|
|
|
29070
29071
|
let values;
|
|
29071
29072
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
29072
29073
|
else {
|
|
29073
|
-
const expanded = await
|
|
29074
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
29074
29075
|
documentLoader: options.contextLoader,
|
|
29075
29076
|
keepFreeFloatingNodes: true
|
|
29076
29077
|
});
|
|
@@ -29245,7 +29246,7 @@ var Note = class Note extends Object$1 {
|
|
|
29245
29246
|
}
|
|
29246
29247
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Note"];
|
|
29247
29248
|
if (this.id != null) values["@id"] = this.id.href;
|
|
29248
|
-
if (options.format === "expand") return await
|
|
29249
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
29249
29250
|
const docContext = options.context ?? [
|
|
29250
29251
|
"https://www.w3.org/ns/activitystreams",
|
|
29251
29252
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -29266,7 +29267,7 @@ var Note = class Note extends Object$1 {
|
|
|
29266
29267
|
}
|
|
29267
29268
|
}
|
|
29268
29269
|
];
|
|
29269
|
-
const compacted = await
|
|
29270
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
29270
29271
|
if (docContext != null) {
|
|
29271
29272
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
29272
29273
|
else compacted.proof["@context"] = docContext;
|
|
@@ -29318,7 +29319,7 @@ var Note = class Note extends Object$1 {
|
|
|
29318
29319
|
let values;
|
|
29319
29320
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
29320
29321
|
else {
|
|
29321
|
-
const expanded = await
|
|
29322
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
29322
29323
|
documentLoader: options.contextLoader,
|
|
29323
29324
|
keepFreeFloatingNodes: true
|
|
29324
29325
|
});
|
|
@@ -29635,7 +29636,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
29635
29636
|
}
|
|
29636
29637
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#OrderedCollection"];
|
|
29637
29638
|
if (this.id != null) values["@id"] = this.id.href;
|
|
29638
|
-
if (options.format === "expand") return await
|
|
29639
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
29639
29640
|
const docContext = options.context ?? [
|
|
29640
29641
|
"https://www.w3.org/ns/activitystreams",
|
|
29641
29642
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -29658,7 +29659,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
29658
29659
|
}
|
|
29659
29660
|
}
|
|
29660
29661
|
];
|
|
29661
|
-
const compacted = await
|
|
29662
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
29662
29663
|
if (docContext != null) {
|
|
29663
29664
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
29664
29665
|
else compacted.proof["@context"] = docContext;
|
|
@@ -29710,7 +29711,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
29710
29711
|
let values;
|
|
29711
29712
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
29712
29713
|
else {
|
|
29713
|
-
const expanded = await
|
|
29714
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
29714
29715
|
documentLoader: options.contextLoader,
|
|
29715
29716
|
keepFreeFloatingNodes: true
|
|
29716
29717
|
});
|
|
@@ -30137,7 +30138,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
30137
30138
|
}
|
|
30138
30139
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#OrderedCollectionPage"];
|
|
30139
30140
|
if (this.id != null) values["@id"] = this.id.href;
|
|
30140
|
-
if (options.format === "expand") return await
|
|
30141
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
30141
30142
|
const docContext = options.context ?? [
|
|
30142
30143
|
"https://www.w3.org/ns/activitystreams",
|
|
30143
30144
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -30160,7 +30161,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
30160
30161
|
}
|
|
30161
30162
|
}
|
|
30162
30163
|
];
|
|
30163
|
-
const compacted = await
|
|
30164
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
30164
30165
|
if (docContext != null) {
|
|
30165
30166
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
30166
30167
|
else compacted.proof["@context"] = docContext;
|
|
@@ -30212,7 +30213,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
30212
30213
|
let values;
|
|
30213
30214
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
30214
30215
|
else {
|
|
30215
|
-
const expanded = await
|
|
30216
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
30216
30217
|
documentLoader: options.contextLoader,
|
|
30217
30218
|
keepFreeFloatingNodes: true
|
|
30218
30219
|
});
|
|
@@ -33177,7 +33178,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33177
33178
|
}
|
|
33178
33179
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Organization"];
|
|
33179
33180
|
if (this.id != null) values["@id"] = this.id.href;
|
|
33180
|
-
if (options.format === "expand") return await
|
|
33181
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
33181
33182
|
const docContext = options.context ?? [
|
|
33182
33183
|
"https://www.w3.org/ns/activitystreams",
|
|
33183
33184
|
"https://w3id.org/security/v1",
|
|
@@ -33217,7 +33218,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33217
33218
|
"isCat": "misskey:isCat"
|
|
33218
33219
|
}
|
|
33219
33220
|
];
|
|
33220
|
-
const compacted = await
|
|
33221
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
33221
33222
|
if (docContext != null) {
|
|
33222
33223
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
33223
33224
|
else compacted.proof["@context"] = docContext;
|
|
@@ -33271,7 +33272,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
33271
33272
|
let values;
|
|
33272
33273
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
33273
33274
|
else {
|
|
33274
|
-
const expanded = await
|
|
33275
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
33275
33276
|
documentLoader: options.contextLoader,
|
|
33276
33277
|
keepFreeFloatingNodes: true
|
|
33277
33278
|
});
|
|
@@ -33803,13 +33804,13 @@ var Page = class Page extends Document {
|
|
|
33803
33804
|
const values = baseValues[0];
|
|
33804
33805
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Page"];
|
|
33805
33806
|
if (this.id != null) values["@id"] = this.id.href;
|
|
33806
|
-
if (options.format === "expand") return await
|
|
33807
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
33807
33808
|
const docContext = options.context ?? [
|
|
33808
33809
|
"https://www.w3.org/ns/activitystreams",
|
|
33809
33810
|
"https://w3id.org/security/data-integrity/v1",
|
|
33810
33811
|
"https://gotosocial.org/ns"
|
|
33811
33812
|
];
|
|
33812
|
-
const compacted = await
|
|
33813
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
33813
33814
|
if (docContext != null) {
|
|
33814
33815
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
33815
33816
|
else compacted.proof["@context"] = docContext;
|
|
@@ -33861,7 +33862,7 @@ var Page = class Page extends Document {
|
|
|
33861
33862
|
let values;
|
|
33862
33863
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
33863
33864
|
else {
|
|
33864
|
-
const expanded = await
|
|
33865
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
33865
33866
|
documentLoader: options.contextLoader,
|
|
33866
33867
|
keepFreeFloatingNodes: true
|
|
33867
33868
|
});
|
|
@@ -36723,7 +36724,7 @@ var Person = class Person extends Object$1 {
|
|
|
36723
36724
|
}
|
|
36724
36725
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Person"];
|
|
36725
36726
|
if (this.id != null) values["@id"] = this.id.href;
|
|
36726
|
-
if (options.format === "expand") return await
|
|
36727
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
36727
36728
|
const docContext = options.context ?? [
|
|
36728
36729
|
"https://www.w3.org/ns/activitystreams",
|
|
36729
36730
|
"https://w3id.org/security/v1",
|
|
@@ -36763,7 +36764,7 @@ var Person = class Person extends Object$1 {
|
|
|
36763
36764
|
"isCat": "misskey:isCat"
|
|
36764
36765
|
}
|
|
36765
36766
|
];
|
|
36766
|
-
const compacted = await
|
|
36767
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
36767
36768
|
if (docContext != null) {
|
|
36768
36769
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
36769
36770
|
else compacted.proof["@context"] = docContext;
|
|
@@ -36817,7 +36818,7 @@ var Person = class Person extends Object$1 {
|
|
|
36817
36818
|
let values;
|
|
36818
36819
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
36819
36820
|
else {
|
|
36820
|
-
const expanded = await
|
|
36821
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
36821
36822
|
documentLoader: options.contextLoader,
|
|
36822
36823
|
keepFreeFloatingNodes: true
|
|
36823
36824
|
});
|
|
@@ -37542,13 +37543,13 @@ var Place = class Place extends Object$1 {
|
|
|
37542
37543
|
}
|
|
37543
37544
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Place"];
|
|
37544
37545
|
if (this.id != null) values["@id"] = this.id.href;
|
|
37545
|
-
if (options.format === "expand") return await
|
|
37546
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
37546
37547
|
const docContext = options.context ?? [
|
|
37547
37548
|
"https://www.w3.org/ns/activitystreams",
|
|
37548
37549
|
"https://w3id.org/security/data-integrity/v1",
|
|
37549
37550
|
"https://gotosocial.org/ns"
|
|
37550
37551
|
];
|
|
37551
|
-
const compacted = await
|
|
37552
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
37552
37553
|
if (docContext != null) {
|
|
37553
37554
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
37554
37555
|
else compacted.proof["@context"] = docContext;
|
|
@@ -37600,7 +37601,7 @@ var Place = class Place extends Object$1 {
|
|
|
37600
37601
|
let values;
|
|
37601
37602
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
37602
37603
|
else {
|
|
37603
|
-
const expanded = await
|
|
37604
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
37604
37605
|
documentLoader: options.contextLoader,
|
|
37605
37606
|
keepFreeFloatingNodes: true
|
|
37606
37607
|
});
|
|
@@ -37947,13 +37948,13 @@ var Profile = class Profile extends Object$1 {
|
|
|
37947
37948
|
}
|
|
37948
37949
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Profile"];
|
|
37949
37950
|
if (this.id != null) values["@id"] = this.id.href;
|
|
37950
|
-
if (options.format === "expand") return await
|
|
37951
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
37951
37952
|
const docContext = options.context ?? [
|
|
37952
37953
|
"https://www.w3.org/ns/activitystreams",
|
|
37953
37954
|
"https://w3id.org/security/data-integrity/v1",
|
|
37954
37955
|
"https://gotosocial.org/ns"
|
|
37955
37956
|
];
|
|
37956
|
-
const compacted = await
|
|
37957
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
37957
37958
|
if (docContext != null) {
|
|
37958
37959
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
37959
37960
|
else compacted.proof["@context"] = docContext;
|
|
@@ -38005,7 +38006,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
38005
38006
|
let values;
|
|
38006
38007
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
38007
38008
|
else {
|
|
38008
|
-
const expanded = await
|
|
38009
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
38009
38010
|
documentLoader: options.contextLoader,
|
|
38010
38011
|
keepFreeFloatingNodes: true
|
|
38011
38012
|
});
|
|
@@ -38507,7 +38508,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
38507
38508
|
}
|
|
38508
38509
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Question"];
|
|
38509
38510
|
if (this.id != null) values["@id"] = this.id.href;
|
|
38510
|
-
if (options.format === "expand") return await
|
|
38511
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
38511
38512
|
const docContext = options.context ?? [
|
|
38512
38513
|
"https://w3id.org/identity/v1",
|
|
38513
38514
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -38533,7 +38534,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
38533
38534
|
}
|
|
38534
38535
|
}
|
|
38535
38536
|
];
|
|
38536
|
-
const compacted = await
|
|
38537
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
38537
38538
|
if (docContext != null) {
|
|
38538
38539
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
38539
38540
|
else compacted.proof["@context"] = docContext;
|
|
@@ -38585,7 +38586,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
38585
38586
|
let values;
|
|
38586
38587
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
38587
38588
|
else {
|
|
38588
|
-
const expanded = await
|
|
38589
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
38589
38590
|
documentLoader: options.contextLoader,
|
|
38590
38591
|
keepFreeFloatingNodes: true
|
|
38591
38592
|
});
|
|
@@ -38765,14 +38766,14 @@ var Read = class Read extends Activity {
|
|
|
38765
38766
|
const values = baseValues[0];
|
|
38766
38767
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Read"];
|
|
38767
38768
|
if (this.id != null) values["@id"] = this.id.href;
|
|
38768
|
-
if (options.format === "expand") return await
|
|
38769
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
38769
38770
|
const docContext = options.context ?? [
|
|
38770
38771
|
"https://w3id.org/identity/v1",
|
|
38771
38772
|
"https://www.w3.org/ns/activitystreams",
|
|
38772
38773
|
"https://w3id.org/security/data-integrity/v1",
|
|
38773
38774
|
"https://gotosocial.org/ns"
|
|
38774
38775
|
];
|
|
38775
|
-
const compacted = await
|
|
38776
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
38776
38777
|
if (docContext != null) {
|
|
38777
38778
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
38778
38779
|
else compacted.proof["@context"] = docContext;
|
|
@@ -38824,7 +38825,7 @@ var Read = class Read extends Activity {
|
|
|
38824
38825
|
let values;
|
|
38825
38826
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
38826
38827
|
else {
|
|
38827
|
-
const expanded = await
|
|
38828
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
38828
38829
|
documentLoader: options.contextLoader,
|
|
38829
38830
|
keepFreeFloatingNodes: true
|
|
38830
38831
|
});
|
|
@@ -38925,14 +38926,14 @@ var Reject = class Reject extends Activity {
|
|
|
38925
38926
|
const values = baseValues[0];
|
|
38926
38927
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Reject"];
|
|
38927
38928
|
if (this.id != null) values["@id"] = this.id.href;
|
|
38928
|
-
if (options.format === "expand") return await
|
|
38929
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
38929
38930
|
const docContext = options.context ?? [
|
|
38930
38931
|
"https://w3id.org/identity/v1",
|
|
38931
38932
|
"https://www.w3.org/ns/activitystreams",
|
|
38932
38933
|
"https://w3id.org/security/data-integrity/v1",
|
|
38933
38934
|
"https://gotosocial.org/ns"
|
|
38934
38935
|
];
|
|
38935
|
-
const compacted = await
|
|
38936
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
38936
38937
|
if (docContext != null) {
|
|
38937
38938
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
38938
38939
|
else compacted.proof["@context"] = docContext;
|
|
@@ -38984,7 +38985,7 @@ var Reject = class Reject extends Activity {
|
|
|
38984
38985
|
let values;
|
|
38985
38986
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
38986
38987
|
else {
|
|
38987
|
-
const expanded = await
|
|
38988
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
38988
38989
|
documentLoader: options.contextLoader,
|
|
38989
38990
|
keepFreeFloatingNodes: true
|
|
38990
38991
|
});
|
|
@@ -39684,13 +39685,13 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
39684
39685
|
}
|
|
39685
39686
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Relationship"];
|
|
39686
39687
|
if (this.id != null) values["@id"] = this.id.href;
|
|
39687
|
-
if (options.format === "expand") return await
|
|
39688
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
39688
39689
|
const docContext = options.context ?? [
|
|
39689
39690
|
"https://www.w3.org/ns/activitystreams",
|
|
39690
39691
|
"https://w3id.org/security/data-integrity/v1",
|
|
39691
39692
|
"https://gotosocial.org/ns"
|
|
39692
39693
|
];
|
|
39693
|
-
const compacted = await
|
|
39694
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
39694
39695
|
if (docContext != null) {
|
|
39695
39696
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
39696
39697
|
else compacted.proof["@context"] = docContext;
|
|
@@ -39742,7 +39743,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
39742
39743
|
let values;
|
|
39743
39744
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
39744
39745
|
else {
|
|
39745
|
-
const expanded = await
|
|
39746
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
39746
39747
|
documentLoader: options.contextLoader,
|
|
39747
39748
|
keepFreeFloatingNodes: true
|
|
39748
39749
|
});
|
|
@@ -39905,14 +39906,14 @@ var Remove = class Remove extends Activity {
|
|
|
39905
39906
|
const values = baseValues[0];
|
|
39906
39907
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Remove"];
|
|
39907
39908
|
if (this.id != null) values["@id"] = this.id.href;
|
|
39908
|
-
if (options.format === "expand") return await
|
|
39909
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
39909
39910
|
const docContext = options.context ?? [
|
|
39910
39911
|
"https://w3id.org/identity/v1",
|
|
39911
39912
|
"https://www.w3.org/ns/activitystreams",
|
|
39912
39913
|
"https://w3id.org/security/data-integrity/v1",
|
|
39913
39914
|
"https://gotosocial.org/ns"
|
|
39914
39915
|
];
|
|
39915
|
-
const compacted = await
|
|
39916
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
39916
39917
|
if (docContext != null) {
|
|
39917
39918
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
39918
39919
|
else compacted.proof["@context"] = docContext;
|
|
@@ -39964,7 +39965,7 @@ var Remove = class Remove extends Activity {
|
|
|
39964
39965
|
let values;
|
|
39965
39966
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
39966
39967
|
else {
|
|
39967
|
-
const expanded = await
|
|
39968
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
39968
39969
|
documentLoader: options.contextLoader,
|
|
39969
39970
|
keepFreeFloatingNodes: true
|
|
39970
39971
|
});
|
|
@@ -42826,7 +42827,7 @@ var Service = class Service extends Object$1 {
|
|
|
42826
42827
|
}
|
|
42827
42828
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Service"];
|
|
42828
42829
|
if (this.id != null) values["@id"] = this.id.href;
|
|
42829
|
-
if (options.format === "expand") return await
|
|
42830
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
42830
42831
|
const docContext = options.context ?? [
|
|
42831
42832
|
"https://www.w3.org/ns/activitystreams",
|
|
42832
42833
|
"https://w3id.org/security/v1",
|
|
@@ -42866,7 +42867,7 @@ var Service = class Service extends Object$1 {
|
|
|
42866
42867
|
"isCat": "misskey:isCat"
|
|
42867
42868
|
}
|
|
42868
42869
|
];
|
|
42869
|
-
const compacted = await
|
|
42870
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
42870
42871
|
if (docContext != null) {
|
|
42871
42872
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
42872
42873
|
else compacted.proof["@context"] = docContext;
|
|
@@ -42920,7 +42921,7 @@ var Service = class Service extends Object$1 {
|
|
|
42920
42921
|
let values;
|
|
42921
42922
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
42922
42923
|
else {
|
|
42923
|
-
const expanded = await
|
|
42924
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
42924
42925
|
documentLoader: options.contextLoader,
|
|
42925
42926
|
keepFreeFloatingNodes: true
|
|
42926
42927
|
});
|
|
@@ -43543,9 +43544,9 @@ var Source = class {
|
|
|
43543
43544
|
values["https://www.w3.org/ns/activitystreams#mediaType"] = propValue;
|
|
43544
43545
|
}
|
|
43545
43546
|
if (this.id != null) values["@id"] = this.id.href;
|
|
43546
|
-
if (options.format === "expand") return await
|
|
43547
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
43547
43548
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
43548
|
-
const compacted = await
|
|
43549
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
43549
43550
|
if (docContext != null) {}
|
|
43550
43551
|
return compacted;
|
|
43551
43552
|
}
|
|
@@ -43595,7 +43596,7 @@ var Source = class {
|
|
|
43595
43596
|
let values;
|
|
43596
43597
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
43597
43598
|
else {
|
|
43598
|
-
const expanded = await
|
|
43599
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
43599
43600
|
documentLoader: options.contextLoader,
|
|
43600
43601
|
keepFreeFloatingNodes: true
|
|
43601
43602
|
});
|
|
@@ -43722,14 +43723,14 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
43722
43723
|
const values = baseValues[0];
|
|
43723
43724
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#TentativeAccept"];
|
|
43724
43725
|
if (this.id != null) values["@id"] = this.id.href;
|
|
43725
|
-
if (options.format === "expand") return await
|
|
43726
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
43726
43727
|
const docContext = options.context ?? [
|
|
43727
43728
|
"https://w3id.org/identity/v1",
|
|
43728
43729
|
"https://www.w3.org/ns/activitystreams",
|
|
43729
43730
|
"https://w3id.org/security/data-integrity/v1",
|
|
43730
43731
|
"https://gotosocial.org/ns"
|
|
43731
43732
|
];
|
|
43732
|
-
const compacted = await
|
|
43733
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
43733
43734
|
if (docContext != null) {
|
|
43734
43735
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
43735
43736
|
else compacted.proof["@context"] = docContext;
|
|
@@ -43781,7 +43782,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
43781
43782
|
let values;
|
|
43782
43783
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
43783
43784
|
else {
|
|
43784
|
-
const expanded = await
|
|
43785
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
43785
43786
|
documentLoader: options.contextLoader,
|
|
43786
43787
|
keepFreeFloatingNodes: true
|
|
43787
43788
|
});
|
|
@@ -43882,14 +43883,14 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
43882
43883
|
const values = baseValues[0];
|
|
43883
43884
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#TentativeReject"];
|
|
43884
43885
|
if (this.id != null) values["@id"] = this.id.href;
|
|
43885
|
-
if (options.format === "expand") return await
|
|
43886
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
43886
43887
|
const docContext = options.context ?? [
|
|
43887
43888
|
"https://w3id.org/identity/v1",
|
|
43888
43889
|
"https://www.w3.org/ns/activitystreams",
|
|
43889
43890
|
"https://w3id.org/security/data-integrity/v1",
|
|
43890
43891
|
"https://gotosocial.org/ns"
|
|
43891
43892
|
];
|
|
43892
|
-
const compacted = await
|
|
43893
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
43893
43894
|
if (docContext != null) {
|
|
43894
43895
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
43895
43896
|
else compacted.proof["@context"] = docContext;
|
|
@@ -43941,7 +43942,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
43941
43942
|
let values;
|
|
43942
43943
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
43943
43944
|
else {
|
|
43944
|
-
const expanded = await
|
|
43945
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
43945
43946
|
documentLoader: options.contextLoader,
|
|
43946
43947
|
keepFreeFloatingNodes: true
|
|
43947
43948
|
});
|
|
@@ -44091,13 +44092,13 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
44091
44092
|
}
|
|
44092
44093
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Tombstone"];
|
|
44093
44094
|
if (this.id != null) values["@id"] = this.id.href;
|
|
44094
|
-
if (options.format === "expand") return await
|
|
44095
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44095
44096
|
const docContext = options.context ?? [
|
|
44096
44097
|
"https://www.w3.org/ns/activitystreams",
|
|
44097
44098
|
"https://w3id.org/security/data-integrity/v1",
|
|
44098
44099
|
"https://gotosocial.org/ns"
|
|
44099
44100
|
];
|
|
44100
|
-
const compacted = await
|
|
44101
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
44101
44102
|
if (docContext != null) {
|
|
44102
44103
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
44103
44104
|
else compacted.proof["@context"] = docContext;
|
|
@@ -44149,7 +44150,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
44149
44150
|
let values;
|
|
44150
44151
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
44151
44152
|
else {
|
|
44152
|
-
const expanded = await
|
|
44153
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
44153
44154
|
documentLoader: options.contextLoader,
|
|
44154
44155
|
keepFreeFloatingNodes: true
|
|
44155
44156
|
});
|
|
@@ -44264,14 +44265,14 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
44264
44265
|
const values = baseValues[0];
|
|
44265
44266
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Travel"];
|
|
44266
44267
|
if (this.id != null) values["@id"] = this.id.href;
|
|
44267
|
-
if (options.format === "expand") return await
|
|
44268
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44268
44269
|
const docContext = options.context ?? [
|
|
44269
44270
|
"https://w3id.org/identity/v1",
|
|
44270
44271
|
"https://www.w3.org/ns/activitystreams",
|
|
44271
44272
|
"https://w3id.org/security/data-integrity/v1",
|
|
44272
44273
|
"https://gotosocial.org/ns"
|
|
44273
44274
|
];
|
|
44274
|
-
const compacted = await
|
|
44275
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
44275
44276
|
if (docContext != null) {
|
|
44276
44277
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
44277
44278
|
else compacted.proof["@context"] = docContext;
|
|
@@ -44323,7 +44324,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
44323
44324
|
let values;
|
|
44324
44325
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
44325
44326
|
else {
|
|
44326
|
-
const expanded = await
|
|
44327
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
44327
44328
|
documentLoader: options.contextLoader,
|
|
44328
44329
|
keepFreeFloatingNodes: true
|
|
44329
44330
|
});
|
|
@@ -44429,7 +44430,7 @@ var Undo = class Undo extends Activity {
|
|
|
44429
44430
|
const values = baseValues[0];
|
|
44430
44431
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Undo"];
|
|
44431
44432
|
if (this.id != null) values["@id"] = this.id.href;
|
|
44432
|
-
if (options.format === "expand") return await
|
|
44433
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44433
44434
|
const docContext = options.context ?? [
|
|
44434
44435
|
"https://w3id.org/identity/v1",
|
|
44435
44436
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -44445,7 +44446,7 @@ var Undo = class Undo extends Activity {
|
|
|
44445
44446
|
"Emoji": "toot:Emoji"
|
|
44446
44447
|
}
|
|
44447
44448
|
];
|
|
44448
|
-
const compacted = await
|
|
44449
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
44449
44450
|
if (docContext != null) {
|
|
44450
44451
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
44451
44452
|
else compacted.proof["@context"] = docContext;
|
|
@@ -44497,7 +44498,7 @@ var Undo = class Undo extends Activity {
|
|
|
44497
44498
|
let values;
|
|
44498
44499
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
44499
44500
|
else {
|
|
44500
|
-
const expanded = await
|
|
44501
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
44501
44502
|
documentLoader: options.contextLoader,
|
|
44502
44503
|
keepFreeFloatingNodes: true
|
|
44503
44504
|
});
|
|
@@ -44601,7 +44602,7 @@ var Update = class Update extends Activity {
|
|
|
44601
44602
|
const values = baseValues[0];
|
|
44602
44603
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Update"];
|
|
44603
44604
|
if (this.id != null) values["@id"] = this.id.href;
|
|
44604
|
-
if (options.format === "expand") return await
|
|
44605
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44605
44606
|
const docContext = options.context ?? [
|
|
44606
44607
|
"https://w3id.org/identity/v1",
|
|
44607
44608
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -44657,7 +44658,7 @@ var Update = class Update extends Activity {
|
|
|
44657
44658
|
}
|
|
44658
44659
|
}
|
|
44659
44660
|
];
|
|
44660
|
-
const compacted = await
|
|
44661
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
44661
44662
|
if (docContext != null) {
|
|
44662
44663
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
44663
44664
|
else compacted.proof["@context"] = docContext;
|
|
@@ -44709,7 +44710,7 @@ var Update = class Update extends Activity {
|
|
|
44709
44710
|
let values;
|
|
44710
44711
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
44711
44712
|
else {
|
|
44712
|
-
const expanded = await
|
|
44713
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
44713
44714
|
documentLoader: options.contextLoader,
|
|
44714
44715
|
keepFreeFloatingNodes: true
|
|
44715
44716
|
});
|
|
@@ -44825,13 +44826,13 @@ var Video = class Video extends Document {
|
|
|
44825
44826
|
const values = baseValues[0];
|
|
44826
44827
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Video"];
|
|
44827
44828
|
if (this.id != null) values["@id"] = this.id.href;
|
|
44828
|
-
if (options.format === "expand") return await
|
|
44829
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44829
44830
|
const docContext = options.context ?? [
|
|
44830
44831
|
"https://www.w3.org/ns/activitystreams",
|
|
44831
44832
|
"https://w3id.org/security/data-integrity/v1",
|
|
44832
44833
|
"https://gotosocial.org/ns"
|
|
44833
44834
|
];
|
|
44834
|
-
const compacted = await
|
|
44835
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
44835
44836
|
if (docContext != null) {
|
|
44836
44837
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
44837
44838
|
else compacted.proof["@context"] = docContext;
|
|
@@ -44883,7 +44884,7 @@ var Video = class Video extends Document {
|
|
|
44883
44884
|
let values;
|
|
44884
44885
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
44885
44886
|
else {
|
|
44886
|
-
const expanded = await
|
|
44887
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
44887
44888
|
documentLoader: options.contextLoader,
|
|
44888
44889
|
keepFreeFloatingNodes: true
|
|
44889
44890
|
});
|
|
@@ -44983,14 +44984,14 @@ var View = class View extends Activity {
|
|
|
44983
44984
|
const values = baseValues[0];
|
|
44984
44985
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#View"];
|
|
44985
44986
|
if (this.id != null) values["@id"] = this.id.href;
|
|
44986
|
-
if (options.format === "expand") return await
|
|
44987
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
44987
44988
|
const docContext = options.context ?? [
|
|
44988
44989
|
"https://w3id.org/identity/v1",
|
|
44989
44990
|
"https://www.w3.org/ns/activitystreams",
|
|
44990
44991
|
"https://w3id.org/security/data-integrity/v1",
|
|
44991
44992
|
"https://gotosocial.org/ns"
|
|
44992
44993
|
];
|
|
44993
|
-
const compacted = await
|
|
44994
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
44994
44995
|
if (docContext != null) {
|
|
44995
44996
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
44996
44997
|
else compacted.proof["@context"] = docContext;
|
|
@@ -45042,7 +45043,7 @@ var View = class View extends Activity {
|
|
|
45042
45043
|
let values;
|
|
45043
45044
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
45044
45045
|
else {
|
|
45045
|
-
const expanded = await
|
|
45046
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
45046
45047
|
documentLoader: options.contextLoader,
|
|
45047
45048
|
keepFreeFloatingNodes: true
|
|
45048
45049
|
});
|