@fedify/vocab 2.0.7-dev.573 → 2.0.7-dev.586
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 +201 -200
- package/dist/mod.js +3 -2
- package/{dist → dist-tests}/actor.test.js +2 -2
- package/{dist/deno-11VohL-x.js → dist-tests/deno-DDndSFJD.js} +3 -2
- package/{dist → dist-tests}/lookup.test.js +2 -2
- package/{dist → dist-tests}/type.test.js +1 -1
- package/{dist/vocab-ksyhWfAN.js → dist-tests/vocab-BDW9_gZ_.js} +1 -1
- package/{dist → dist-tests}/vocab.test.js +1 -1
- package/package.json +6 -7
- package/tsdown.config.ts +13 -4
- package/dist/actor.test.d.ts +0 -2
- 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}/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}/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}/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}/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 → 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 → 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.0.7-dev.
|
|
37
|
+
var version = "2.0.7-dev.586+b3928d60";
|
|
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"
|
|
@@ -4619,7 +4620,7 @@ var Object$1 = class Object$1 {
|
|
|
4619
4620
|
}
|
|
4620
4621
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Object"];
|
|
4621
4622
|
if (this.id != null) values["@id"] = this.id.href;
|
|
4622
|
-
if (options.format === "expand") return await
|
|
4623
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
4623
4624
|
const docContext = options.context ?? [
|
|
4624
4625
|
"https://www.w3.org/ns/activitystreams",
|
|
4625
4626
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -4632,7 +4633,7 @@ var Object$1 = class Object$1 {
|
|
|
4632
4633
|
}
|
|
4633
4634
|
}
|
|
4634
4635
|
];
|
|
4635
|
-
const compacted = await
|
|
4636
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
4636
4637
|
if (docContext != null) {
|
|
4637
4638
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
4638
4639
|
else compacted.proof["@context"] = docContext;
|
|
@@ -4688,7 +4689,7 @@ var Object$1 = class Object$1 {
|
|
|
4688
4689
|
let values;
|
|
4689
4690
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
4690
4691
|
else {
|
|
4691
|
-
const expanded = await
|
|
4692
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
4692
4693
|
documentLoader: options.contextLoader,
|
|
4693
4694
|
keepFreeFloatingNodes: true
|
|
4694
4695
|
});
|
|
@@ -5906,12 +5907,12 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
5906
5907
|
const values = baseValues[0];
|
|
5907
5908
|
values["@type"] = ["http://joinmastodon.org/ns#Emoji"];
|
|
5908
5909
|
if (this.id != null) values["@id"] = this.id.href;
|
|
5909
|
-
if (options.format === "expand") return await
|
|
5910
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
5910
5911
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
|
|
5911
5912
|
"toot": "http://joinmastodon.org/ns#",
|
|
5912
5913
|
"Emoji": "toot:Emoji"
|
|
5913
5914
|
}];
|
|
5914
|
-
const compacted = await
|
|
5915
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
5915
5916
|
if (docContext != null) {
|
|
5916
5917
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
5917
5918
|
else compacted.proof["@context"] = docContext;
|
|
@@ -5963,7 +5964,7 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
5963
5964
|
let values;
|
|
5964
5965
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
5965
5966
|
else {
|
|
5966
|
-
const expanded = await
|
|
5967
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
5967
5968
|
documentLoader: options.contextLoader,
|
|
5968
5969
|
keepFreeFloatingNodes: true
|
|
5969
5970
|
});
|
|
@@ -6139,7 +6140,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6139
6140
|
}
|
|
6140
6141
|
values["@type"] = ["http://litepub.social/ns#ChatMessage"];
|
|
6141
6142
|
if (this.id != null) values["@id"] = this.id.href;
|
|
6142
|
-
if (options.format === "expand") return await
|
|
6143
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
6143
6144
|
const docContext = options.context ?? [
|
|
6144
6145
|
"https://www.w3.org/ns/activitystreams",
|
|
6145
6146
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -6158,7 +6159,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6158
6159
|
}
|
|
6159
6160
|
}
|
|
6160
6161
|
];
|
|
6161
|
-
const compacted = await
|
|
6162
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
6162
6163
|
if (docContext != null) {
|
|
6163
6164
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
6164
6165
|
else compacted.proof["@context"] = docContext;
|
|
@@ -6210,7 +6211,7 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
6210
6211
|
let values;
|
|
6211
6212
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
6212
6213
|
else {
|
|
6213
|
-
const expanded = await
|
|
6214
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
6214
6215
|
documentLoader: options.contextLoader,
|
|
6215
6216
|
keepFreeFloatingNodes: true
|
|
6216
6217
|
});
|
|
@@ -7598,14 +7599,14 @@ var Activity = class Activity extends Object$1 {
|
|
|
7598
7599
|
}
|
|
7599
7600
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Activity"];
|
|
7600
7601
|
if (this.id != null) values["@id"] = this.id.href;
|
|
7601
|
-
if (options.format === "expand") return await
|
|
7602
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
7602
7603
|
const docContext = options.context ?? [
|
|
7603
7604
|
"https://w3id.org/identity/v1",
|
|
7604
7605
|
"https://www.w3.org/ns/activitystreams",
|
|
7605
7606
|
"https://w3id.org/security/v1",
|
|
7606
7607
|
"https://w3id.org/security/data-integrity/v1"
|
|
7607
7608
|
];
|
|
7608
|
-
const compacted = await
|
|
7609
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
7609
7610
|
if (docContext != null) {
|
|
7610
7611
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
7611
7612
|
else compacted.proof["@context"] = docContext;
|
|
@@ -7657,7 +7658,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
7657
7658
|
let values;
|
|
7658
7659
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
7659
7660
|
else {
|
|
7660
|
-
const expanded = await
|
|
7661
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
7661
7662
|
documentLoader: options.contextLoader,
|
|
7662
7663
|
keepFreeFloatingNodes: true
|
|
7663
7664
|
});
|
|
@@ -7927,7 +7928,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
7927
7928
|
const values = baseValues[0];
|
|
7928
7929
|
values["@type"] = ["http://litepub.social/ns#EmojiReact"];
|
|
7929
7930
|
if (this.id != null) values["@id"] = this.id.href;
|
|
7930
|
-
if (options.format === "expand") return await
|
|
7931
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
7931
7932
|
const docContext = options.context ?? [
|
|
7932
7933
|
"https://w3id.org/identity/v1",
|
|
7933
7934
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -7939,7 +7940,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
7939
7940
|
"Emoji": "toot:Emoji"
|
|
7940
7941
|
}
|
|
7941
7942
|
];
|
|
7942
|
-
const compacted = await
|
|
7943
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
7943
7944
|
if (docContext != null) {
|
|
7944
7945
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
7945
7946
|
else compacted.proof["@context"] = docContext;
|
|
@@ -7991,7 +7992,7 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
7991
7992
|
let values;
|
|
7992
7993
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
7993
7994
|
else {
|
|
7994
|
-
const expanded = await
|
|
7995
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
7995
7996
|
documentLoader: options.contextLoader,
|
|
7996
7997
|
keepFreeFloatingNodes: true
|
|
7997
7998
|
});
|
|
@@ -8195,13 +8196,13 @@ var PropertyValue = class {
|
|
|
8195
8196
|
}
|
|
8196
8197
|
values["@type"] = ["http://schema.org#PropertyValue"];
|
|
8197
8198
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8198
|
-
if (options.format === "expand") return await
|
|
8199
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8199
8200
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", {
|
|
8200
8201
|
"schema": "http://schema.org#",
|
|
8201
8202
|
"PropertyValue": "schema:PropertyValue",
|
|
8202
8203
|
"value": "schema:value"
|
|
8203
8204
|
}];
|
|
8204
|
-
const compacted = await
|
|
8205
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8205
8206
|
if (docContext != null) {}
|
|
8206
8207
|
return compacted;
|
|
8207
8208
|
}
|
|
@@ -8252,7 +8253,7 @@ var PropertyValue = class {
|
|
|
8252
8253
|
let values;
|
|
8253
8254
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
8254
8255
|
else {
|
|
8255
|
-
const expanded = await
|
|
8256
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
8256
8257
|
documentLoader: options.contextLoader,
|
|
8257
8258
|
keepFreeFloatingNodes: true
|
|
8258
8259
|
});
|
|
@@ -8445,9 +8446,9 @@ var DidService = class {
|
|
|
8445
8446
|
}
|
|
8446
8447
|
values["@type"] = ["https://www.w3.org/ns/did#Service"];
|
|
8447
8448
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8448
|
-
if (options.format === "expand") return await
|
|
8449
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8449
8450
|
const docContext = options.context ?? "https://www.w3.org/ns/did/v1";
|
|
8450
|
-
const compacted = await
|
|
8451
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8451
8452
|
if (docContext != null) {}
|
|
8452
8453
|
return compacted;
|
|
8453
8454
|
}
|
|
@@ -8496,7 +8497,7 @@ var DidService = class {
|
|
|
8496
8497
|
let values;
|
|
8497
8498
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
8498
8499
|
else {
|
|
8499
|
-
const expanded = await
|
|
8500
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
8500
8501
|
documentLoader: options.contextLoader,
|
|
8501
8502
|
keepFreeFloatingNodes: true
|
|
8502
8503
|
});
|
|
@@ -8609,9 +8610,9 @@ var Export = class Export extends DidService {
|
|
|
8609
8610
|
const values = baseValues[0];
|
|
8610
8611
|
values["@type"] = ["https://w3id.org/fep/9091#Export"];
|
|
8611
8612
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8612
|
-
if (options.format === "expand") return await
|
|
8613
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8613
8614
|
const docContext = options.context ?? "https://www.w3.org/ns/did/v1";
|
|
8614
|
-
const compacted = await
|
|
8615
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
8615
8616
|
if (docContext != null) {}
|
|
8616
8617
|
return compacted;
|
|
8617
8618
|
}
|
|
@@ -8660,7 +8661,7 @@ var Export = class Export extends DidService {
|
|
|
8660
8661
|
let values;
|
|
8661
8662
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
8662
8663
|
else {
|
|
8663
|
-
const expanded = await
|
|
8664
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
8664
8665
|
documentLoader: options.contextLoader,
|
|
8665
8666
|
keepFreeFloatingNodes: true
|
|
8666
8667
|
});
|
|
@@ -9025,9 +9026,9 @@ var DataIntegrityProof = class {
|
|
|
9025
9026
|
}
|
|
9026
9027
|
values["@type"] = ["https://w3id.org/security#DataIntegrityProof"];
|
|
9027
9028
|
if (this.id != null) values["@id"] = this.id.href;
|
|
9028
|
-
if (options.format === "expand") return await
|
|
9029
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
9029
9030
|
const docContext = options.context ?? "https://w3id.org/security/data-integrity/v1";
|
|
9030
|
-
const compacted = await
|
|
9031
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
9031
9032
|
if (docContext != null) {}
|
|
9032
9033
|
return compacted;
|
|
9033
9034
|
}
|
|
@@ -9076,7 +9077,7 @@ var DataIntegrityProof = class {
|
|
|
9076
9077
|
let values;
|
|
9077
9078
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
9078
9079
|
else {
|
|
9079
|
-
const expanded = await
|
|
9080
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
9080
9081
|
documentLoader: options.contextLoader,
|
|
9081
9082
|
keepFreeFloatingNodes: true
|
|
9082
9083
|
});
|
|
@@ -9517,9 +9518,9 @@ var CryptographicKey = class {
|
|
|
9517
9518
|
}
|
|
9518
9519
|
values["@type"] = ["https://w3id.org/security#Key"];
|
|
9519
9520
|
if (this.id != null) values["@id"] = this.id.href;
|
|
9520
|
-
if (options.format === "expand") return await
|
|
9521
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
9521
9522
|
const docContext = options.context ?? "https://w3id.org/security/v1";
|
|
9522
|
-
const compacted = await
|
|
9523
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
9523
9524
|
if (docContext != null) {}
|
|
9524
9525
|
return compacted;
|
|
9525
9526
|
}
|
|
@@ -9568,7 +9569,7 @@ var CryptographicKey = class {
|
|
|
9568
9569
|
let values;
|
|
9569
9570
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
9570
9571
|
else {
|
|
9571
|
-
const expanded = await
|
|
9572
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
9572
9573
|
documentLoader: options.contextLoader,
|
|
9573
9574
|
keepFreeFloatingNodes: true
|
|
9574
9575
|
});
|
|
@@ -9996,9 +9997,9 @@ var Multikey = class {
|
|
|
9996
9997
|
}
|
|
9997
9998
|
values["@type"] = ["https://w3id.org/security#Multikey"];
|
|
9998
9999
|
if (this.id != null) values["@id"] = this.id.href;
|
|
9999
|
-
if (options.format === "expand") return await
|
|
10000
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10000
10001
|
const docContext = options.context ?? "https://w3id.org/security/multikey/v1";
|
|
10001
|
-
const compacted = await
|
|
10002
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10002
10003
|
if (docContext != null) {}
|
|
10003
10004
|
return compacted;
|
|
10004
10005
|
}
|
|
@@ -10047,7 +10048,7 @@ var Multikey = class {
|
|
|
10047
10048
|
let values;
|
|
10048
10049
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10049
10050
|
else {
|
|
10050
|
-
const expanded = await
|
|
10051
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10051
10052
|
documentLoader: options.contextLoader,
|
|
10052
10053
|
keepFreeFloatingNodes: true
|
|
10053
10054
|
});
|
|
@@ -10194,13 +10195,13 @@ var Accept = class Accept extends Activity {
|
|
|
10194
10195
|
const values = baseValues[0];
|
|
10195
10196
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Accept"];
|
|
10196
10197
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10197
|
-
if (options.format === "expand") return await
|
|
10198
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10198
10199
|
const docContext = options.context ?? [
|
|
10199
10200
|
"https://w3id.org/identity/v1",
|
|
10200
10201
|
"https://www.w3.org/ns/activitystreams",
|
|
10201
10202
|
"https://w3id.org/security/data-integrity/v1"
|
|
10202
10203
|
];
|
|
10203
|
-
const compacted = await
|
|
10204
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10204
10205
|
if (docContext != null) {
|
|
10205
10206
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
10206
10207
|
else compacted.proof["@context"] = docContext;
|
|
@@ -10252,7 +10253,7 @@ var Accept = class Accept extends Activity {
|
|
|
10252
10253
|
let values;
|
|
10253
10254
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10254
10255
|
else {
|
|
10255
|
-
const expanded = await
|
|
10256
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10256
10257
|
documentLoader: options.contextLoader,
|
|
10257
10258
|
keepFreeFloatingNodes: true
|
|
10258
10259
|
});
|
|
@@ -10356,13 +10357,13 @@ var Add = class Add extends Activity {
|
|
|
10356
10357
|
const values = baseValues[0];
|
|
10357
10358
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Add"];
|
|
10358
10359
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10359
|
-
if (options.format === "expand") return await
|
|
10360
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10360
10361
|
const docContext = options.context ?? [
|
|
10361
10362
|
"https://w3id.org/identity/v1",
|
|
10362
10363
|
"https://www.w3.org/ns/activitystreams",
|
|
10363
10364
|
"https://w3id.org/security/data-integrity/v1"
|
|
10364
10365
|
];
|
|
10365
|
-
const compacted = await
|
|
10366
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10366
10367
|
if (docContext != null) {
|
|
10367
10368
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
10368
10369
|
else compacted.proof["@context"] = docContext;
|
|
@@ -10414,7 +10415,7 @@ var Add = class Add extends Activity {
|
|
|
10414
10415
|
let values;
|
|
10415
10416
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10416
10417
|
else {
|
|
10417
|
-
const expanded = await
|
|
10418
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10418
10419
|
documentLoader: options.contextLoader,
|
|
10419
10420
|
keepFreeFloatingNodes: true
|
|
10420
10421
|
});
|
|
@@ -10516,7 +10517,7 @@ var Announce = class Announce extends Activity {
|
|
|
10516
10517
|
const values = baseValues[0];
|
|
10517
10518
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Announce"];
|
|
10518
10519
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10519
|
-
if (options.format === "expand") return await
|
|
10520
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10520
10521
|
const docContext = options.context ?? [
|
|
10521
10522
|
"https://w3id.org/identity/v1",
|
|
10522
10523
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -10541,7 +10542,7 @@ var Announce = class Announce extends Activity {
|
|
|
10541
10542
|
}
|
|
10542
10543
|
}
|
|
10543
10544
|
];
|
|
10544
|
-
const compacted = await
|
|
10545
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
10545
10546
|
if (docContext != null) {
|
|
10546
10547
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
10547
10548
|
else compacted.proof["@context"] = docContext;
|
|
@@ -10593,7 +10594,7 @@ var Announce = class Announce extends Activity {
|
|
|
10593
10594
|
let values;
|
|
10594
10595
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
10595
10596
|
else {
|
|
10596
|
-
const expanded = await
|
|
10597
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
10597
10598
|
documentLoader: options.contextLoader,
|
|
10598
10599
|
keepFreeFloatingNodes: true
|
|
10599
10600
|
});
|
|
@@ -13454,7 +13455,7 @@ var Application = class Application extends Object$1 {
|
|
|
13454
13455
|
}
|
|
13455
13456
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Application"];
|
|
13456
13457
|
if (this.id != null) values["@id"] = this.id.href;
|
|
13457
|
-
if (options.format === "expand") return await
|
|
13458
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
13458
13459
|
const docContext = options.context ?? [
|
|
13459
13460
|
"https://www.w3.org/ns/activitystreams",
|
|
13460
13461
|
"https://w3id.org/security/v1",
|
|
@@ -13493,7 +13494,7 @@ var Application = class Application extends Object$1 {
|
|
|
13493
13494
|
"isCat": "misskey:isCat"
|
|
13494
13495
|
}
|
|
13495
13496
|
];
|
|
13496
|
-
const compacted = await
|
|
13497
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
13497
13498
|
if (docContext != null) {
|
|
13498
13499
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
13499
13500
|
else compacted.proof["@context"] = docContext;
|
|
@@ -13547,7 +13548,7 @@ var Application = class Application extends Object$1 {
|
|
|
13547
13548
|
let values;
|
|
13548
13549
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
13549
13550
|
else {
|
|
13550
|
-
const expanded = await
|
|
13551
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
13551
13552
|
documentLoader: options.contextLoader,
|
|
13552
13553
|
keepFreeFloatingNodes: true
|
|
13553
13554
|
});
|
|
@@ -14065,13 +14066,13 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
14065
14066
|
const values = baseValues[0];
|
|
14066
14067
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#IntransitiveActivity"];
|
|
14067
14068
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14068
|
-
if (options.format === "expand") return await
|
|
14069
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14069
14070
|
const docContext = options.context ?? [
|
|
14070
14071
|
"https://w3id.org/identity/v1",
|
|
14071
14072
|
"https://www.w3.org/ns/activitystreams",
|
|
14072
14073
|
"https://w3id.org/security/data-integrity/v1"
|
|
14073
14074
|
];
|
|
14074
|
-
const compacted = await
|
|
14075
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14075
14076
|
if (docContext != null) {
|
|
14076
14077
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
14077
14078
|
else compacted.proof["@context"] = docContext;
|
|
@@ -14123,7 +14124,7 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
14123
14124
|
let values;
|
|
14124
14125
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
14125
14126
|
else {
|
|
14126
|
-
const expanded = await
|
|
14127
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
14127
14128
|
documentLoader: options.contextLoader,
|
|
14128
14129
|
keepFreeFloatingNodes: true
|
|
14129
14130
|
});
|
|
@@ -14228,13 +14229,13 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
14228
14229
|
const values = baseValues[0];
|
|
14229
14230
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Arrive"];
|
|
14230
14231
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14231
|
-
if (options.format === "expand") return await
|
|
14232
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14232
14233
|
const docContext = options.context ?? [
|
|
14233
14234
|
"https://w3id.org/identity/v1",
|
|
14234
14235
|
"https://www.w3.org/ns/activitystreams",
|
|
14235
14236
|
"https://w3id.org/security/data-integrity/v1"
|
|
14236
14237
|
];
|
|
14237
|
-
const compacted = await
|
|
14238
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14238
14239
|
if (docContext != null) {
|
|
14239
14240
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
14240
14241
|
else compacted.proof["@context"] = docContext;
|
|
@@ -14286,7 +14287,7 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
14286
14287
|
let values;
|
|
14287
14288
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
14288
14289
|
else {
|
|
14289
|
-
const expanded = await
|
|
14290
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
14290
14291
|
documentLoader: options.contextLoader,
|
|
14291
14292
|
keepFreeFloatingNodes: true
|
|
14292
14293
|
});
|
|
@@ -14459,7 +14460,7 @@ var Article = class Article extends Object$1 {
|
|
|
14459
14460
|
}
|
|
14460
14461
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Article"];
|
|
14461
14462
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14462
|
-
if (options.format === "expand") return await
|
|
14463
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14463
14464
|
const docContext = options.context ?? [
|
|
14464
14465
|
"https://www.w3.org/ns/activitystreams",
|
|
14465
14466
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -14479,7 +14480,7 @@ var Article = class Article extends Object$1 {
|
|
|
14479
14480
|
}
|
|
14480
14481
|
}
|
|
14481
14482
|
];
|
|
14482
|
-
const compacted = await
|
|
14483
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14483
14484
|
if (docContext != null) {
|
|
14484
14485
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
14485
14486
|
else compacted.proof["@context"] = docContext;
|
|
@@ -14531,7 +14532,7 @@ var Article = class Article extends Object$1 {
|
|
|
14531
14532
|
let values;
|
|
14532
14533
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
14533
14534
|
else {
|
|
14534
|
-
const expanded = await
|
|
14535
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
14535
14536
|
documentLoader: options.contextLoader,
|
|
14536
14537
|
keepFreeFloatingNodes: true
|
|
14537
14538
|
});
|
|
@@ -14721,9 +14722,9 @@ var Document = class Document extends Object$1 {
|
|
|
14721
14722
|
}
|
|
14722
14723
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Document"];
|
|
14723
14724
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14724
|
-
if (options.format === "expand") return await
|
|
14725
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14725
14726
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
14726
|
-
const compacted = await
|
|
14727
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14727
14728
|
if (docContext != null) {
|
|
14728
14729
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
14729
14730
|
else compacted.proof["@context"] = docContext;
|
|
@@ -14775,7 +14776,7 @@ var Document = class Document extends Object$1 {
|
|
|
14775
14776
|
let values;
|
|
14776
14777
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
14777
14778
|
else {
|
|
14778
|
-
const expanded = await
|
|
14779
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
14779
14780
|
documentLoader: options.contextLoader,
|
|
14780
14781
|
keepFreeFloatingNodes: true
|
|
14781
14782
|
});
|
|
@@ -14915,9 +14916,9 @@ var Audio = class Audio extends Document {
|
|
|
14915
14916
|
const values = baseValues[0];
|
|
14916
14917
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Audio"];
|
|
14917
14918
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14918
|
-
if (options.format === "expand") return await
|
|
14919
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14919
14920
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
14920
|
-
const compacted = await
|
|
14921
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
14921
14922
|
if (docContext != null) {
|
|
14922
14923
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
14923
14924
|
else compacted.proof["@context"] = docContext;
|
|
@@ -14969,7 +14970,7 @@ var Audio = class Audio extends Document {
|
|
|
14969
14970
|
let values;
|
|
14970
14971
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
14971
14972
|
else {
|
|
14972
|
-
const expanded = await
|
|
14973
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
14973
14974
|
documentLoader: options.contextLoader,
|
|
14974
14975
|
keepFreeFloatingNodes: true
|
|
14975
14976
|
});
|
|
@@ -15070,13 +15071,13 @@ var Ignore = class Ignore extends Activity {
|
|
|
15070
15071
|
const values = baseValues[0];
|
|
15071
15072
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Ignore"];
|
|
15072
15073
|
if (this.id != null) values["@id"] = this.id.href;
|
|
15073
|
-
if (options.format === "expand") return await
|
|
15074
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
15074
15075
|
const docContext = options.context ?? [
|
|
15075
15076
|
"https://w3id.org/identity/v1",
|
|
15076
15077
|
"https://www.w3.org/ns/activitystreams",
|
|
15077
15078
|
"https://w3id.org/security/data-integrity/v1"
|
|
15078
15079
|
];
|
|
15079
|
-
const compacted = await
|
|
15080
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15080
15081
|
if (docContext != null) {
|
|
15081
15082
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
15082
15083
|
else compacted.proof["@context"] = docContext;
|
|
@@ -15128,7 +15129,7 @@ var Ignore = class Ignore extends Activity {
|
|
|
15128
15129
|
let values;
|
|
15129
15130
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
15130
15131
|
else {
|
|
15131
|
-
const expanded = await
|
|
15132
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
15132
15133
|
documentLoader: options.contextLoader,
|
|
15133
15134
|
keepFreeFloatingNodes: true
|
|
15134
15135
|
});
|
|
@@ -15232,13 +15233,13 @@ var Block = class Block extends Ignore {
|
|
|
15232
15233
|
const values = baseValues[0];
|
|
15233
15234
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Block"];
|
|
15234
15235
|
if (this.id != null) values["@id"] = this.id.href;
|
|
15235
|
-
if (options.format === "expand") return await
|
|
15236
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
15236
15237
|
const docContext = options.context ?? [
|
|
15237
15238
|
"https://w3id.org/identity/v1",
|
|
15238
15239
|
"https://www.w3.org/ns/activitystreams",
|
|
15239
15240
|
"https://w3id.org/security/data-integrity/v1"
|
|
15240
15241
|
];
|
|
15241
|
-
const compacted = await
|
|
15242
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
15242
15243
|
if (docContext != null) {
|
|
15243
15244
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
15244
15245
|
else compacted.proof["@context"] = docContext;
|
|
@@ -15290,7 +15291,7 @@ var Block = class Block extends Ignore {
|
|
|
15290
15291
|
let values;
|
|
15291
15292
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
15292
15293
|
else {
|
|
15293
|
-
const expanded = await
|
|
15294
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
15294
15295
|
documentLoader: options.contextLoader,
|
|
15295
15296
|
keepFreeFloatingNodes: true
|
|
15296
15297
|
});
|
|
@@ -17302,7 +17303,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17302
17303
|
}
|
|
17303
17304
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Collection"];
|
|
17304
17305
|
if (this.id != null) values["@id"] = this.id.href;
|
|
17305
|
-
if (options.format === "expand") return await
|
|
17306
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
17306
17307
|
const docContext = options.context ?? [
|
|
17307
17308
|
"https://www.w3.org/ns/activitystreams",
|
|
17308
17309
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -17324,7 +17325,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17324
17325
|
}
|
|
17325
17326
|
}
|
|
17326
17327
|
];
|
|
17327
|
-
const compacted = await
|
|
17328
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
17328
17329
|
if (docContext != null) {
|
|
17329
17330
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
17330
17331
|
else compacted.proof["@context"] = docContext;
|
|
@@ -17376,7 +17377,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
17376
17377
|
let values;
|
|
17377
17378
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
17378
17379
|
else {
|
|
17379
|
-
const expanded = await
|
|
17380
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
17380
17381
|
documentLoader: options.contextLoader,
|
|
17381
17382
|
keepFreeFloatingNodes: true
|
|
17382
17383
|
});
|
|
@@ -18287,7 +18288,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18287
18288
|
}
|
|
18288
18289
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#CollectionPage"];
|
|
18289
18290
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18290
|
-
if (options.format === "expand") return await
|
|
18291
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18291
18292
|
const docContext = options.context ?? [
|
|
18292
18293
|
"https://www.w3.org/ns/activitystreams",
|
|
18293
18294
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -18309,7 +18310,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18309
18310
|
}
|
|
18310
18311
|
}
|
|
18311
18312
|
];
|
|
18312
|
-
const compacted = await
|
|
18313
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18313
18314
|
if (docContext != null) {
|
|
18314
18315
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18315
18316
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18361,7 +18362,7 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
18361
18362
|
let values;
|
|
18362
18363
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18363
18364
|
else {
|
|
18364
|
-
const expanded = await
|
|
18365
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18365
18366
|
documentLoader: options.contextLoader,
|
|
18366
18367
|
keepFreeFloatingNodes: true
|
|
18367
18368
|
});
|
|
@@ -18522,7 +18523,7 @@ var Create = class Create extends Activity {
|
|
|
18522
18523
|
const values = baseValues[0];
|
|
18523
18524
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Create"];
|
|
18524
18525
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18525
|
-
if (options.format === "expand") return await
|
|
18526
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18526
18527
|
const docContext = options.context ?? [
|
|
18527
18528
|
"https://w3id.org/identity/v1",
|
|
18528
18529
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -18548,7 +18549,7 @@ var Create = class Create extends Activity {
|
|
|
18548
18549
|
}
|
|
18549
18550
|
}
|
|
18550
18551
|
];
|
|
18551
|
-
const compacted = await
|
|
18552
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18552
18553
|
if (docContext != null) {
|
|
18553
18554
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18554
18555
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18600,7 +18601,7 @@ var Create = class Create extends Activity {
|
|
|
18600
18601
|
let values;
|
|
18601
18602
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18602
18603
|
else {
|
|
18603
|
-
const expanded = await
|
|
18604
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18604
18605
|
documentLoader: options.contextLoader,
|
|
18605
18606
|
keepFreeFloatingNodes: true
|
|
18606
18607
|
});
|
|
@@ -18701,7 +18702,7 @@ var Delete = class Delete extends Activity {
|
|
|
18701
18702
|
const values = baseValues[0];
|
|
18702
18703
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Delete"];
|
|
18703
18704
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18704
|
-
if (options.format === "expand") return await
|
|
18705
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18705
18706
|
const docContext = options.context ?? [
|
|
18706
18707
|
"https://w3id.org/identity/v1",
|
|
18707
18708
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -18723,7 +18724,7 @@ var Delete = class Delete extends Activity {
|
|
|
18723
18724
|
"quoteUri": "fedibird:quoteUri"
|
|
18724
18725
|
}
|
|
18725
18726
|
];
|
|
18726
|
-
const compacted = await
|
|
18727
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18727
18728
|
if (docContext != null) {
|
|
18728
18729
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18729
18730
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18775,7 +18776,7 @@ var Delete = class Delete extends Activity {
|
|
|
18775
18776
|
let values;
|
|
18776
18777
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18777
18778
|
else {
|
|
18778
|
-
const expanded = await
|
|
18779
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18779
18780
|
documentLoader: options.contextLoader,
|
|
18780
18781
|
keepFreeFloatingNodes: true
|
|
18781
18782
|
});
|
|
@@ -18875,7 +18876,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
18875
18876
|
const values = baseValues[0];
|
|
18876
18877
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Dislike"];
|
|
18877
18878
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18878
|
-
if (options.format === "expand") return await
|
|
18879
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
18879
18880
|
const docContext = options.context ?? [
|
|
18880
18881
|
"https://w3id.org/identity/v1",
|
|
18881
18882
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -18885,7 +18886,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
18885
18886
|
"Emoji": "toot:Emoji"
|
|
18886
18887
|
}
|
|
18887
18888
|
];
|
|
18888
|
-
const compacted = await
|
|
18889
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
18889
18890
|
if (docContext != null) {
|
|
18890
18891
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
18891
18892
|
else compacted.proof["@context"] = docContext;
|
|
@@ -18937,7 +18938,7 @@ var Dislike = class Dislike extends Activity {
|
|
|
18937
18938
|
let values;
|
|
18938
18939
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
18939
18940
|
else {
|
|
18940
|
-
const expanded = await
|
|
18941
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
18941
18942
|
documentLoader: options.contextLoader,
|
|
18942
18943
|
keepFreeFloatingNodes: true
|
|
18943
18944
|
});
|
|
@@ -19260,9 +19261,9 @@ var Endpoints = class {
|
|
|
19260
19261
|
}
|
|
19261
19262
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Endpoints"];
|
|
19262
19263
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19263
|
-
if (options.format === "expand") return await
|
|
19264
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19264
19265
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
19265
|
-
const compacted = await
|
|
19266
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
19266
19267
|
if (docContext != null) {}
|
|
19267
19268
|
return compacted;
|
|
19268
19269
|
}
|
|
@@ -19311,7 +19312,7 @@ var Endpoints = class {
|
|
|
19311
19312
|
let values;
|
|
19312
19313
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
19313
19314
|
else {
|
|
19314
|
-
const expanded = await
|
|
19315
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
19315
19316
|
documentLoader: options.contextLoader,
|
|
19316
19317
|
keepFreeFloatingNodes: true
|
|
19317
19318
|
});
|
|
@@ -19494,9 +19495,9 @@ var Event = class Event extends Object$1 {
|
|
|
19494
19495
|
const values = baseValues[0];
|
|
19495
19496
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Event"];
|
|
19496
19497
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19497
|
-
if (options.format === "expand") return await
|
|
19498
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19498
19499
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
19499
|
-
const compacted = await
|
|
19500
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
19500
19501
|
if (docContext != null) {
|
|
19501
19502
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
19502
19503
|
else compacted.proof["@context"] = docContext;
|
|
@@ -19548,7 +19549,7 @@ var Event = class Event extends Object$1 {
|
|
|
19548
19549
|
let values;
|
|
19549
19550
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
19550
19551
|
else {
|
|
19551
|
-
const expanded = await
|
|
19552
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
19552
19553
|
documentLoader: options.contextLoader,
|
|
19553
19554
|
keepFreeFloatingNodes: true
|
|
19554
19555
|
});
|
|
@@ -19650,13 +19651,13 @@ var Flag = class Flag extends Activity {
|
|
|
19650
19651
|
const values = baseValues[0];
|
|
19651
19652
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Flag"];
|
|
19652
19653
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19653
|
-
if (options.format === "expand") return await
|
|
19654
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19654
19655
|
const docContext = options.context ?? [
|
|
19655
19656
|
"https://w3id.org/identity/v1",
|
|
19656
19657
|
"https://www.w3.org/ns/activitystreams",
|
|
19657
19658
|
"https://w3id.org/security/data-integrity/v1"
|
|
19658
19659
|
];
|
|
19659
|
-
const compacted = await
|
|
19660
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
19660
19661
|
if (docContext != null) {
|
|
19661
19662
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
19662
19663
|
else compacted.proof["@context"] = docContext;
|
|
@@ -19708,7 +19709,7 @@ var Flag = class Flag extends Activity {
|
|
|
19708
19709
|
let values;
|
|
19709
19710
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
19710
19711
|
else {
|
|
19711
|
-
const expanded = await
|
|
19712
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
19712
19713
|
documentLoader: options.contextLoader,
|
|
19713
19714
|
keepFreeFloatingNodes: true
|
|
19714
19715
|
});
|
|
@@ -19811,7 +19812,7 @@ var Follow = class Follow extends Activity {
|
|
|
19811
19812
|
const values = baseValues[0];
|
|
19812
19813
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Follow"];
|
|
19813
19814
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19814
|
-
if (options.format === "expand") return await
|
|
19815
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19815
19816
|
const docContext = options.context ?? [
|
|
19816
19817
|
"https://w3id.org/identity/v1",
|
|
19817
19818
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -19820,7 +19821,7 @@ var Follow = class Follow extends Activity {
|
|
|
19820
19821
|
"https://www.w3.org/ns/did/v1",
|
|
19821
19822
|
"https://w3id.org/security/multikey/v1"
|
|
19822
19823
|
];
|
|
19823
|
-
const compacted = await
|
|
19824
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
19824
19825
|
if (docContext != null) {
|
|
19825
19826
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
19826
19827
|
else compacted.proof["@context"] = docContext;
|
|
@@ -19872,7 +19873,7 @@ var Follow = class Follow extends Activity {
|
|
|
19872
19873
|
let values;
|
|
19873
19874
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
19874
19875
|
else {
|
|
19875
|
-
const expanded = await
|
|
19876
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
19876
19877
|
documentLoader: options.contextLoader,
|
|
19877
19878
|
keepFreeFloatingNodes: true
|
|
19878
19879
|
});
|
|
@@ -22733,7 +22734,7 @@ var Group = class Group extends Object$1 {
|
|
|
22733
22734
|
}
|
|
22734
22735
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Group"];
|
|
22735
22736
|
if (this.id != null) values["@id"] = this.id.href;
|
|
22736
|
-
if (options.format === "expand") return await
|
|
22737
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
22737
22738
|
const docContext = options.context ?? [
|
|
22738
22739
|
"https://www.w3.org/ns/activitystreams",
|
|
22739
22740
|
"https://w3id.org/security/v1",
|
|
@@ -22772,7 +22773,7 @@ var Group = class Group extends Object$1 {
|
|
|
22772
22773
|
"isCat": "misskey:isCat"
|
|
22773
22774
|
}
|
|
22774
22775
|
];
|
|
22775
|
-
const compacted = await
|
|
22776
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
22776
22777
|
if (docContext != null) {
|
|
22777
22778
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
22778
22779
|
else compacted.proof["@context"] = docContext;
|
|
@@ -22826,7 +22827,7 @@ var Group = class Group extends Object$1 {
|
|
|
22826
22827
|
let values;
|
|
22827
22828
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
22828
22829
|
else {
|
|
22829
|
-
const expanded = await
|
|
22830
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
22830
22831
|
documentLoader: options.contextLoader,
|
|
22831
22832
|
keepFreeFloatingNodes: true
|
|
22832
22833
|
});
|
|
@@ -23804,9 +23805,9 @@ var Link = class Link {
|
|
|
23804
23805
|
}
|
|
23805
23806
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Link"];
|
|
23806
23807
|
if (this.id != null) values["@id"] = this.id.href;
|
|
23807
|
-
if (options.format === "expand") return await
|
|
23808
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
23808
23809
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
23809
|
-
const compacted = await
|
|
23810
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
23810
23811
|
if (docContext != null) {}
|
|
23811
23812
|
return compacted;
|
|
23812
23813
|
}
|
|
@@ -23856,7 +23857,7 @@ var Link = class Link {
|
|
|
23856
23857
|
let values;
|
|
23857
23858
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
23858
23859
|
else {
|
|
23859
|
-
const expanded = await
|
|
23860
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
23860
23861
|
documentLoader: options.contextLoader,
|
|
23861
23862
|
keepFreeFloatingNodes: true
|
|
23862
23863
|
});
|
|
@@ -24144,9 +24145,9 @@ var Hashtag = class Hashtag extends Link {
|
|
|
24144
24145
|
const values = baseValues[0];
|
|
24145
24146
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Hashtag"];
|
|
24146
24147
|
if (this.id != null) values["@id"] = this.id.href;
|
|
24147
|
-
if (options.format === "expand") return await
|
|
24148
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
24148
24149
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", { "Hashtag": "as:Hashtag" }];
|
|
24149
|
-
const compacted = await
|
|
24150
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24150
24151
|
if (docContext != null) {}
|
|
24151
24152
|
return compacted;
|
|
24152
24153
|
}
|
|
@@ -24195,7 +24196,7 @@ var Hashtag = class Hashtag extends Link {
|
|
|
24195
24196
|
let values;
|
|
24196
24197
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
24197
24198
|
else {
|
|
24198
|
-
const expanded = await
|
|
24199
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
24199
24200
|
documentLoader: options.contextLoader,
|
|
24200
24201
|
keepFreeFloatingNodes: true
|
|
24201
24202
|
});
|
|
@@ -24307,9 +24308,9 @@ var Image = class Image extends Document {
|
|
|
24307
24308
|
const values = baseValues[0];
|
|
24308
24309
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Image"];
|
|
24309
24310
|
if (this.id != null) values["@id"] = this.id.href;
|
|
24310
|
-
if (options.format === "expand") return await
|
|
24311
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
24311
24312
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
24312
|
-
const compacted = await
|
|
24313
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24313
24314
|
if (docContext != null) {
|
|
24314
24315
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
24315
24316
|
else compacted.proof["@context"] = docContext;
|
|
@@ -24361,7 +24362,7 @@ var Image = class Image extends Document {
|
|
|
24361
24362
|
let values;
|
|
24362
24363
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
24363
24364
|
else {
|
|
24364
|
-
const expanded = await
|
|
24365
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
24365
24366
|
documentLoader: options.contextLoader,
|
|
24366
24367
|
keepFreeFloatingNodes: true
|
|
24367
24368
|
});
|
|
@@ -24463,13 +24464,13 @@ var Offer = class Offer extends Activity {
|
|
|
24463
24464
|
const values = baseValues[0];
|
|
24464
24465
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Offer"];
|
|
24465
24466
|
if (this.id != null) values["@id"] = this.id.href;
|
|
24466
|
-
if (options.format === "expand") return await
|
|
24467
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
24467
24468
|
const docContext = options.context ?? [
|
|
24468
24469
|
"https://w3id.org/identity/v1",
|
|
24469
24470
|
"https://www.w3.org/ns/activitystreams",
|
|
24470
24471
|
"https://w3id.org/security/data-integrity/v1"
|
|
24471
24472
|
];
|
|
24472
|
-
const compacted = await
|
|
24473
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24473
24474
|
if (docContext != null) {
|
|
24474
24475
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
24475
24476
|
else compacted.proof["@context"] = docContext;
|
|
@@ -24521,7 +24522,7 @@ var Offer = class Offer extends Activity {
|
|
|
24521
24522
|
let values;
|
|
24522
24523
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
24523
24524
|
else {
|
|
24524
|
-
const expanded = await
|
|
24525
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
24525
24526
|
documentLoader: options.contextLoader,
|
|
24526
24527
|
keepFreeFloatingNodes: true
|
|
24527
24528
|
});
|
|
@@ -24623,13 +24624,13 @@ var Invite = class Invite extends Offer {
|
|
|
24623
24624
|
const values = baseValues[0];
|
|
24624
24625
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Invite"];
|
|
24625
24626
|
if (this.id != null) values["@id"] = this.id.href;
|
|
24626
|
-
if (options.format === "expand") return await
|
|
24627
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
24627
24628
|
const docContext = options.context ?? [
|
|
24628
24629
|
"https://w3id.org/identity/v1",
|
|
24629
24630
|
"https://www.w3.org/ns/activitystreams",
|
|
24630
24631
|
"https://w3id.org/security/data-integrity/v1"
|
|
24631
24632
|
];
|
|
24632
|
-
const compacted = await
|
|
24633
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24633
24634
|
if (docContext != null) {
|
|
24634
24635
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
24635
24636
|
else compacted.proof["@context"] = docContext;
|
|
@@ -24681,7 +24682,7 @@ var Invite = class Invite extends Offer {
|
|
|
24681
24682
|
let values;
|
|
24682
24683
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
24683
24684
|
else {
|
|
24684
|
-
const expanded = await
|
|
24685
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
24685
24686
|
documentLoader: options.contextLoader,
|
|
24686
24687
|
keepFreeFloatingNodes: true
|
|
24687
24688
|
});
|
|
@@ -24782,13 +24783,13 @@ var Join = class Join extends Activity {
|
|
|
24782
24783
|
const values = baseValues[0];
|
|
24783
24784
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Join"];
|
|
24784
24785
|
if (this.id != null) values["@id"] = this.id.href;
|
|
24785
|
-
if (options.format === "expand") return await
|
|
24786
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
24786
24787
|
const docContext = options.context ?? [
|
|
24787
24788
|
"https://w3id.org/identity/v1",
|
|
24788
24789
|
"https://www.w3.org/ns/activitystreams",
|
|
24789
24790
|
"https://w3id.org/security/data-integrity/v1"
|
|
24790
24791
|
];
|
|
24791
|
-
const compacted = await
|
|
24792
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24792
24793
|
if (docContext != null) {
|
|
24793
24794
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
24794
24795
|
else compacted.proof["@context"] = docContext;
|
|
@@ -24840,7 +24841,7 @@ var Join = class Join extends Activity {
|
|
|
24840
24841
|
let values;
|
|
24841
24842
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
24842
24843
|
else {
|
|
24843
|
-
const expanded = await
|
|
24844
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
24844
24845
|
documentLoader: options.contextLoader,
|
|
24845
24846
|
keepFreeFloatingNodes: true
|
|
24846
24847
|
});
|
|
@@ -24941,13 +24942,13 @@ var Leave = class Leave extends Activity {
|
|
|
24941
24942
|
const values = baseValues[0];
|
|
24942
24943
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Leave"];
|
|
24943
24944
|
if (this.id != null) values["@id"] = this.id.href;
|
|
24944
|
-
if (options.format === "expand") return await
|
|
24945
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
24945
24946
|
const docContext = options.context ?? [
|
|
24946
24947
|
"https://w3id.org/identity/v1",
|
|
24947
24948
|
"https://www.w3.org/ns/activitystreams",
|
|
24948
24949
|
"https://w3id.org/security/data-integrity/v1"
|
|
24949
24950
|
];
|
|
24950
|
-
const compacted = await
|
|
24951
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
24951
24952
|
if (docContext != null) {
|
|
24952
24953
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
24953
24954
|
else compacted.proof["@context"] = docContext;
|
|
@@ -24999,7 +25000,7 @@ var Leave = class Leave extends Activity {
|
|
|
24999
25000
|
let values;
|
|
25000
25001
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
25001
25002
|
else {
|
|
25002
|
-
const expanded = await
|
|
25003
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
25003
25004
|
documentLoader: options.contextLoader,
|
|
25004
25005
|
keepFreeFloatingNodes: true
|
|
25005
25006
|
});
|
|
@@ -25100,7 +25101,7 @@ var Like = class Like extends Activity {
|
|
|
25100
25101
|
const values = baseValues[0];
|
|
25101
25102
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Like"];
|
|
25102
25103
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25103
|
-
if (options.format === "expand") return await
|
|
25104
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25104
25105
|
const docContext = options.context ?? [
|
|
25105
25106
|
"https://w3id.org/identity/v1",
|
|
25106
25107
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -25110,7 +25111,7 @@ var Like = class Like extends Activity {
|
|
|
25110
25111
|
"Emoji": "toot:Emoji"
|
|
25111
25112
|
}
|
|
25112
25113
|
];
|
|
25113
|
-
const compacted = await
|
|
25114
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
25114
25115
|
if (docContext != null) {
|
|
25115
25116
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
25116
25117
|
else compacted.proof["@context"] = docContext;
|
|
@@ -25162,7 +25163,7 @@ var Like = class Like extends Activity {
|
|
|
25162
25163
|
let values;
|
|
25163
25164
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
25164
25165
|
else {
|
|
25165
|
-
const expanded = await
|
|
25166
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
25166
25167
|
documentLoader: options.contextLoader,
|
|
25167
25168
|
keepFreeFloatingNodes: true
|
|
25168
25169
|
});
|
|
@@ -25262,13 +25263,13 @@ var Listen = class Listen extends Activity {
|
|
|
25262
25263
|
const values = baseValues[0];
|
|
25263
25264
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Listen"];
|
|
25264
25265
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25265
|
-
if (options.format === "expand") return await
|
|
25266
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25266
25267
|
const docContext = options.context ?? [
|
|
25267
25268
|
"https://w3id.org/identity/v1",
|
|
25268
25269
|
"https://www.w3.org/ns/activitystreams",
|
|
25269
25270
|
"https://w3id.org/security/data-integrity/v1"
|
|
25270
25271
|
];
|
|
25271
|
-
const compacted = await
|
|
25272
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
25272
25273
|
if (docContext != null) {
|
|
25273
25274
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
25274
25275
|
else compacted.proof["@context"] = docContext;
|
|
@@ -25320,7 +25321,7 @@ var Listen = class Listen extends Activity {
|
|
|
25320
25321
|
let values;
|
|
25321
25322
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
25322
25323
|
else {
|
|
25323
|
-
const expanded = await
|
|
25324
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
25324
25325
|
documentLoader: options.contextLoader,
|
|
25325
25326
|
keepFreeFloatingNodes: true
|
|
25326
25327
|
});
|
|
@@ -25432,9 +25433,9 @@ var Mention = class Mention extends Link {
|
|
|
25432
25433
|
const values = baseValues[0];
|
|
25433
25434
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Mention"];
|
|
25434
25435
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25435
|
-
if (options.format === "expand") return await
|
|
25436
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25436
25437
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
25437
|
-
const compacted = await
|
|
25438
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
25438
25439
|
if (docContext != null) {}
|
|
25439
25440
|
return compacted;
|
|
25440
25441
|
}
|
|
@@ -25483,7 +25484,7 @@ var Mention = class Mention extends Link {
|
|
|
25483
25484
|
let values;
|
|
25484
25485
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
25485
25486
|
else {
|
|
25486
|
-
const expanded = await
|
|
25487
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
25487
25488
|
documentLoader: options.contextLoader,
|
|
25488
25489
|
keepFreeFloatingNodes: true
|
|
25489
25490
|
});
|
|
@@ -25585,13 +25586,13 @@ var Move = class Move extends Activity {
|
|
|
25585
25586
|
const values = baseValues[0];
|
|
25586
25587
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Move"];
|
|
25587
25588
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25588
|
-
if (options.format === "expand") return await
|
|
25589
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25589
25590
|
const docContext = options.context ?? [
|
|
25590
25591
|
"https://w3id.org/identity/v1",
|
|
25591
25592
|
"https://www.w3.org/ns/activitystreams",
|
|
25592
25593
|
"https://w3id.org/security/data-integrity/v1"
|
|
25593
25594
|
];
|
|
25594
|
-
const compacted = await
|
|
25595
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
25595
25596
|
if (docContext != null) {
|
|
25596
25597
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
25597
25598
|
else compacted.proof["@context"] = docContext;
|
|
@@ -25643,7 +25644,7 @@ var Move = class Move extends Activity {
|
|
|
25643
25644
|
let values;
|
|
25644
25645
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
25645
25646
|
else {
|
|
25646
|
-
const expanded = await
|
|
25647
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
25647
25648
|
documentLoader: options.contextLoader,
|
|
25648
25649
|
keepFreeFloatingNodes: true
|
|
25649
25650
|
});
|
|
@@ -25817,7 +25818,7 @@ var Note = class Note extends Object$1 {
|
|
|
25817
25818
|
}
|
|
25818
25819
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Note"];
|
|
25819
25820
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25820
|
-
if (options.format === "expand") return await
|
|
25821
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25821
25822
|
const docContext = options.context ?? [
|
|
25822
25823
|
"https://www.w3.org/ns/activitystreams",
|
|
25823
25824
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -25837,7 +25838,7 @@ var Note = class Note extends Object$1 {
|
|
|
25837
25838
|
}
|
|
25838
25839
|
}
|
|
25839
25840
|
];
|
|
25840
|
-
const compacted = await
|
|
25841
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
25841
25842
|
if (docContext != null) {
|
|
25842
25843
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
25843
25844
|
else compacted.proof["@context"] = docContext;
|
|
@@ -25889,7 +25890,7 @@ var Note = class Note extends Object$1 {
|
|
|
25889
25890
|
let values;
|
|
25890
25891
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
25891
25892
|
else {
|
|
25892
|
-
const expanded = await
|
|
25893
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
25893
25894
|
documentLoader: options.contextLoader,
|
|
25894
25895
|
keepFreeFloatingNodes: true
|
|
25895
25896
|
});
|
|
@@ -26205,7 +26206,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
26205
26206
|
}
|
|
26206
26207
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#OrderedCollection"];
|
|
26207
26208
|
if (this.id != null) values["@id"] = this.id.href;
|
|
26208
|
-
if (options.format === "expand") return await
|
|
26209
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
26209
26210
|
const docContext = options.context ?? [
|
|
26210
26211
|
"https://www.w3.org/ns/activitystreams",
|
|
26211
26212
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -26227,7 +26228,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
26227
26228
|
}
|
|
26228
26229
|
}
|
|
26229
26230
|
];
|
|
26230
|
-
const compacted = await
|
|
26231
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
26231
26232
|
if (docContext != null) {
|
|
26232
26233
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
26233
26234
|
else compacted.proof["@context"] = docContext;
|
|
@@ -26279,7 +26280,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
26279
26280
|
let values;
|
|
26280
26281
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
26281
26282
|
else {
|
|
26282
|
-
const expanded = await
|
|
26283
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
26283
26284
|
documentLoader: options.contextLoader,
|
|
26284
26285
|
keepFreeFloatingNodes: true
|
|
26285
26286
|
});
|
|
@@ -26699,7 +26700,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
26699
26700
|
}
|
|
26700
26701
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#OrderedCollectionPage"];
|
|
26701
26702
|
if (this.id != null) values["@id"] = this.id.href;
|
|
26702
|
-
if (options.format === "expand") return await
|
|
26703
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
26703
26704
|
const docContext = options.context ?? [
|
|
26704
26705
|
"https://www.w3.org/ns/activitystreams",
|
|
26705
26706
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -26721,7 +26722,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
26721
26722
|
}
|
|
26722
26723
|
}
|
|
26723
26724
|
];
|
|
26724
|
-
const compacted = await
|
|
26725
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
26725
26726
|
if (docContext != null) {
|
|
26726
26727
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
26727
26728
|
else compacted.proof["@context"] = docContext;
|
|
@@ -26773,7 +26774,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
26773
26774
|
let values;
|
|
26774
26775
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
26775
26776
|
else {
|
|
26776
|
-
const expanded = await
|
|
26777
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
26777
26778
|
documentLoader: options.contextLoader,
|
|
26778
26779
|
keepFreeFloatingNodes: true
|
|
26779
26780
|
});
|
|
@@ -29731,7 +29732,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29731
29732
|
}
|
|
29732
29733
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Organization"];
|
|
29733
29734
|
if (this.id != null) values["@id"] = this.id.href;
|
|
29734
|
-
if (options.format === "expand") return await
|
|
29735
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
29735
29736
|
const docContext = options.context ?? [
|
|
29736
29737
|
"https://www.w3.org/ns/activitystreams",
|
|
29737
29738
|
"https://w3id.org/security/v1",
|
|
@@ -29770,7 +29771,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29770
29771
|
"isCat": "misskey:isCat"
|
|
29771
29772
|
}
|
|
29772
29773
|
];
|
|
29773
|
-
const compacted = await
|
|
29774
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
29774
29775
|
if (docContext != null) {
|
|
29775
29776
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
29776
29777
|
else compacted.proof["@context"] = docContext;
|
|
@@ -29824,7 +29825,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
29824
29825
|
let values;
|
|
29825
29826
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
29826
29827
|
else {
|
|
29827
|
-
const expanded = await
|
|
29828
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
29828
29829
|
documentLoader: options.contextLoader,
|
|
29829
29830
|
keepFreeFloatingNodes: true
|
|
29830
29831
|
});
|
|
@@ -30352,9 +30353,9 @@ var Page = class Page extends Document {
|
|
|
30352
30353
|
const values = baseValues[0];
|
|
30353
30354
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Page"];
|
|
30354
30355
|
if (this.id != null) values["@id"] = this.id.href;
|
|
30355
|
-
if (options.format === "expand") return await
|
|
30356
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
30356
30357
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
30357
|
-
const compacted = await
|
|
30358
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
30358
30359
|
if (docContext != null) {
|
|
30359
30360
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
30360
30361
|
else compacted.proof["@context"] = docContext;
|
|
@@ -30406,7 +30407,7 @@ var Page = class Page extends Document {
|
|
|
30406
30407
|
let values;
|
|
30407
30408
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
30408
30409
|
else {
|
|
30409
|
-
const expanded = await
|
|
30410
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
30410
30411
|
documentLoader: options.contextLoader,
|
|
30411
30412
|
keepFreeFloatingNodes: true
|
|
30412
30413
|
});
|
|
@@ -33267,7 +33268,7 @@ var Person = class Person extends Object$1 {
|
|
|
33267
33268
|
}
|
|
33268
33269
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Person"];
|
|
33269
33270
|
if (this.id != null) values["@id"] = this.id.href;
|
|
33270
|
-
if (options.format === "expand") return await
|
|
33271
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
33271
33272
|
const docContext = options.context ?? [
|
|
33272
33273
|
"https://www.w3.org/ns/activitystreams",
|
|
33273
33274
|
"https://w3id.org/security/v1",
|
|
@@ -33306,7 +33307,7 @@ var Person = class Person extends Object$1 {
|
|
|
33306
33307
|
"isCat": "misskey:isCat"
|
|
33307
33308
|
}
|
|
33308
33309
|
];
|
|
33309
|
-
const compacted = await
|
|
33310
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
33310
33311
|
if (docContext != null) {
|
|
33311
33312
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
33312
33313
|
else compacted.proof["@context"] = docContext;
|
|
@@ -33360,7 +33361,7 @@ var Person = class Person extends Object$1 {
|
|
|
33360
33361
|
let values;
|
|
33361
33362
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
33362
33363
|
else {
|
|
33363
|
-
const expanded = await
|
|
33364
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
33364
33365
|
documentLoader: options.contextLoader,
|
|
33365
33366
|
keepFreeFloatingNodes: true
|
|
33366
33367
|
});
|
|
@@ -34081,9 +34082,9 @@ var Place = class Place extends Object$1 {
|
|
|
34081
34082
|
}
|
|
34082
34083
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Place"];
|
|
34083
34084
|
if (this.id != null) values["@id"] = this.id.href;
|
|
34084
|
-
if (options.format === "expand") return await
|
|
34085
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
34085
34086
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
34086
|
-
const compacted = await
|
|
34087
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
34087
34088
|
if (docContext != null) {
|
|
34088
34089
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
34089
34090
|
else compacted.proof["@context"] = docContext;
|
|
@@ -34135,7 +34136,7 @@ var Place = class Place extends Object$1 {
|
|
|
34135
34136
|
let values;
|
|
34136
34137
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
34137
34138
|
else {
|
|
34138
|
-
const expanded = await
|
|
34139
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
34139
34140
|
documentLoader: options.contextLoader,
|
|
34140
34141
|
keepFreeFloatingNodes: true
|
|
34141
34142
|
});
|
|
@@ -34478,9 +34479,9 @@ var Profile = class Profile extends Object$1 {
|
|
|
34478
34479
|
}
|
|
34479
34480
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Profile"];
|
|
34480
34481
|
if (this.id != null) values["@id"] = this.id.href;
|
|
34481
|
-
if (options.format === "expand") return await
|
|
34482
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
34482
34483
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
34483
|
-
const compacted = await
|
|
34484
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
34484
34485
|
if (docContext != null) {
|
|
34485
34486
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
34486
34487
|
else compacted.proof["@context"] = docContext;
|
|
@@ -34532,7 +34533,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
34532
34533
|
let values;
|
|
34533
34534
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
34534
34535
|
else {
|
|
34535
|
-
const expanded = await
|
|
34536
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
34536
34537
|
documentLoader: options.contextLoader,
|
|
34537
34538
|
keepFreeFloatingNodes: true
|
|
34538
34539
|
});
|
|
@@ -35034,7 +35035,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35034
35035
|
}
|
|
35035
35036
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Question"];
|
|
35036
35037
|
if (this.id != null) values["@id"] = this.id.href;
|
|
35037
|
-
if (options.format === "expand") return await
|
|
35038
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
35038
35039
|
const docContext = options.context ?? [
|
|
35039
35040
|
"https://w3id.org/identity/v1",
|
|
35040
35041
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -35059,7 +35060,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35059
35060
|
}
|
|
35060
35061
|
}
|
|
35061
35062
|
];
|
|
35062
|
-
const compacted = await
|
|
35063
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
35063
35064
|
if (docContext != null) {
|
|
35064
35065
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
35065
35066
|
else compacted.proof["@context"] = docContext;
|
|
@@ -35111,7 +35112,7 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35111
35112
|
let values;
|
|
35112
35113
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
35113
35114
|
else {
|
|
35114
|
-
const expanded = await
|
|
35115
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
35115
35116
|
documentLoader: options.contextLoader,
|
|
35116
35117
|
keepFreeFloatingNodes: true
|
|
35117
35118
|
});
|
|
@@ -35291,13 +35292,13 @@ var Read = class Read extends Activity {
|
|
|
35291
35292
|
const values = baseValues[0];
|
|
35292
35293
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Read"];
|
|
35293
35294
|
if (this.id != null) values["@id"] = this.id.href;
|
|
35294
|
-
if (options.format === "expand") return await
|
|
35295
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
35295
35296
|
const docContext = options.context ?? [
|
|
35296
35297
|
"https://w3id.org/identity/v1",
|
|
35297
35298
|
"https://www.w3.org/ns/activitystreams",
|
|
35298
35299
|
"https://w3id.org/security/data-integrity/v1"
|
|
35299
35300
|
];
|
|
35300
|
-
const compacted = await
|
|
35301
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
35301
35302
|
if (docContext != null) {
|
|
35302
35303
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
35303
35304
|
else compacted.proof["@context"] = docContext;
|
|
@@ -35349,7 +35350,7 @@ var Read = class Read extends Activity {
|
|
|
35349
35350
|
let values;
|
|
35350
35351
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
35351
35352
|
else {
|
|
35352
|
-
const expanded = await
|
|
35353
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
35353
35354
|
documentLoader: options.contextLoader,
|
|
35354
35355
|
keepFreeFloatingNodes: true
|
|
35355
35356
|
});
|
|
@@ -35450,13 +35451,13 @@ var Reject = class Reject extends Activity {
|
|
|
35450
35451
|
const values = baseValues[0];
|
|
35451
35452
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Reject"];
|
|
35452
35453
|
if (this.id != null) values["@id"] = this.id.href;
|
|
35453
|
-
if (options.format === "expand") return await
|
|
35454
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
35454
35455
|
const docContext = options.context ?? [
|
|
35455
35456
|
"https://w3id.org/identity/v1",
|
|
35456
35457
|
"https://www.w3.org/ns/activitystreams",
|
|
35457
35458
|
"https://w3id.org/security/data-integrity/v1"
|
|
35458
35459
|
];
|
|
35459
|
-
const compacted = await
|
|
35460
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
35460
35461
|
if (docContext != null) {
|
|
35461
35462
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
35462
35463
|
else compacted.proof["@context"] = docContext;
|
|
@@ -35508,7 +35509,7 @@ var Reject = class Reject extends Activity {
|
|
|
35508
35509
|
let values;
|
|
35509
35510
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
35510
35511
|
else {
|
|
35511
|
-
const expanded = await
|
|
35512
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
35512
35513
|
documentLoader: options.contextLoader,
|
|
35513
35514
|
keepFreeFloatingNodes: true
|
|
35514
35515
|
});
|
|
@@ -36204,9 +36205,9 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
36204
36205
|
}
|
|
36205
36206
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Relationship"];
|
|
36206
36207
|
if (this.id != null) values["@id"] = this.id.href;
|
|
36207
|
-
if (options.format === "expand") return await
|
|
36208
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
36208
36209
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
36209
|
-
const compacted = await
|
|
36210
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
36210
36211
|
if (docContext != null) {
|
|
36211
36212
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
36212
36213
|
else compacted.proof["@context"] = docContext;
|
|
@@ -36258,7 +36259,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
36258
36259
|
let values;
|
|
36259
36260
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
36260
36261
|
else {
|
|
36261
|
-
const expanded = await
|
|
36262
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
36262
36263
|
documentLoader: options.contextLoader,
|
|
36263
36264
|
keepFreeFloatingNodes: true
|
|
36264
36265
|
});
|
|
@@ -36421,13 +36422,13 @@ var Remove = class Remove extends Activity {
|
|
|
36421
36422
|
const values = baseValues[0];
|
|
36422
36423
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Remove"];
|
|
36423
36424
|
if (this.id != null) values["@id"] = this.id.href;
|
|
36424
|
-
if (options.format === "expand") return await
|
|
36425
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
36425
36426
|
const docContext = options.context ?? [
|
|
36426
36427
|
"https://w3id.org/identity/v1",
|
|
36427
36428
|
"https://www.w3.org/ns/activitystreams",
|
|
36428
36429
|
"https://w3id.org/security/data-integrity/v1"
|
|
36429
36430
|
];
|
|
36430
|
-
const compacted = await
|
|
36431
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
36431
36432
|
if (docContext != null) {
|
|
36432
36433
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
36433
36434
|
else compacted.proof["@context"] = docContext;
|
|
@@ -36479,7 +36480,7 @@ var Remove = class Remove extends Activity {
|
|
|
36479
36480
|
let values;
|
|
36480
36481
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
36481
36482
|
else {
|
|
36482
|
-
const expanded = await
|
|
36483
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
36483
36484
|
documentLoader: options.contextLoader,
|
|
36484
36485
|
keepFreeFloatingNodes: true
|
|
36485
36486
|
});
|
|
@@ -39340,7 +39341,7 @@ var Service = class Service extends Object$1 {
|
|
|
39340
39341
|
}
|
|
39341
39342
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Service"];
|
|
39342
39343
|
if (this.id != null) values["@id"] = this.id.href;
|
|
39343
|
-
if (options.format === "expand") return await
|
|
39344
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
39344
39345
|
const docContext = options.context ?? [
|
|
39345
39346
|
"https://www.w3.org/ns/activitystreams",
|
|
39346
39347
|
"https://w3id.org/security/v1",
|
|
@@ -39379,7 +39380,7 @@ var Service = class Service extends Object$1 {
|
|
|
39379
39380
|
"isCat": "misskey:isCat"
|
|
39380
39381
|
}
|
|
39381
39382
|
];
|
|
39382
|
-
const compacted = await
|
|
39383
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
39383
39384
|
if (docContext != null) {
|
|
39384
39385
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
39385
39386
|
else compacted.proof["@context"] = docContext;
|
|
@@ -39433,7 +39434,7 @@ var Service = class Service extends Object$1 {
|
|
|
39433
39434
|
let values;
|
|
39434
39435
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
39435
39436
|
else {
|
|
39436
|
-
const expanded = await
|
|
39437
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
39437
39438
|
documentLoader: options.contextLoader,
|
|
39438
39439
|
keepFreeFloatingNodes: true
|
|
39439
39440
|
});
|
|
@@ -40058,9 +40059,9 @@ var Source = class {
|
|
|
40058
40059
|
}
|
|
40059
40060
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Source"];
|
|
40060
40061
|
if (this.id != null) values["@id"] = this.id.href;
|
|
40061
|
-
if (options.format === "expand") return await
|
|
40062
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
40062
40063
|
const docContext = options.context ?? "https://www.w3.org/ns/activitystreams";
|
|
40063
|
-
const compacted = await
|
|
40064
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40064
40065
|
if (docContext != null) {}
|
|
40065
40066
|
return compacted;
|
|
40066
40067
|
}
|
|
@@ -40110,7 +40111,7 @@ var Source = class {
|
|
|
40110
40111
|
let values;
|
|
40111
40112
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
40112
40113
|
else {
|
|
40113
|
-
const expanded = await
|
|
40114
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
40114
40115
|
documentLoader: options.contextLoader,
|
|
40115
40116
|
keepFreeFloatingNodes: true
|
|
40116
40117
|
});
|
|
@@ -40237,13 +40238,13 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
40237
40238
|
const values = baseValues[0];
|
|
40238
40239
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#TentativeAccept"];
|
|
40239
40240
|
if (this.id != null) values["@id"] = this.id.href;
|
|
40240
|
-
if (options.format === "expand") return await
|
|
40241
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
40241
40242
|
const docContext = options.context ?? [
|
|
40242
40243
|
"https://w3id.org/identity/v1",
|
|
40243
40244
|
"https://www.w3.org/ns/activitystreams",
|
|
40244
40245
|
"https://w3id.org/security/data-integrity/v1"
|
|
40245
40246
|
];
|
|
40246
|
-
const compacted = await
|
|
40247
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40247
40248
|
if (docContext != null) {
|
|
40248
40249
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
40249
40250
|
else compacted.proof["@context"] = docContext;
|
|
@@ -40295,7 +40296,7 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
40295
40296
|
let values;
|
|
40296
40297
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
40297
40298
|
else {
|
|
40298
|
-
const expanded = await
|
|
40299
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
40299
40300
|
documentLoader: options.contextLoader,
|
|
40300
40301
|
keepFreeFloatingNodes: true
|
|
40301
40302
|
});
|
|
@@ -40396,13 +40397,13 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
40396
40397
|
const values = baseValues[0];
|
|
40397
40398
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#TentativeReject"];
|
|
40398
40399
|
if (this.id != null) values["@id"] = this.id.href;
|
|
40399
|
-
if (options.format === "expand") return await
|
|
40400
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
40400
40401
|
const docContext = options.context ?? [
|
|
40401
40402
|
"https://w3id.org/identity/v1",
|
|
40402
40403
|
"https://www.w3.org/ns/activitystreams",
|
|
40403
40404
|
"https://w3id.org/security/data-integrity/v1"
|
|
40404
40405
|
];
|
|
40405
|
-
const compacted = await
|
|
40406
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40406
40407
|
if (docContext != null) {
|
|
40407
40408
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
40408
40409
|
else compacted.proof["@context"] = docContext;
|
|
@@ -40454,7 +40455,7 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
40454
40455
|
let values;
|
|
40455
40456
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
40456
40457
|
else {
|
|
40457
|
-
const expanded = await
|
|
40458
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
40458
40459
|
documentLoader: options.contextLoader,
|
|
40459
40460
|
keepFreeFloatingNodes: true
|
|
40460
40461
|
});
|
|
@@ -40600,9 +40601,9 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
40600
40601
|
}
|
|
40601
40602
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Tombstone"];
|
|
40602
40603
|
if (this.id != null) values["@id"] = this.id.href;
|
|
40603
|
-
if (options.format === "expand") return await
|
|
40604
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
40604
40605
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
40605
|
-
const compacted = await
|
|
40606
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40606
40607
|
if (docContext != null) {
|
|
40607
40608
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
40608
40609
|
else compacted.proof["@context"] = docContext;
|
|
@@ -40654,7 +40655,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
40654
40655
|
let values;
|
|
40655
40656
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
40656
40657
|
else {
|
|
40657
|
-
const expanded = await
|
|
40658
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
40658
40659
|
documentLoader: options.contextLoader,
|
|
40659
40660
|
keepFreeFloatingNodes: true
|
|
40660
40661
|
});
|
|
@@ -40769,13 +40770,13 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
40769
40770
|
const values = baseValues[0];
|
|
40770
40771
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Travel"];
|
|
40771
40772
|
if (this.id != null) values["@id"] = this.id.href;
|
|
40772
|
-
if (options.format === "expand") return await
|
|
40773
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
40773
40774
|
const docContext = options.context ?? [
|
|
40774
40775
|
"https://w3id.org/identity/v1",
|
|
40775
40776
|
"https://www.w3.org/ns/activitystreams",
|
|
40776
40777
|
"https://w3id.org/security/data-integrity/v1"
|
|
40777
40778
|
];
|
|
40778
|
-
const compacted = await
|
|
40779
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40779
40780
|
if (docContext != null) {
|
|
40780
40781
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
40781
40782
|
else compacted.proof["@context"] = docContext;
|
|
@@ -40827,7 +40828,7 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
40827
40828
|
let values;
|
|
40828
40829
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
40829
40830
|
else {
|
|
40830
|
-
const expanded = await
|
|
40831
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
40831
40832
|
documentLoader: options.contextLoader,
|
|
40832
40833
|
keepFreeFloatingNodes: true
|
|
40833
40834
|
});
|
|
@@ -40933,7 +40934,7 @@ var Undo = class Undo extends Activity {
|
|
|
40933
40934
|
const values = baseValues[0];
|
|
40934
40935
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Undo"];
|
|
40935
40936
|
if (this.id != null) values["@id"] = this.id.href;
|
|
40936
|
-
if (options.format === "expand") return await
|
|
40937
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
40937
40938
|
const docContext = options.context ?? [
|
|
40938
40939
|
"https://w3id.org/identity/v1",
|
|
40939
40940
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -40948,7 +40949,7 @@ var Undo = class Undo extends Activity {
|
|
|
40948
40949
|
"Emoji": "toot:Emoji"
|
|
40949
40950
|
}
|
|
40950
40951
|
];
|
|
40951
|
-
const compacted = await
|
|
40952
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
40952
40953
|
if (docContext != null) {
|
|
40953
40954
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
40954
40955
|
else compacted.proof["@context"] = docContext;
|
|
@@ -41000,7 +41001,7 @@ var Undo = class Undo extends Activity {
|
|
|
41000
41001
|
let values;
|
|
41001
41002
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
41002
41003
|
else {
|
|
41003
|
-
const expanded = await
|
|
41004
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
41004
41005
|
documentLoader: options.contextLoader,
|
|
41005
41006
|
keepFreeFloatingNodes: true
|
|
41006
41007
|
});
|
|
@@ -41104,7 +41105,7 @@ var Update = class Update extends Activity {
|
|
|
41104
41105
|
const values = baseValues[0];
|
|
41105
41106
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Update"];
|
|
41106
41107
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41107
|
-
if (options.format === "expand") return await
|
|
41108
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41108
41109
|
const docContext = options.context ?? [
|
|
41109
41110
|
"https://w3id.org/identity/v1",
|
|
41110
41111
|
"https://www.w3.org/ns/activitystreams",
|
|
@@ -41159,7 +41160,7 @@ var Update = class Update extends Activity {
|
|
|
41159
41160
|
}
|
|
41160
41161
|
}
|
|
41161
41162
|
];
|
|
41162
|
-
const compacted = await
|
|
41163
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
41163
41164
|
if (docContext != null) {
|
|
41164
41165
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
41165
41166
|
else compacted.proof["@context"] = docContext;
|
|
@@ -41211,7 +41212,7 @@ var Update = class Update extends Activity {
|
|
|
41211
41212
|
let values;
|
|
41212
41213
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
41213
41214
|
else {
|
|
41214
|
-
const expanded = await
|
|
41215
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
41215
41216
|
documentLoader: options.contextLoader,
|
|
41216
41217
|
keepFreeFloatingNodes: true
|
|
41217
41218
|
});
|
|
@@ -41323,9 +41324,9 @@ var Video = class Video extends Document {
|
|
|
41323
41324
|
const values = baseValues[0];
|
|
41324
41325
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#Video"];
|
|
41325
41326
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41326
|
-
if (options.format === "expand") return await
|
|
41327
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41327
41328
|
const docContext = options.context ?? ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"];
|
|
41328
|
-
const compacted = await
|
|
41329
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
41329
41330
|
if (docContext != null) {
|
|
41330
41331
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
41331
41332
|
else compacted.proof["@context"] = docContext;
|
|
@@ -41377,7 +41378,7 @@ var Video = class Video extends Document {
|
|
|
41377
41378
|
let values;
|
|
41378
41379
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
41379
41380
|
else {
|
|
41380
|
-
const expanded = await
|
|
41381
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
41381
41382
|
documentLoader: options.contextLoader,
|
|
41382
41383
|
keepFreeFloatingNodes: true
|
|
41383
41384
|
});
|
|
@@ -41477,13 +41478,13 @@ var View = class View extends Activity {
|
|
|
41477
41478
|
const values = baseValues[0];
|
|
41478
41479
|
values["@type"] = ["https://www.w3.org/ns/activitystreams#View"];
|
|
41479
41480
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41480
|
-
if (options.format === "expand") return await
|
|
41481
|
+
if (options.format === "expand") return await __fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41481
41482
|
const docContext = options.context ?? [
|
|
41482
41483
|
"https://w3id.org/identity/v1",
|
|
41483
41484
|
"https://www.w3.org/ns/activitystreams",
|
|
41484
41485
|
"https://w3id.org/security/data-integrity/v1"
|
|
41485
41486
|
];
|
|
41486
|
-
const compacted = await
|
|
41487
|
+
const compacted = await __fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
41487
41488
|
if (docContext != null) {
|
|
41488
41489
|
if ("proof" in compacted && compacted.proof != null) if (Array.isArray(compacted.proof)) for (const element of compacted.proof) element["@context"] = docContext;
|
|
41489
41490
|
else compacted.proof["@context"] = docContext;
|
|
@@ -41535,7 +41536,7 @@ var View = class View extends Activity {
|
|
|
41535
41536
|
let values;
|
|
41536
41537
|
if (globalThis.Object.keys(json).length == 0) values = {};
|
|
41537
41538
|
else {
|
|
41538
|
-
const expanded = await
|
|
41539
|
+
const expanded = await __fedify_vocab_runtime_jsonld.default.expand(json, {
|
|
41539
41540
|
documentLoader: options.contextLoader,
|
|
41540
41541
|
keepFreeFloatingNodes: true
|
|
41541
41542
|
});
|