@fedify/vocab 2.0.36-dev.2530 → 2.0.36-dev.2598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/mod.cjs +28 -32
- package/dist/mod.js +28 -32
- package/dist-tests/accept.yaml +1 -1
- package/dist-tests/activity.yaml +0 -1
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/add.yaml +1 -1
- package/dist-tests/announce.yaml +1 -1
- package/dist-tests/arrive.yaml +1 -1
- package/dist-tests/block.yaml +1 -1
- package/dist-tests/create.yaml +1 -1
- package/dist-tests/delete.yaml +1 -1
- package/dist-tests/{deno-B05_iH_G.mjs → deno-CNgGfAnV.mjs} +2 -2
- package/dist-tests/dislike.yaml +1 -1
- package/dist-tests/emojireact.yaml +1 -1
- package/dist-tests/flag.yaml +1 -1
- package/dist-tests/follow.yaml +0 -1
- package/dist-tests/ignore.yaml +1 -1
- package/dist-tests/intransitiveactivity.yaml +1 -1
- package/dist-tests/invite.yaml +1 -1
- package/dist-tests/join.yaml +1 -1
- package/dist-tests/leave.yaml +1 -1
- package/dist-tests/like.yaml +1 -1
- package/dist-tests/listen.yaml +1 -1
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/move.yaml +1 -1
- package/dist-tests/offer.yaml +1 -1
- package/dist-tests/question.yaml +1 -1
- package/dist-tests/read.yaml +1 -1
- package/dist-tests/reject.yaml +1 -1
- package/dist-tests/remove.yaml +1 -1
- package/dist-tests/tentativeaccept.yaml +1 -1
- package/dist-tests/tentativereject.yaml +1 -1
- package/dist-tests/travel.yaml +1 -1
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/undo.yaml +0 -1
- package/dist-tests/update.yaml +0 -1
- package/dist-tests/view.yaml +1 -1
- package/dist-tests/{vocab-ZYaaH8Qo.mjs → vocab-D5wtrNno.mjs} +27 -31
- package/dist-tests/vocab.test.mjs +18 -4
- package/package.json +4 -4
- package/src/accept.yaml +1 -1
- package/src/activity.yaml +0 -1
- package/src/add.yaml +1 -1
- package/src/announce.yaml +1 -1
- package/src/arrive.yaml +1 -1
- package/src/block.yaml +1 -1
- package/src/create.yaml +1 -1
- package/src/delete.yaml +1 -1
- package/src/dislike.yaml +1 -1
- package/src/emojireact.yaml +1 -1
- package/src/flag.yaml +1 -1
- package/src/follow.yaml +0 -1
- package/src/ignore.yaml +1 -1
- package/src/intransitiveactivity.yaml +1 -1
- package/src/invite.yaml +1 -1
- package/src/join.yaml +1 -1
- package/src/leave.yaml +1 -1
- package/src/like.yaml +1 -1
- package/src/listen.yaml +1 -1
- package/src/move.yaml +1 -1
- package/src/offer.yaml +1 -1
- package/src/question.yaml +1 -1
- package/src/read.yaml +1 -1
- package/src/reject.yaml +1 -1
- package/src/remove.yaml +1 -1
- package/src/tentativeaccept.yaml +1 -1
- package/src/tentativereject.yaml +1 -1
- package/src/travel.yaml +1 -1
- package/src/undo.yaml +0 -1
- package/src/update.yaml +0 -1
- package/src/view.yaml +1 -1
- package/src/vocab.test.ts +32 -2
package/deno.json
CHANGED
package/dist/mod.cjs
CHANGED
|
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
|
|
|
33
33
|
let es_toolkit = require("es-toolkit");
|
|
34
34
|
//#region deno.json
|
|
35
35
|
var name = "@fedify/vocab";
|
|
36
|
-
var version = "2.0.36-dev.
|
|
36
|
+
var version = "2.0.36-dev.2598+90504ae2";
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/type.ts
|
|
39
39
|
function getTypeId(object) {
|
|
@@ -7919,7 +7919,6 @@ var Activity = class Activity extends Object$1 {
|
|
|
7919
7919
|
if (this.id != null) values["@id"] = this.id.href;
|
|
7920
7920
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
7921
7921
|
const docContext = options.context ?? [
|
|
7922
|
-
"https://w3id.org/identity/v1",
|
|
7923
7922
|
"https://www.w3.org/ns/activitystreams",
|
|
7924
7923
|
"https://w3id.org/security/v1",
|
|
7925
7924
|
"https://w3id.org/security/data-integrity/v1"
|
|
@@ -8249,8 +8248,8 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8249
8248
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8250
8249
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
8251
8250
|
const docContext = options.context ?? [
|
|
8252
|
-
"https://w3id.org/identity/v1",
|
|
8253
8251
|
"https://www.w3.org/ns/activitystreams",
|
|
8252
|
+
"https://w3id.org/security/v1",
|
|
8254
8253
|
"https://w3id.org/security/data-integrity/v1",
|
|
8255
8254
|
{
|
|
8256
8255
|
"litepub": "http://litepub.social/ns#",
|
|
@@ -10570,8 +10569,8 @@ var Accept = class Accept extends Activity {
|
|
|
10570
10569
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10571
10570
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10572
10571
|
const docContext = options.context ?? [
|
|
10573
|
-
"https://w3id.org/identity/v1",
|
|
10574
10572
|
"https://www.w3.org/ns/activitystreams",
|
|
10573
|
+
"https://w3id.org/security/v1",
|
|
10575
10574
|
"https://w3id.org/security/data-integrity/v1"
|
|
10576
10575
|
];
|
|
10577
10576
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -10724,8 +10723,8 @@ var Add = class Add extends Activity {
|
|
|
10724
10723
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10725
10724
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10726
10725
|
const docContext = options.context ?? [
|
|
10727
|
-
"https://w3id.org/identity/v1",
|
|
10728
10726
|
"https://www.w3.org/ns/activitystreams",
|
|
10727
|
+
"https://w3id.org/security/v1",
|
|
10729
10728
|
"https://w3id.org/security/data-integrity/v1"
|
|
10730
10729
|
];
|
|
10731
10730
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -10876,8 +10875,8 @@ var Announce = class Announce extends Activity {
|
|
|
10876
10875
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10877
10876
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
10878
10877
|
const docContext = options.context ?? [
|
|
10879
|
-
"https://w3id.org/identity/v1",
|
|
10880
10878
|
"https://www.w3.org/ns/activitystreams",
|
|
10879
|
+
"https://w3id.org/security/v1",
|
|
10881
10880
|
"https://w3id.org/security/data-integrity/v1",
|
|
10882
10881
|
{
|
|
10883
10882
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -14531,8 +14530,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
14531
14530
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14532
14531
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14533
14532
|
const docContext = options.context ?? [
|
|
14534
|
-
"https://w3id.org/identity/v1",
|
|
14535
14533
|
"https://www.w3.org/ns/activitystreams",
|
|
14534
|
+
"https://w3id.org/security/v1",
|
|
14536
14535
|
"https://w3id.org/security/data-integrity/v1"
|
|
14537
14536
|
];
|
|
14538
14537
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -14686,8 +14685,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
14686
14685
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14687
14686
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
14688
14687
|
const docContext = options.context ?? [
|
|
14689
|
-
"https://w3id.org/identity/v1",
|
|
14690
14688
|
"https://www.w3.org/ns/activitystreams",
|
|
14689
|
+
"https://w3id.org/security/v1",
|
|
14691
14690
|
"https://w3id.org/security/data-integrity/v1"
|
|
14692
14691
|
];
|
|
14693
14692
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -15503,8 +15502,8 @@ var Ignore = class Ignore extends Activity {
|
|
|
15503
15502
|
if (this.id != null) values["@id"] = this.id.href;
|
|
15504
15503
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
15505
15504
|
const docContext = options.context ?? [
|
|
15506
|
-
"https://w3id.org/identity/v1",
|
|
15507
15505
|
"https://www.w3.org/ns/activitystreams",
|
|
15506
|
+
"https://w3id.org/security/v1",
|
|
15508
15507
|
"https://w3id.org/security/data-integrity/v1"
|
|
15509
15508
|
];
|
|
15510
15509
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -15657,8 +15656,8 @@ var Block = class Block extends Ignore {
|
|
|
15657
15656
|
if (this.id != null) values["@id"] = this.id.href;
|
|
15658
15657
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
15659
15658
|
const docContext = options.context ?? [
|
|
15660
|
-
"https://w3id.org/identity/v1",
|
|
15661
15659
|
"https://www.w3.org/ns/activitystreams",
|
|
15660
|
+
"https://w3id.org/security/v1",
|
|
15662
15661
|
"https://w3id.org/security/data-integrity/v1"
|
|
15663
15662
|
];
|
|
15664
15663
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -19019,8 +19018,8 @@ var Create = class Create extends Activity {
|
|
|
19019
19018
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19020
19019
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19021
19020
|
const docContext = options.context ?? [
|
|
19022
|
-
"https://w3id.org/identity/v1",
|
|
19023
19021
|
"https://www.w3.org/ns/activitystreams",
|
|
19022
|
+
"https://w3id.org/security/v1",
|
|
19024
19023
|
"https://w3id.org/security/data-integrity/v1",
|
|
19025
19024
|
{
|
|
19026
19025
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -19190,8 +19189,8 @@ var Delete = class Delete extends Activity {
|
|
|
19190
19189
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19191
19190
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19192
19191
|
const docContext = options.context ?? [
|
|
19193
|
-
"https://w3id.org/identity/v1",
|
|
19194
19192
|
"https://www.w3.org/ns/activitystreams",
|
|
19193
|
+
"https://w3id.org/security/v1",
|
|
19195
19194
|
"https://w3id.org/security/data-integrity/v1",
|
|
19196
19195
|
{
|
|
19197
19196
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -19356,8 +19355,8 @@ var Dislike = class Dislike extends Activity {
|
|
|
19356
19355
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19357
19356
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
19358
19357
|
const docContext = options.context ?? [
|
|
19359
|
-
"https://w3id.org/identity/v1",
|
|
19360
19358
|
"https://www.w3.org/ns/activitystreams",
|
|
19359
|
+
"https://w3id.org/security/v1",
|
|
19361
19360
|
"https://w3id.org/security/data-integrity/v1",
|
|
19362
19361
|
{
|
|
19363
19362
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -20120,8 +20119,8 @@ var Flag = class Flag extends Activity {
|
|
|
20120
20119
|
if (this.id != null) values["@id"] = this.id.href;
|
|
20121
20120
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
20122
20121
|
const docContext = options.context ?? [
|
|
20123
|
-
"https://w3id.org/identity/v1",
|
|
20124
20122
|
"https://www.w3.org/ns/activitystreams",
|
|
20123
|
+
"https://w3id.org/security/v1",
|
|
20125
20124
|
"https://w3id.org/security/data-integrity/v1"
|
|
20126
20125
|
];
|
|
20127
20126
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -20273,7 +20272,6 @@ var Follow = class Follow extends Activity {
|
|
|
20273
20272
|
if (this.id != null) values["@id"] = this.id.href;
|
|
20274
20273
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
20275
20274
|
const docContext = options.context ?? [
|
|
20276
|
-
"https://w3id.org/identity/v1",
|
|
20277
20275
|
"https://www.w3.org/ns/activitystreams",
|
|
20278
20276
|
"https://w3id.org/security/v1",
|
|
20279
20277
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -25029,8 +25027,8 @@ var Offer = class Offer extends Activity {
|
|
|
25029
25027
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25030
25028
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25031
25029
|
const docContext = options.context ?? [
|
|
25032
|
-
"https://w3id.org/identity/v1",
|
|
25033
25030
|
"https://www.w3.org/ns/activitystreams",
|
|
25031
|
+
"https://w3id.org/security/v1",
|
|
25034
25032
|
"https://w3id.org/security/data-integrity/v1"
|
|
25035
25033
|
];
|
|
25036
25034
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25181,8 +25179,8 @@ var Invite = class Invite extends Offer {
|
|
|
25181
25179
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25182
25180
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25183
25181
|
const docContext = options.context ?? [
|
|
25184
|
-
"https://w3id.org/identity/v1",
|
|
25185
25182
|
"https://www.w3.org/ns/activitystreams",
|
|
25183
|
+
"https://w3id.org/security/v1",
|
|
25186
25184
|
"https://w3id.org/security/data-integrity/v1"
|
|
25187
25185
|
];
|
|
25188
25186
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25332,8 +25330,8 @@ var Join = class Join extends Activity {
|
|
|
25332
25330
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25333
25331
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25334
25332
|
const docContext = options.context ?? [
|
|
25335
|
-
"https://w3id.org/identity/v1",
|
|
25336
25333
|
"https://www.w3.org/ns/activitystreams",
|
|
25334
|
+
"https://w3id.org/security/v1",
|
|
25337
25335
|
"https://w3id.org/security/data-integrity/v1"
|
|
25338
25336
|
];
|
|
25339
25337
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25483,8 +25481,8 @@ var Leave = class Leave extends Activity {
|
|
|
25483
25481
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25484
25482
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25485
25483
|
const docContext = options.context ?? [
|
|
25486
|
-
"https://w3id.org/identity/v1",
|
|
25487
25484
|
"https://www.w3.org/ns/activitystreams",
|
|
25485
|
+
"https://w3id.org/security/v1",
|
|
25488
25486
|
"https://w3id.org/security/data-integrity/v1"
|
|
25489
25487
|
];
|
|
25490
25488
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25634,8 +25632,8 @@ var Like = class Like extends Activity {
|
|
|
25634
25632
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25635
25633
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25636
25634
|
const docContext = options.context ?? [
|
|
25637
|
-
"https://w3id.org/identity/v1",
|
|
25638
25635
|
"https://www.w3.org/ns/activitystreams",
|
|
25636
|
+
"https://w3id.org/security/v1",
|
|
25639
25637
|
"https://w3id.org/security/data-integrity/v1",
|
|
25640
25638
|
{
|
|
25641
25639
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -25788,8 +25786,8 @@ var Listen = class Listen extends Activity {
|
|
|
25788
25786
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25789
25787
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
25790
25788
|
const docContext = options.context ?? [
|
|
25791
|
-
"https://w3id.org/identity/v1",
|
|
25792
25789
|
"https://www.w3.org/ns/activitystreams",
|
|
25790
|
+
"https://w3id.org/security/v1",
|
|
25793
25791
|
"https://w3id.org/security/data-integrity/v1"
|
|
25794
25792
|
];
|
|
25795
25793
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -26094,8 +26092,8 @@ var Move = class Move extends Activity {
|
|
|
26094
26092
|
if (this.id != null) values["@id"] = this.id.href;
|
|
26095
26093
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
26096
26094
|
const docContext = options.context ?? [
|
|
26097
|
-
"https://w3id.org/identity/v1",
|
|
26098
26095
|
"https://www.w3.org/ns/activitystreams",
|
|
26096
|
+
"https://w3id.org/security/v1",
|
|
26099
26097
|
"https://w3id.org/security/data-integrity/v1"
|
|
26100
26098
|
];
|
|
26101
26099
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -35757,8 +35755,8 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35757
35755
|
if (this.id != null) values["@id"] = this.id.href;
|
|
35758
35756
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
35759
35757
|
const docContext = options.context ?? [
|
|
35760
|
-
"https://w3id.org/identity/v1",
|
|
35761
35758
|
"https://www.w3.org/ns/activitystreams",
|
|
35759
|
+
"https://w3id.org/security/v1",
|
|
35762
35760
|
"https://w3id.org/security/data-integrity/v1",
|
|
35763
35761
|
{
|
|
35764
35762
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -36021,8 +36019,8 @@ var Read = class Read extends Activity {
|
|
|
36021
36019
|
if (this.id != null) values["@id"] = this.id.href;
|
|
36022
36020
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
36023
36021
|
const docContext = options.context ?? [
|
|
36024
|
-
"https://w3id.org/identity/v1",
|
|
36025
36022
|
"https://www.w3.org/ns/activitystreams",
|
|
36023
|
+
"https://w3id.org/security/v1",
|
|
36026
36024
|
"https://w3id.org/security/data-integrity/v1"
|
|
36027
36025
|
];
|
|
36028
36026
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -36172,8 +36170,8 @@ var Reject = class Reject extends Activity {
|
|
|
36172
36170
|
if (this.id != null) values["@id"] = this.id.href;
|
|
36173
36171
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
36174
36172
|
const docContext = options.context ?? [
|
|
36175
|
-
"https://w3id.org/identity/v1",
|
|
36176
36173
|
"https://www.w3.org/ns/activitystreams",
|
|
36174
|
+
"https://w3id.org/security/v1",
|
|
36177
36175
|
"https://w3id.org/security/data-integrity/v1"
|
|
36178
36176
|
];
|
|
36179
36177
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -37167,8 +37165,8 @@ var Remove = class Remove extends Activity {
|
|
|
37167
37165
|
if (this.id != null) values["@id"] = this.id.href;
|
|
37168
37166
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
37169
37167
|
const docContext = options.context ?? [
|
|
37170
|
-
"https://w3id.org/identity/v1",
|
|
37171
37168
|
"https://www.w3.org/ns/activitystreams",
|
|
37169
|
+
"https://w3id.org/security/v1",
|
|
37172
37170
|
"https://w3id.org/security/data-integrity/v1"
|
|
37173
37171
|
];
|
|
37174
37172
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41101,8 +41099,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
41101
41099
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41102
41100
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41103
41101
|
const docContext = options.context ?? [
|
|
41104
|
-
"https://w3id.org/identity/v1",
|
|
41105
41102
|
"https://www.w3.org/ns/activitystreams",
|
|
41103
|
+
"https://w3id.org/security/v1",
|
|
41106
41104
|
"https://w3id.org/security/data-integrity/v1"
|
|
41107
41105
|
];
|
|
41108
41106
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41252,8 +41250,8 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
41252
41250
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41253
41251
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41254
41252
|
const docContext = options.context ?? [
|
|
41255
|
-
"https://w3id.org/identity/v1",
|
|
41256
41253
|
"https://www.w3.org/ns/activitystreams",
|
|
41254
|
+
"https://w3id.org/security/v1",
|
|
41257
41255
|
"https://w3id.org/security/data-integrity/v1"
|
|
41258
41256
|
];
|
|
41259
41257
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41610,8 +41608,8 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
41610
41608
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41611
41609
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41612
41610
|
const docContext = options.context ?? [
|
|
41613
|
-
"https://w3id.org/identity/v1",
|
|
41614
41611
|
"https://www.w3.org/ns/activitystreams",
|
|
41612
|
+
"https://w3id.org/security/v1",
|
|
41615
41613
|
"https://w3id.org/security/data-integrity/v1"
|
|
41616
41614
|
];
|
|
41617
41615
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41766,7 +41764,6 @@ var Undo = class Undo extends Activity {
|
|
|
41766
41764
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41767
41765
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41768
41766
|
const docContext = options.context ?? [
|
|
41769
|
-
"https://w3id.org/identity/v1",
|
|
41770
41767
|
"https://www.w3.org/ns/activitystreams",
|
|
41771
41768
|
"https://w3id.org/security/v1",
|
|
41772
41769
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -41929,7 +41926,6 @@ var Update = class Update extends Activity {
|
|
|
41929
41926
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41930
41927
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
41931
41928
|
const docContext = options.context ?? [
|
|
41932
|
-
"https://w3id.org/identity/v1",
|
|
41933
41929
|
"https://www.w3.org/ns/activitystreams",
|
|
41934
41930
|
"https://w3id.org/security/v1",
|
|
41935
41931
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -42285,8 +42281,8 @@ var View = class View extends Activity {
|
|
|
42285
42281
|
if (this.id != null) values["@id"] = this.id.href;
|
|
42286
42282
|
if (options.format === "expand") return await _fedify_vocab_runtime_jsonld.default.expand(values, { documentLoader: options.contextLoader });
|
|
42287
42283
|
const docContext = options.context ?? [
|
|
42288
|
-
"https://w3id.org/identity/v1",
|
|
42289
42284
|
"https://www.w3.org/ns/activitystreams",
|
|
42285
|
+
"https://w3id.org/security/v1",
|
|
42290
42286
|
"https://w3id.org/security/data-integrity/v1"
|
|
42291
42287
|
];
|
|
42292
42288
|
const compacted = await _fedify_vocab_runtime_jsonld.default.compact(values, docContext, { documentLoader: options.contextLoader });
|
package/dist/mod.js
CHANGED
|
@@ -9,7 +9,7 @@ import { isTemporalDuration, isTemporalInstant, normalizeDateTimeLiteral } from
|
|
|
9
9
|
import { delay } from "es-toolkit";
|
|
10
10
|
//#region deno.json
|
|
11
11
|
var name = "@fedify/vocab";
|
|
12
|
-
var version = "2.0.36-dev.
|
|
12
|
+
var version = "2.0.36-dev.2598+90504ae2";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/type.ts
|
|
15
15
|
function getTypeId(object) {
|
|
@@ -7895,7 +7895,6 @@ var Activity = class Activity extends Object$1 {
|
|
|
7895
7895
|
if (this.id != null) values["@id"] = this.id.href;
|
|
7896
7896
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
7897
7897
|
const docContext = options.context ?? [
|
|
7898
|
-
"https://w3id.org/identity/v1",
|
|
7899
7898
|
"https://www.w3.org/ns/activitystreams",
|
|
7900
7899
|
"https://w3id.org/security/v1",
|
|
7901
7900
|
"https://w3id.org/security/data-integrity/v1"
|
|
@@ -8225,8 +8224,8 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
8225
8224
|
if (this.id != null) values["@id"] = this.id.href;
|
|
8226
8225
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
8227
8226
|
const docContext = options.context ?? [
|
|
8228
|
-
"https://w3id.org/identity/v1",
|
|
8229
8227
|
"https://www.w3.org/ns/activitystreams",
|
|
8228
|
+
"https://w3id.org/security/v1",
|
|
8230
8229
|
"https://w3id.org/security/data-integrity/v1",
|
|
8231
8230
|
{
|
|
8232
8231
|
"litepub": "http://litepub.social/ns#",
|
|
@@ -10546,8 +10545,8 @@ var Accept = class Accept extends Activity {
|
|
|
10546
10545
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10547
10546
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
10548
10547
|
const docContext = options.context ?? [
|
|
10549
|
-
"https://w3id.org/identity/v1",
|
|
10550
10548
|
"https://www.w3.org/ns/activitystreams",
|
|
10549
|
+
"https://w3id.org/security/v1",
|
|
10551
10550
|
"https://w3id.org/security/data-integrity/v1"
|
|
10552
10551
|
];
|
|
10553
10552
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -10700,8 +10699,8 @@ var Add = class Add extends Activity {
|
|
|
10700
10699
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10701
10700
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
10702
10701
|
const docContext = options.context ?? [
|
|
10703
|
-
"https://w3id.org/identity/v1",
|
|
10704
10702
|
"https://www.w3.org/ns/activitystreams",
|
|
10703
|
+
"https://w3id.org/security/v1",
|
|
10705
10704
|
"https://w3id.org/security/data-integrity/v1"
|
|
10706
10705
|
];
|
|
10707
10706
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -10852,8 +10851,8 @@ var Announce = class Announce extends Activity {
|
|
|
10852
10851
|
if (this.id != null) values["@id"] = this.id.href;
|
|
10853
10852
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
10854
10853
|
const docContext = options.context ?? [
|
|
10855
|
-
"https://w3id.org/identity/v1",
|
|
10856
10854
|
"https://www.w3.org/ns/activitystreams",
|
|
10855
|
+
"https://w3id.org/security/v1",
|
|
10857
10856
|
"https://w3id.org/security/data-integrity/v1",
|
|
10858
10857
|
{
|
|
10859
10858
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -14507,8 +14506,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
14507
14506
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14508
14507
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
14509
14508
|
const docContext = options.context ?? [
|
|
14510
|
-
"https://w3id.org/identity/v1",
|
|
14511
14509
|
"https://www.w3.org/ns/activitystreams",
|
|
14510
|
+
"https://w3id.org/security/v1",
|
|
14512
14511
|
"https://w3id.org/security/data-integrity/v1"
|
|
14513
14512
|
];
|
|
14514
14513
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -14662,8 +14661,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
14662
14661
|
if (this.id != null) values["@id"] = this.id.href;
|
|
14663
14662
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
14664
14663
|
const docContext = options.context ?? [
|
|
14665
|
-
"https://w3id.org/identity/v1",
|
|
14666
14664
|
"https://www.w3.org/ns/activitystreams",
|
|
14665
|
+
"https://w3id.org/security/v1",
|
|
14667
14666
|
"https://w3id.org/security/data-integrity/v1"
|
|
14668
14667
|
];
|
|
14669
14668
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -15479,8 +15478,8 @@ var Ignore = class Ignore extends Activity {
|
|
|
15479
15478
|
if (this.id != null) values["@id"] = this.id.href;
|
|
15480
15479
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
15481
15480
|
const docContext = options.context ?? [
|
|
15482
|
-
"https://w3id.org/identity/v1",
|
|
15483
15481
|
"https://www.w3.org/ns/activitystreams",
|
|
15482
|
+
"https://w3id.org/security/v1",
|
|
15484
15483
|
"https://w3id.org/security/data-integrity/v1"
|
|
15485
15484
|
];
|
|
15486
15485
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -15633,8 +15632,8 @@ var Block = class Block extends Ignore {
|
|
|
15633
15632
|
if (this.id != null) values["@id"] = this.id.href;
|
|
15634
15633
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
15635
15634
|
const docContext = options.context ?? [
|
|
15636
|
-
"https://w3id.org/identity/v1",
|
|
15637
15635
|
"https://www.w3.org/ns/activitystreams",
|
|
15636
|
+
"https://w3id.org/security/v1",
|
|
15638
15637
|
"https://w3id.org/security/data-integrity/v1"
|
|
15639
15638
|
];
|
|
15640
15639
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -18995,8 +18994,8 @@ var Create = class Create extends Activity {
|
|
|
18995
18994
|
if (this.id != null) values["@id"] = this.id.href;
|
|
18996
18995
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
18997
18996
|
const docContext = options.context ?? [
|
|
18998
|
-
"https://w3id.org/identity/v1",
|
|
18999
18997
|
"https://www.w3.org/ns/activitystreams",
|
|
18998
|
+
"https://w3id.org/security/v1",
|
|
19000
18999
|
"https://w3id.org/security/data-integrity/v1",
|
|
19001
19000
|
{
|
|
19002
19001
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -19166,8 +19165,8 @@ var Delete = class Delete extends Activity {
|
|
|
19166
19165
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19167
19166
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
19168
19167
|
const docContext = options.context ?? [
|
|
19169
|
-
"https://w3id.org/identity/v1",
|
|
19170
19168
|
"https://www.w3.org/ns/activitystreams",
|
|
19169
|
+
"https://w3id.org/security/v1",
|
|
19171
19170
|
"https://w3id.org/security/data-integrity/v1",
|
|
19172
19171
|
{
|
|
19173
19172
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -19332,8 +19331,8 @@ var Dislike = class Dislike extends Activity {
|
|
|
19332
19331
|
if (this.id != null) values["@id"] = this.id.href;
|
|
19333
19332
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
19334
19333
|
const docContext = options.context ?? [
|
|
19335
|
-
"https://w3id.org/identity/v1",
|
|
19336
19334
|
"https://www.w3.org/ns/activitystreams",
|
|
19335
|
+
"https://w3id.org/security/v1",
|
|
19337
19336
|
"https://w3id.org/security/data-integrity/v1",
|
|
19338
19337
|
{
|
|
19339
19338
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -20096,8 +20095,8 @@ var Flag = class Flag extends Activity {
|
|
|
20096
20095
|
if (this.id != null) values["@id"] = this.id.href;
|
|
20097
20096
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
20098
20097
|
const docContext = options.context ?? [
|
|
20099
|
-
"https://w3id.org/identity/v1",
|
|
20100
20098
|
"https://www.w3.org/ns/activitystreams",
|
|
20099
|
+
"https://w3id.org/security/v1",
|
|
20101
20100
|
"https://w3id.org/security/data-integrity/v1"
|
|
20102
20101
|
];
|
|
20103
20102
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -20249,7 +20248,6 @@ var Follow = class Follow extends Activity {
|
|
|
20249
20248
|
if (this.id != null) values["@id"] = this.id.href;
|
|
20250
20249
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
20251
20250
|
const docContext = options.context ?? [
|
|
20252
|
-
"https://w3id.org/identity/v1",
|
|
20253
20251
|
"https://www.w3.org/ns/activitystreams",
|
|
20254
20252
|
"https://w3id.org/security/v1",
|
|
20255
20253
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -25005,8 +25003,8 @@ var Offer = class Offer extends Activity {
|
|
|
25005
25003
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25006
25004
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
25007
25005
|
const docContext = options.context ?? [
|
|
25008
|
-
"https://w3id.org/identity/v1",
|
|
25009
25006
|
"https://www.w3.org/ns/activitystreams",
|
|
25007
|
+
"https://w3id.org/security/v1",
|
|
25010
25008
|
"https://w3id.org/security/data-integrity/v1"
|
|
25011
25009
|
];
|
|
25012
25010
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25157,8 +25155,8 @@ var Invite = class Invite extends Offer {
|
|
|
25157
25155
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25158
25156
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
25159
25157
|
const docContext = options.context ?? [
|
|
25160
|
-
"https://w3id.org/identity/v1",
|
|
25161
25158
|
"https://www.w3.org/ns/activitystreams",
|
|
25159
|
+
"https://w3id.org/security/v1",
|
|
25162
25160
|
"https://w3id.org/security/data-integrity/v1"
|
|
25163
25161
|
];
|
|
25164
25162
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25308,8 +25306,8 @@ var Join = class Join extends Activity {
|
|
|
25308
25306
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25309
25307
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
25310
25308
|
const docContext = options.context ?? [
|
|
25311
|
-
"https://w3id.org/identity/v1",
|
|
25312
25309
|
"https://www.w3.org/ns/activitystreams",
|
|
25310
|
+
"https://w3id.org/security/v1",
|
|
25313
25311
|
"https://w3id.org/security/data-integrity/v1"
|
|
25314
25312
|
];
|
|
25315
25313
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25459,8 +25457,8 @@ var Leave = class Leave extends Activity {
|
|
|
25459
25457
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25460
25458
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
25461
25459
|
const docContext = options.context ?? [
|
|
25462
|
-
"https://w3id.org/identity/v1",
|
|
25463
25460
|
"https://www.w3.org/ns/activitystreams",
|
|
25461
|
+
"https://w3id.org/security/v1",
|
|
25464
25462
|
"https://w3id.org/security/data-integrity/v1"
|
|
25465
25463
|
];
|
|
25466
25464
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -25610,8 +25608,8 @@ var Like = class Like extends Activity {
|
|
|
25610
25608
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25611
25609
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
25612
25610
|
const docContext = options.context ?? [
|
|
25613
|
-
"https://w3id.org/identity/v1",
|
|
25614
25611
|
"https://www.w3.org/ns/activitystreams",
|
|
25612
|
+
"https://w3id.org/security/v1",
|
|
25615
25613
|
"https://w3id.org/security/data-integrity/v1",
|
|
25616
25614
|
{
|
|
25617
25615
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -25764,8 +25762,8 @@ var Listen = class Listen extends Activity {
|
|
|
25764
25762
|
if (this.id != null) values["@id"] = this.id.href;
|
|
25765
25763
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
25766
25764
|
const docContext = options.context ?? [
|
|
25767
|
-
"https://w3id.org/identity/v1",
|
|
25768
25765
|
"https://www.w3.org/ns/activitystreams",
|
|
25766
|
+
"https://w3id.org/security/v1",
|
|
25769
25767
|
"https://w3id.org/security/data-integrity/v1"
|
|
25770
25768
|
];
|
|
25771
25769
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -26070,8 +26068,8 @@ var Move = class Move extends Activity {
|
|
|
26070
26068
|
if (this.id != null) values["@id"] = this.id.href;
|
|
26071
26069
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
26072
26070
|
const docContext = options.context ?? [
|
|
26073
|
-
"https://w3id.org/identity/v1",
|
|
26074
26071
|
"https://www.w3.org/ns/activitystreams",
|
|
26072
|
+
"https://w3id.org/security/v1",
|
|
26075
26073
|
"https://w3id.org/security/data-integrity/v1"
|
|
26076
26074
|
];
|
|
26077
26075
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -35733,8 +35731,8 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
35733
35731
|
if (this.id != null) values["@id"] = this.id.href;
|
|
35734
35732
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
35735
35733
|
const docContext = options.context ?? [
|
|
35736
|
-
"https://w3id.org/identity/v1",
|
|
35737
35734
|
"https://www.w3.org/ns/activitystreams",
|
|
35735
|
+
"https://w3id.org/security/v1",
|
|
35738
35736
|
"https://w3id.org/security/data-integrity/v1",
|
|
35739
35737
|
{
|
|
35740
35738
|
"toot": "http://joinmastodon.org/ns#",
|
|
@@ -35997,8 +35995,8 @@ var Read = class Read extends Activity {
|
|
|
35997
35995
|
if (this.id != null) values["@id"] = this.id.href;
|
|
35998
35996
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
35999
35997
|
const docContext = options.context ?? [
|
|
36000
|
-
"https://w3id.org/identity/v1",
|
|
36001
35998
|
"https://www.w3.org/ns/activitystreams",
|
|
35999
|
+
"https://w3id.org/security/v1",
|
|
36002
36000
|
"https://w3id.org/security/data-integrity/v1"
|
|
36003
36001
|
];
|
|
36004
36002
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -36148,8 +36146,8 @@ var Reject = class Reject extends Activity {
|
|
|
36148
36146
|
if (this.id != null) values["@id"] = this.id.href;
|
|
36149
36147
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
36150
36148
|
const docContext = options.context ?? [
|
|
36151
|
-
"https://w3id.org/identity/v1",
|
|
36152
36149
|
"https://www.w3.org/ns/activitystreams",
|
|
36150
|
+
"https://w3id.org/security/v1",
|
|
36153
36151
|
"https://w3id.org/security/data-integrity/v1"
|
|
36154
36152
|
];
|
|
36155
36153
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -37143,8 +37141,8 @@ var Remove = class Remove extends Activity {
|
|
|
37143
37141
|
if (this.id != null) values["@id"] = this.id.href;
|
|
37144
37142
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
37145
37143
|
const docContext = options.context ?? [
|
|
37146
|
-
"https://w3id.org/identity/v1",
|
|
37147
37144
|
"https://www.w3.org/ns/activitystreams",
|
|
37145
|
+
"https://w3id.org/security/v1",
|
|
37148
37146
|
"https://w3id.org/security/data-integrity/v1"
|
|
37149
37147
|
];
|
|
37150
37148
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41077,8 +41075,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
41077
41075
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41078
41076
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
41079
41077
|
const docContext = options.context ?? [
|
|
41080
|
-
"https://w3id.org/identity/v1",
|
|
41081
41078
|
"https://www.w3.org/ns/activitystreams",
|
|
41079
|
+
"https://w3id.org/security/v1",
|
|
41082
41080
|
"https://w3id.org/security/data-integrity/v1"
|
|
41083
41081
|
];
|
|
41084
41082
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41228,8 +41226,8 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
41228
41226
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41229
41227
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
41230
41228
|
const docContext = options.context ?? [
|
|
41231
|
-
"https://w3id.org/identity/v1",
|
|
41232
41229
|
"https://www.w3.org/ns/activitystreams",
|
|
41230
|
+
"https://w3id.org/security/v1",
|
|
41233
41231
|
"https://w3id.org/security/data-integrity/v1"
|
|
41234
41232
|
];
|
|
41235
41233
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41586,8 +41584,8 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
41586
41584
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41587
41585
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
41588
41586
|
const docContext = options.context ?? [
|
|
41589
|
-
"https://w3id.org/identity/v1",
|
|
41590
41587
|
"https://www.w3.org/ns/activitystreams",
|
|
41588
|
+
"https://w3id.org/security/v1",
|
|
41591
41589
|
"https://w3id.org/security/data-integrity/v1"
|
|
41592
41590
|
];
|
|
41593
41591
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
|
@@ -41742,7 +41740,6 @@ var Undo = class Undo extends Activity {
|
|
|
41742
41740
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41743
41741
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
41744
41742
|
const docContext = options.context ?? [
|
|
41745
|
-
"https://w3id.org/identity/v1",
|
|
41746
41743
|
"https://www.w3.org/ns/activitystreams",
|
|
41747
41744
|
"https://w3id.org/security/v1",
|
|
41748
41745
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -41905,7 +41902,6 @@ var Update = class Update extends Activity {
|
|
|
41905
41902
|
if (this.id != null) values["@id"] = this.id.href;
|
|
41906
41903
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
41907
41904
|
const docContext = options.context ?? [
|
|
41908
|
-
"https://w3id.org/identity/v1",
|
|
41909
41905
|
"https://www.w3.org/ns/activitystreams",
|
|
41910
41906
|
"https://w3id.org/security/v1",
|
|
41911
41907
|
"https://w3id.org/security/data-integrity/v1",
|
|
@@ -42261,8 +42257,8 @@ var View = class View extends Activity {
|
|
|
42261
42257
|
if (this.id != null) values["@id"] = this.id.href;
|
|
42262
42258
|
if (options.format === "expand") return await jsonld.expand(values, { documentLoader: options.contextLoader });
|
|
42263
42259
|
const docContext = options.context ?? [
|
|
42264
|
-
"https://w3id.org/identity/v1",
|
|
42265
42260
|
"https://www.w3.org/ns/activitystreams",
|
|
42261
|
+
"https://w3id.org/security/v1",
|
|
42266
42262
|
"https://w3id.org/security/data-integrity/v1"
|
|
42267
42263
|
];
|
|
42268
42264
|
const compacted = await jsonld.compact(values, docContext, { documentLoader: options.contextLoader });
|
package/dist-tests/accept.yaml
CHANGED
|
@@ -9,7 +9,7 @@ description: |
|
|
|
9
9
|
used in certain circumstances to indicate the context into which the `object`
|
|
10
10
|
has been accepted.
|
|
11
11
|
defaultContext:
|
|
12
|
-
- "https://w3id.org/identity/v1"
|
|
13
12
|
- "https://www.w3.org/ns/activitystreams"
|
|
13
|
+
- "https://w3id.org/security/v1"
|
|
14
14
|
- "https://w3id.org/security/data-integrity/v1"
|
|
15
15
|
properties: []
|
package/dist-tests/activity.yaml
CHANGED
|
@@ -11,7 +11,6 @@ description: |
|
|
|
11
11
|
of activities. It is important to note that the {@link Activity} type itself
|
|
12
12
|
does not carry any specific semantics about the kind of action being taken.
|
|
13
13
|
defaultContext:
|
|
14
|
-
- "https://w3id.org/identity/v1"
|
|
15
14
|
- "https://www.w3.org/ns/activitystreams"
|
|
16
15
|
- "https://w3id.org/security/v1"
|
|
17
16
|
- "https://w3id.org/security/data-integrity/v1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@js-temporal/polyfill";
|
|
2
2
|
globalThis.addEventListener = () => {};
|
|
3
|
-
import { b as Service, g as Person, h as Organization, i as Application, l as Group, w as __exportAll } from "./vocab-
|
|
4
|
-
import { n as version, r as esm_default, t as name } from "./deno-
|
|
3
|
+
import { b as Service, g as Person, h as Organization, i as Application, l as Group, w as __exportAll } from "./vocab-D5wtrNno.mjs";
|
|
4
|
+
import { n as version, r as esm_default, t as name } from "./deno-CNgGfAnV.mjs";
|
|
5
5
|
import { t as getTypeId } from "./type-Cf-vxmre.mjs";
|
|
6
6
|
import { test } from "@fedify/fixture";
|
|
7
7
|
import { deepStrictEqual, ok, rejects, strictEqual, throws } from "node:assert/strict";
|