@fedify/fedify 1.1.0-dev.442 → 1.1.0-dev.446
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +22 -0
- package/esm/vocab/application.yaml +4 -1
- package/esm/vocab/group.yaml +4 -1
- package/esm/vocab/organization.yaml +4 -1
- package/esm/vocab/person.yaml +4 -1
- package/esm/vocab/service.yaml +4 -1
- package/esm/vocab/vocab.js +448 -168
- package/package.json +1 -1
- package/types/vocab/vocab.d.ts.map +1 -1
package/esm/vocab/vocab.js
CHANGED
@@ -3701,7 +3701,8 @@ export class Object {
|
|
3701
3701
|
// deno-lint-ignore no-explicit-any
|
3702
3702
|
(expanded[0] ?? {});
|
3703
3703
|
}
|
3704
|
-
if ("@type" in values
|
3704
|
+
if ("@type" in values &&
|
3705
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
3705
3706
|
if (values["@type"].includes("http://joinmastodon.org/ns#Emoji")) {
|
3706
3707
|
return await Emoji.fromJsonLd(json, options);
|
3707
3708
|
}
|
@@ -3881,7 +3882,9 @@ export class Object {
|
|
3881
3882
|
continue;
|
3882
3883
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
3883
3884
|
globalThis.Object.keys(v).length === 1) {
|
3884
|
-
_49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(
|
3885
|
+
_49BipA5dq9eoH8LX8xdsVumveTca_attachment.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
3886
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
3887
|
+
: new URL(v["@id"]));
|
3885
3888
|
continue;
|
3886
3889
|
}
|
3887
3890
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -3975,7 +3978,9 @@ export class Object {
|
|
3975
3978
|
continue;
|
3976
3979
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
3977
3980
|
globalThis.Object.keys(v).length === 1) {
|
3978
|
-
_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(
|
3981
|
+
_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
3982
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
3983
|
+
: new URL(v["@id"]));
|
3979
3984
|
continue;
|
3980
3985
|
}
|
3981
3986
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4017,7 +4022,9 @@ export class Object {
|
|
4017
4022
|
continue;
|
4018
4023
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4019
4024
|
globalThis.Object.keys(v).length === 1) {
|
4020
|
-
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(
|
4025
|
+
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4026
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4027
|
+
: new URL(v["@id"]));
|
4021
4028
|
continue;
|
4022
4029
|
}
|
4023
4030
|
_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.push(await _a.fromJsonLd(v, options));
|
@@ -4060,7 +4067,9 @@ export class Object {
|
|
4060
4067
|
continue;
|
4061
4068
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4062
4069
|
globalThis.Object.keys(v).length === 1) {
|
4063
|
-
_3mhZzGXSpQ431mBSz2kvych22v4e_context.push(
|
4070
|
+
_3mhZzGXSpQ431mBSz2kvych22v4e_context.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4071
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4072
|
+
: new URL(v["@id"]));
|
4064
4073
|
continue;
|
4065
4074
|
}
|
4066
4075
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4188,7 +4197,9 @@ export class Object {
|
|
4188
4197
|
continue;
|
4189
4198
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4190
4199
|
globalThis.Object.keys(v).length === 1) {
|
4191
|
-
_86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(
|
4200
|
+
_86xFhmgBapoMvYqjbjRuDPayTrS_generator.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4201
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4202
|
+
: new URL(v["@id"]));
|
4192
4203
|
continue;
|
4193
4204
|
}
|
4194
4205
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4278,7 +4289,9 @@ export class Object {
|
|
4278
4289
|
continue;
|
4279
4290
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4280
4291
|
globalThis.Object.keys(v).length === 1) {
|
4281
|
-
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(
|
4292
|
+
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4293
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4294
|
+
: new URL(v["@id"]));
|
4282
4295
|
continue;
|
4283
4296
|
}
|
4284
4297
|
_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.push(await Image.fromJsonLd(v, options));
|
@@ -4297,7 +4310,9 @@ export class Object {
|
|
4297
4310
|
continue;
|
4298
4311
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4299
4312
|
globalThis.Object.keys(v).length === 1) {
|
4300
|
-
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(
|
4313
|
+
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4314
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4315
|
+
: new URL(v["@id"]));
|
4301
4316
|
continue;
|
4302
4317
|
}
|
4303
4318
|
_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.push(await Image.fromJsonLd(v, options));
|
@@ -4316,7 +4331,9 @@ export class Object {
|
|
4316
4331
|
continue;
|
4317
4332
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4318
4333
|
globalThis.Object.keys(v).length === 1) {
|
4319
|
-
_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(
|
4334
|
+
_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4335
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4336
|
+
: new URL(v["@id"]));
|
4320
4337
|
continue;
|
4321
4338
|
}
|
4322
4339
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4406,7 +4423,9 @@ export class Object {
|
|
4406
4423
|
continue;
|
4407
4424
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4408
4425
|
globalThis.Object.keys(v).length === 1) {
|
4409
|
-
_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(
|
4426
|
+
_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4427
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4428
|
+
: new URL(v["@id"]));
|
4410
4429
|
continue;
|
4411
4430
|
}
|
4412
4431
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4496,7 +4515,9 @@ export class Object {
|
|
4496
4515
|
continue;
|
4497
4516
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4498
4517
|
globalThis.Object.keys(v).length === 1) {
|
4499
|
-
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(
|
4518
|
+
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4519
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4520
|
+
: new URL(v["@id"]));
|
4500
4521
|
continue;
|
4501
4522
|
}
|
4502
4523
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4600,7 +4621,9 @@ export class Object {
|
|
4600
4621
|
continue;
|
4601
4622
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4602
4623
|
globalThis.Object.keys(v).length === 1) {
|
4603
|
-
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(
|
4624
|
+
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4625
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4626
|
+
: new URL(v["@id"]));
|
4604
4627
|
continue;
|
4605
4628
|
}
|
4606
4629
|
_7UpwM3JWcXhADcscukEehBorf6k_replies.push(await Collection.fromJsonLd(v, options));
|
@@ -4657,7 +4680,9 @@ export class Object {
|
|
4657
4680
|
continue;
|
4658
4681
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4659
4682
|
globalThis.Object.keys(v).length === 1) {
|
4660
|
-
_5chuqj6s95p5gg2sk1HntGfarRf_tag.push(
|
4683
|
+
_5chuqj6s95p5gg2sk1HntGfarRf_tag.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4684
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4685
|
+
: new URL(v["@id"]));
|
4661
4686
|
continue;
|
4662
4687
|
}
|
4663
4688
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -4790,7 +4815,9 @@ export class Object {
|
|
4790
4815
|
continue;
|
4791
4816
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4792
4817
|
globalThis.Object.keys(v).length === 1) {
|
4793
|
-
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(
|
4818
|
+
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4819
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4820
|
+
: new URL(v["@id"]));
|
4794
4821
|
continue;
|
4795
4822
|
}
|
4796
4823
|
_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.push(await _a.fromJsonLd(v, options));
|
@@ -4809,7 +4836,9 @@ export class Object {
|
|
4809
4836
|
continue;
|
4810
4837
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4811
4838
|
globalThis.Object.keys(v).length === 1) {
|
4812
|
-
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(
|
4839
|
+
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4840
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4841
|
+
: new URL(v["@id"]));
|
4813
4842
|
continue;
|
4814
4843
|
}
|
4815
4844
|
_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.push(await _a.fromJsonLd(v, options));
|
@@ -4828,7 +4857,9 @@ export class Object {
|
|
4828
4857
|
continue;
|
4829
4858
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4830
4859
|
globalThis.Object.keys(v).length === 1) {
|
4831
|
-
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(
|
4860
|
+
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4861
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4862
|
+
: new URL(v["@id"]));
|
4832
4863
|
continue;
|
4833
4864
|
}
|
4834
4865
|
_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.push(await _a.fromJsonLd(v, options));
|
@@ -4847,7 +4878,9 @@ export class Object {
|
|
4847
4878
|
continue;
|
4848
4879
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4849
4880
|
globalThis.Object.keys(v).length === 1) {
|
4850
|
-
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(
|
4881
|
+
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4882
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4883
|
+
: new URL(v["@id"]));
|
4851
4884
|
continue;
|
4852
4885
|
}
|
4853
4886
|
_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.push(await _a.fromJsonLd(v, options));
|
@@ -4922,7 +4955,9 @@ export class Object {
|
|
4922
4955
|
continue;
|
4923
4956
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
4924
4957
|
globalThis.Object.keys(v).length === 1) {
|
4925
|
-
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(
|
4958
|
+
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
4959
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
4960
|
+
: new URL(v["@id"]));
|
4926
4961
|
continue;
|
4927
4962
|
}
|
4928
4963
|
_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.push(await DataIntegrityProof.fromJsonLd(v, options));
|
@@ -5532,7 +5567,8 @@ export class Emoji extends Object {
|
|
5532
5567
|
// deno-lint-ignore no-explicit-any
|
5533
5568
|
(expanded[0] ?? {});
|
5534
5569
|
}
|
5535
|
-
if ("@type" in values
|
5570
|
+
if ("@type" in values &&
|
5571
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
5536
5572
|
if (!values["@type"].includes("http://joinmastodon.org/ns#Emoji")) {
|
5537
5573
|
throw new TypeError("Invalid type: " + values["@type"]);
|
5538
5574
|
}
|
@@ -5796,7 +5832,8 @@ export class ChatMessage extends Object {
|
|
5796
5832
|
// deno-lint-ignore no-explicit-any
|
5797
5833
|
(expanded[0] ?? {});
|
5798
5834
|
}
|
5799
|
-
if ("@type" in values
|
5835
|
+
if ("@type" in values &&
|
5836
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
5800
5837
|
if (!values["@type"].includes("http://litepub.social/ns#ChatMessage")) {
|
5801
5838
|
throw new TypeError("Invalid type: " + values["@type"]);
|
5802
5839
|
}
|
@@ -6953,7 +6990,8 @@ export class Activity extends Object {
|
|
6953
6990
|
// deno-lint-ignore no-explicit-any
|
6954
6991
|
(expanded[0] ?? {});
|
6955
6992
|
}
|
6956
|
-
if ("@type" in values
|
6993
|
+
if ("@type" in values &&
|
6994
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
6957
6995
|
if (values["@type"].includes("http://litepub.social/ns#EmojiReact")) {
|
6958
6996
|
return await EmojiReact.fromJsonLd(json, options);
|
6959
6997
|
}
|
@@ -7069,7 +7107,9 @@ export class Activity extends Object {
|
|
7069
7107
|
continue;
|
7070
7108
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
7071
7109
|
globalThis.Object.keys(v).length === 1) {
|
7072
|
-
_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(
|
7110
|
+
_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
7111
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
7112
|
+
: new URL(v["@id"]));
|
7073
7113
|
continue;
|
7074
7114
|
}
|
7075
7115
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -7111,7 +7151,9 @@ export class Activity extends Object {
|
|
7111
7151
|
continue;
|
7112
7152
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
7113
7153
|
globalThis.Object.keys(v).length === 1) {
|
7114
|
-
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(
|
7154
|
+
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
7155
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
7156
|
+
: new URL(v["@id"]));
|
7115
7157
|
continue;
|
7116
7158
|
}
|
7117
7159
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(await Object.fromJsonLd(v, options));
|
@@ -7130,7 +7172,9 @@ export class Activity extends Object {
|
|
7130
7172
|
continue;
|
7131
7173
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
7132
7174
|
globalThis.Object.keys(v).length === 1) {
|
7133
|
-
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(
|
7175
|
+
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
7176
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
7177
|
+
: new URL(v["@id"]));
|
7134
7178
|
continue;
|
7135
7179
|
}
|
7136
7180
|
_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.push(await Object.fromJsonLd(v, options));
|
@@ -7149,7 +7193,9 @@ export class Activity extends Object {
|
|
7149
7193
|
continue;
|
7150
7194
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
7151
7195
|
globalThis.Object.keys(v).length === 1) {
|
7152
|
-
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(
|
7196
|
+
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
7197
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
7198
|
+
: new URL(v["@id"]));
|
7153
7199
|
continue;
|
7154
7200
|
}
|
7155
7201
|
_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.push(await Object.fromJsonLd(v, options));
|
@@ -7168,7 +7214,9 @@ export class Activity extends Object {
|
|
7168
7214
|
continue;
|
7169
7215
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
7170
7216
|
globalThis.Object.keys(v).length === 1) {
|
7171
|
-
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(
|
7217
|
+
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
7218
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
7219
|
+
: new URL(v["@id"]));
|
7172
7220
|
continue;
|
7173
7221
|
}
|
7174
7222
|
_25zu2s3VxVujgEKqrDycjE284XQR_origin.push(await Object.fromJsonLd(v, options));
|
@@ -7187,7 +7235,9 @@ export class Activity extends Object {
|
|
7187
7235
|
continue;
|
7188
7236
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
7189
7237
|
globalThis.Object.keys(v).length === 1) {
|
7190
|
-
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(
|
7238
|
+
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
7239
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
7240
|
+
: new URL(v["@id"]));
|
7191
7241
|
continue;
|
7192
7242
|
}
|
7193
7243
|
_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.push(await Object.fromJsonLd(v, options));
|
@@ -7446,7 +7496,8 @@ export class EmojiReact extends Activity {
|
|
7446
7496
|
// deno-lint-ignore no-explicit-any
|
7447
7497
|
(expanded[0] ?? {});
|
7448
7498
|
}
|
7449
|
-
if ("@type" in values
|
7499
|
+
if ("@type" in values &&
|
7500
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
7450
7501
|
if (!values["@type"].includes("http://litepub.social/ns#EmojiReact")) {
|
7451
7502
|
throw new TypeError("Invalid type: " + values["@type"]);
|
7452
7503
|
}
|
@@ -7737,7 +7788,8 @@ export class PropertyValue {
|
|
7737
7788
|
// deno-lint-ignore no-explicit-any
|
7738
7789
|
(expanded[0] ?? {});
|
7739
7790
|
}
|
7740
|
-
if ("@type" in values
|
7791
|
+
if ("@type" in values &&
|
7792
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
7741
7793
|
if (!values["@type"].includes("http://schema.org#PropertyValue")) {
|
7742
7794
|
throw new TypeError("Invalid type: " + values["@type"]);
|
7743
7795
|
}
|
@@ -8046,7 +8098,8 @@ export class DidService {
|
|
8046
8098
|
// deno-lint-ignore no-explicit-any
|
8047
8099
|
(expanded[0] ?? {});
|
8048
8100
|
}
|
8049
|
-
if ("@type" in values
|
8101
|
+
if ("@type" in values &&
|
8102
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
8050
8103
|
if (values["@type"].includes("https://w3id.org/fep/9091#Export")) {
|
8051
8104
|
return await Export.fromJsonLd(json, options);
|
8052
8105
|
}
|
@@ -8221,7 +8274,8 @@ export class Export extends DidService {
|
|
8221
8274
|
// deno-lint-ignore no-explicit-any
|
8222
8275
|
(expanded[0] ?? {});
|
8223
8276
|
}
|
8224
|
-
if ("@type" in values
|
8277
|
+
if ("@type" in values &&
|
8278
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
8225
8279
|
if (!values["@type"].includes("https://w3id.org/fep/9091#Export")) {
|
8226
8280
|
throw new TypeError("Invalid type: " + values["@type"]);
|
8227
8281
|
}
|
@@ -8661,7 +8715,8 @@ export class DataIntegrityProof {
|
|
8661
8715
|
// deno-lint-ignore no-explicit-any
|
8662
8716
|
(expanded[0] ?? {});
|
8663
8717
|
}
|
8664
|
-
if ("@type" in values
|
8718
|
+
if ("@type" in values &&
|
8719
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
8665
8720
|
if (!values["@type"].includes("https://w3id.org/security#DataIntegrityProof")) {
|
8666
8721
|
throw new TypeError("Invalid type: " + values["@type"]);
|
8667
8722
|
}
|
@@ -8695,7 +8750,9 @@ export class DataIntegrityProof {
|
|
8695
8750
|
continue;
|
8696
8751
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
8697
8752
|
globalThis.Object.keys(v).length === 1) {
|
8698
|
-
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(
|
8753
|
+
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
8754
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
8755
|
+
: new URL(v["@id"]));
|
8699
8756
|
continue;
|
8700
8757
|
}
|
8701
8758
|
_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.push(await Multikey.fromJsonLd(v, options));
|
@@ -9193,7 +9250,8 @@ export class CryptographicKey {
|
|
9193
9250
|
// deno-lint-ignore no-explicit-any
|
9194
9251
|
(expanded[0] ?? {});
|
9195
9252
|
}
|
9196
|
-
if ("@type" in values
|
9253
|
+
if ("@type" in values &&
|
9254
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
9197
9255
|
if (!values["@type"].includes("https://w3id.org/security#Key")) {
|
9198
9256
|
throw new TypeError("Invalid type: " + values["@type"]);
|
9199
9257
|
}
|
@@ -9211,7 +9269,9 @@ export class CryptographicKey {
|
|
9211
9269
|
continue;
|
9212
9270
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
9213
9271
|
globalThis.Object.keys(v).length === 1) {
|
9214
|
-
_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(
|
9272
|
+
_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
9273
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
9274
|
+
: new URL(v["@id"]));
|
9215
9275
|
continue;
|
9216
9276
|
}
|
9217
9277
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -9684,7 +9744,8 @@ export class Multikey {
|
|
9684
9744
|
// deno-lint-ignore no-explicit-any
|
9685
9745
|
(expanded[0] ?? {});
|
9686
9746
|
}
|
9687
|
-
if ("@type" in values
|
9747
|
+
if ("@type" in values &&
|
9748
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
9688
9749
|
if (!values["@type"].includes("https://w3id.org/security#Multikey")) {
|
9689
9750
|
throw new TypeError("Invalid type: " + values["@type"]);
|
9690
9751
|
}
|
@@ -9702,7 +9763,9 @@ export class Multikey {
|
|
9702
9763
|
continue;
|
9703
9764
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
9704
9765
|
globalThis.Object.keys(v).length === 1) {
|
9705
|
-
_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(
|
9766
|
+
_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
9767
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
9768
|
+
: new URL(v["@id"]));
|
9706
9769
|
continue;
|
9707
9770
|
}
|
9708
9771
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -9924,7 +9987,8 @@ export class Accept extends Activity {
|
|
9924
9987
|
// deno-lint-ignore no-explicit-any
|
9925
9988
|
(expanded[0] ?? {});
|
9926
9989
|
}
|
9927
|
-
if ("@type" in values
|
9990
|
+
if ("@type" in values &&
|
9991
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
9928
9992
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeAccept")) {
|
9929
9993
|
return await TentativeAccept.fromJsonLd(json, options);
|
9930
9994
|
}
|
@@ -10088,7 +10152,8 @@ export class Add extends Activity {
|
|
10088
10152
|
// deno-lint-ignore no-explicit-any
|
10089
10153
|
(expanded[0] ?? {});
|
10090
10154
|
}
|
10091
|
-
if ("@type" in values
|
10155
|
+
if ("@type" in values &&
|
10156
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
10092
10157
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Add")) {
|
10093
10158
|
throw new TypeError("Invalid type: " + values["@type"]);
|
10094
10159
|
}
|
@@ -10260,7 +10325,8 @@ export class Announce extends Activity {
|
|
10260
10325
|
// deno-lint-ignore no-explicit-any
|
10261
10326
|
(expanded[0] ?? {});
|
10262
10327
|
}
|
10263
|
-
if ("@type" in values
|
10328
|
+
if ("@type" in values &&
|
10329
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
10264
10330
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Announce")) {
|
10265
10331
|
throw new TypeError("Invalid type: " + values["@type"]);
|
10266
10332
|
}
|
@@ -12251,6 +12317,7 @@ export class Application extends Object {
|
|
12251
12317
|
"https://www.w3.org/ns/did/v1",
|
12252
12318
|
"https://w3id.org/security/multikey/v1",
|
12253
12319
|
{
|
12320
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
12254
12321
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
12255
12322
|
"toot": "http://joinmastodon.org/ns#",
|
12256
12323
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -12506,6 +12573,7 @@ export class Application extends Object {
|
|
12506
12573
|
"https://www.w3.org/ns/did/v1",
|
12507
12574
|
"https://w3id.org/security/multikey/v1",
|
12508
12575
|
{
|
12576
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
12509
12577
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
12510
12578
|
"toot": "http://joinmastodon.org/ns#",
|
12511
12579
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -12578,7 +12646,8 @@ export class Application extends Object {
|
|
12578
12646
|
// deno-lint-ignore no-explicit-any
|
12579
12647
|
(expanded[0] ?? {});
|
12580
12648
|
}
|
12581
|
-
if ("@type" in values
|
12649
|
+
if ("@type" in values &&
|
12650
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
12582
12651
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Application")) {
|
12583
12652
|
throw new TypeError("Invalid type: " + values["@type"]);
|
12584
12653
|
}
|
@@ -12628,7 +12697,9 @@ export class Application extends Object {
|
|
12628
12697
|
continue;
|
12629
12698
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12630
12699
|
globalThis.Object.keys(v).length === 1) {
|
12631
|
-
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(
|
12700
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12701
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12702
|
+
: new URL(v["@id"]));
|
12632
12703
|
continue;
|
12633
12704
|
}
|
12634
12705
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(await CryptographicKey.fromJsonLd(v, options));
|
@@ -12647,7 +12718,9 @@ export class Application extends Object {
|
|
12647
12718
|
continue;
|
12648
12719
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12649
12720
|
globalThis.Object.keys(v).length === 1) {
|
12650
|
-
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(
|
12721
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12722
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12723
|
+
: new URL(v["@id"]));
|
12651
12724
|
continue;
|
12652
12725
|
}
|
12653
12726
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(await Multikey.fromJsonLd(v, options));
|
@@ -12682,7 +12755,9 @@ export class Application extends Object {
|
|
12682
12755
|
continue;
|
12683
12756
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12684
12757
|
globalThis.Object.keys(v).length === 1) {
|
12685
|
-
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(
|
12758
|
+
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12759
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12760
|
+
: new URL(v["@id"]));
|
12686
12761
|
continue;
|
12687
12762
|
}
|
12688
12763
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -12701,7 +12776,9 @@ export class Application extends Object {
|
|
12701
12776
|
continue;
|
12702
12777
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12703
12778
|
globalThis.Object.keys(v).length === 1) {
|
12704
|
-
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(
|
12779
|
+
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12780
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12781
|
+
: new URL(v["@id"]));
|
12705
12782
|
continue;
|
12706
12783
|
}
|
12707
12784
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -12720,7 +12797,9 @@ export class Application extends Object {
|
|
12720
12797
|
continue;
|
12721
12798
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12722
12799
|
globalThis.Object.keys(v).length === 1) {
|
12723
|
-
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(
|
12800
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12801
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12802
|
+
: new URL(v["@id"]));
|
12724
12803
|
continue;
|
12725
12804
|
}
|
12726
12805
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(await Collection.fromJsonLd(v, options));
|
@@ -12739,7 +12818,9 @@ export class Application extends Object {
|
|
12739
12818
|
continue;
|
12740
12819
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12741
12820
|
globalThis.Object.keys(v).length === 1) {
|
12742
|
-
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(
|
12821
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12822
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12823
|
+
: new URL(v["@id"]));
|
12743
12824
|
continue;
|
12744
12825
|
}
|
12745
12826
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(await Collection.fromJsonLd(v, options));
|
@@ -12758,7 +12839,9 @@ export class Application extends Object {
|
|
12758
12839
|
continue;
|
12759
12840
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12760
12841
|
globalThis.Object.keys(v).length === 1) {
|
12761
|
-
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(
|
12842
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12843
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12844
|
+
: new URL(v["@id"]));
|
12762
12845
|
continue;
|
12763
12846
|
}
|
12764
12847
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(await Collection.fromJsonLd(v, options));
|
@@ -12777,7 +12860,9 @@ export class Application extends Object {
|
|
12777
12860
|
continue;
|
12778
12861
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12779
12862
|
globalThis.Object.keys(v).length === 1) {
|
12780
|
-
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(
|
12863
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12864
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12865
|
+
: new URL(v["@id"]));
|
12781
12866
|
continue;
|
12782
12867
|
}
|
12783
12868
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(await Collection.fromJsonLd(v, options));
|
@@ -12796,7 +12881,9 @@ export class Application extends Object {
|
|
12796
12881
|
continue;
|
12797
12882
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12798
12883
|
globalThis.Object.keys(v).length === 1) {
|
12799
|
-
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(
|
12884
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12885
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12886
|
+
: new URL(v["@id"]));
|
12800
12887
|
continue;
|
12801
12888
|
}
|
12802
12889
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(await Collection.fromJsonLd(v, options));
|
@@ -12815,7 +12902,9 @@ export class Application extends Object {
|
|
12815
12902
|
continue;
|
12816
12903
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12817
12904
|
globalThis.Object.keys(v).length === 1) {
|
12818
|
-
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(
|
12905
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12906
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12907
|
+
: new URL(v["@id"]));
|
12819
12908
|
continue;
|
12820
12909
|
}
|
12821
12910
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(await Collection.fromJsonLd(v, options));
|
@@ -12904,7 +12993,9 @@ export class Application extends Object {
|
|
12904
12993
|
continue;
|
12905
12994
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12906
12995
|
globalThis.Object.keys(v).length === 1) {
|
12907
|
-
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(
|
12996
|
+
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
12997
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
12998
|
+
: new URL(v["@id"]));
|
12908
12999
|
continue;
|
12909
13000
|
}
|
12910
13001
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -12946,7 +13037,9 @@ export class Application extends Object {
|
|
12946
13037
|
continue;
|
12947
13038
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
12948
13039
|
globalThis.Object.keys(v).length === 1) {
|
12949
|
-
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(
|
13040
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
13041
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
13042
|
+
: new URL(v["@id"]));
|
12950
13043
|
continue;
|
12951
13044
|
}
|
12952
13045
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(await DidService.fromJsonLd(v, options));
|
@@ -13386,7 +13479,8 @@ export class IntransitiveActivity extends Activity {
|
|
13386
13479
|
// deno-lint-ignore no-explicit-any
|
13387
13480
|
(expanded[0] ?? {});
|
13388
13481
|
}
|
13389
|
-
if ("@type" in values
|
13482
|
+
if ("@type" in values &&
|
13483
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
13390
13484
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Arrive")) {
|
13391
13485
|
return await Arrive.fromJsonLd(json, options);
|
13392
13486
|
}
|
@@ -13555,7 +13649,8 @@ export class Arrive extends IntransitiveActivity {
|
|
13555
13649
|
// deno-lint-ignore no-explicit-any
|
13556
13650
|
(expanded[0] ?? {});
|
13557
13651
|
}
|
13558
|
-
if ("@type" in values
|
13652
|
+
if ("@type" in values &&
|
13653
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
13559
13654
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Arrive")) {
|
13560
13655
|
throw new TypeError("Invalid type: " + values["@type"]);
|
13561
13656
|
}
|
@@ -13817,7 +13912,8 @@ export class Article extends Object {
|
|
13817
13912
|
// deno-lint-ignore no-explicit-any
|
13818
13913
|
(expanded[0] ?? {});
|
13819
13914
|
}
|
13820
|
-
if ("@type" in values
|
13915
|
+
if ("@type" in values &&
|
13916
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
13821
13917
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Article")) {
|
13822
13918
|
throw new TypeError("Invalid type: " + values["@type"]);
|
13823
13919
|
}
|
@@ -14137,7 +14233,8 @@ export class Document extends Object {
|
|
14137
14233
|
// deno-lint-ignore no-explicit-any
|
14138
14234
|
(expanded[0] ?? {});
|
14139
14235
|
}
|
14140
|
-
if ("@type" in values
|
14236
|
+
if ("@type" in values &&
|
14237
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
14141
14238
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Audio")) {
|
14142
14239
|
return await Audio.fromJsonLd(json, options);
|
14143
14240
|
}
|
@@ -14375,7 +14472,8 @@ export class Audio extends Document {
|
|
14375
14472
|
// deno-lint-ignore no-explicit-any
|
14376
14473
|
(expanded[0] ?? {});
|
14377
14474
|
}
|
14378
|
-
if ("@type" in values
|
14475
|
+
if ("@type" in values &&
|
14476
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
14379
14477
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Audio")) {
|
14380
14478
|
throw new TypeError("Invalid type: " + values["@type"]);
|
14381
14479
|
}
|
@@ -14534,7 +14632,8 @@ export class Ignore extends Activity {
|
|
14534
14632
|
// deno-lint-ignore no-explicit-any
|
14535
14633
|
(expanded[0] ?? {});
|
14536
14634
|
}
|
14537
|
-
if ("@type" in values
|
14635
|
+
if ("@type" in values &&
|
14636
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
14538
14637
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Block")) {
|
14539
14638
|
return await Block.fromJsonLd(json, options);
|
14540
14639
|
}
|
@@ -14698,7 +14797,8 @@ export class Block extends Ignore {
|
|
14698
14797
|
// deno-lint-ignore no-explicit-any
|
14699
14798
|
(expanded[0] ?? {});
|
14700
14799
|
}
|
14701
|
-
if ("@type" in values
|
14800
|
+
if ("@type" in values &&
|
14801
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
14702
14802
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Block")) {
|
14703
14803
|
throw new TypeError("Invalid type: " + values["@type"]);
|
14704
14804
|
}
|
@@ -15381,7 +15481,8 @@ export class Collection extends Object {
|
|
15381
15481
|
// deno-lint-ignore no-explicit-any
|
15382
15482
|
(expanded[0] ?? {});
|
15383
15483
|
}
|
15384
|
-
if ("@type" in values
|
15484
|
+
if ("@type" in values &&
|
15485
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
15385
15486
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#CollectionPage")) {
|
15386
15487
|
return await CollectionPage.fromJsonLd(json, options);
|
15387
15488
|
}
|
@@ -15430,7 +15531,9 @@ export class Collection extends Object {
|
|
15430
15531
|
continue;
|
15431
15532
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
15432
15533
|
globalThis.Object.keys(v).length === 1) {
|
15433
|
-
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(
|
15534
|
+
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
15535
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
15536
|
+
: new URL(v["@id"]));
|
15434
15537
|
continue;
|
15435
15538
|
}
|
15436
15539
|
_3UyUdxnyn6cDn53QKrh4MBiearma_current.push(await CollectionPage.fromJsonLd(v, options));
|
@@ -15449,7 +15552,9 @@ export class Collection extends Object {
|
|
15449
15552
|
continue;
|
15450
15553
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
15451
15554
|
globalThis.Object.keys(v).length === 1) {
|
15452
|
-
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(
|
15555
|
+
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
15556
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
15557
|
+
: new URL(v["@id"]));
|
15453
15558
|
continue;
|
15454
15559
|
}
|
15455
15560
|
_J52RqweMe6hhv7RnLJMC8BExTE5_first.push(await CollectionPage.fromJsonLd(v, options));
|
@@ -15468,7 +15573,9 @@ export class Collection extends Object {
|
|
15468
15573
|
continue;
|
15469
15574
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
15470
15575
|
globalThis.Object.keys(v).length === 1) {
|
15471
|
-
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(
|
15576
|
+
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
15577
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
15578
|
+
: new URL(v["@id"]));
|
15472
15579
|
continue;
|
15473
15580
|
}
|
15474
15581
|
_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.push(await CollectionPage.fromJsonLd(v, options));
|
@@ -15487,7 +15594,9 @@ export class Collection extends Object {
|
|
15487
15594
|
continue;
|
15488
15595
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
15489
15596
|
globalThis.Object.keys(v).length === 1) {
|
15490
|
-
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(
|
15597
|
+
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
15598
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
15599
|
+
: new URL(v["@id"]));
|
15491
15600
|
continue;
|
15492
15601
|
}
|
15493
15602
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -16111,7 +16220,8 @@ export class CollectionPage extends Collection {
|
|
16111
16220
|
// deno-lint-ignore no-explicit-any
|
16112
16221
|
(expanded[0] ?? {});
|
16113
16222
|
}
|
16114
|
-
if ("@type" in values
|
16223
|
+
if ("@type" in values &&
|
16224
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
16115
16225
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage")) {
|
16116
16226
|
return await OrderedCollectionPage.fromJsonLd(json, options);
|
16117
16227
|
}
|
@@ -16140,7 +16250,9 @@ export class CollectionPage extends Collection {
|
|
16140
16250
|
continue;
|
16141
16251
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
16142
16252
|
globalThis.Object.keys(v).length === 1) {
|
16143
|
-
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(
|
16253
|
+
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
16254
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
16255
|
+
: new URL(v["@id"]));
|
16144
16256
|
continue;
|
16145
16257
|
}
|
16146
16258
|
_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.push(await Collection.fromJsonLd(v, options));
|
@@ -16159,7 +16271,9 @@ export class CollectionPage extends Collection {
|
|
16159
16271
|
continue;
|
16160
16272
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
16161
16273
|
globalThis.Object.keys(v).length === 1) {
|
16162
|
-
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(
|
16274
|
+
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
16275
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
16276
|
+
: new URL(v["@id"]));
|
16163
16277
|
continue;
|
16164
16278
|
}
|
16165
16279
|
_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.push(await _c.fromJsonLd(v, options));
|
@@ -16178,7 +16292,9 @@ export class CollectionPage extends Collection {
|
|
16178
16292
|
continue;
|
16179
16293
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
16180
16294
|
globalThis.Object.keys(v).length === 1) {
|
16181
|
-
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(
|
16295
|
+
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
16296
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
16297
|
+
: new URL(v["@id"]));
|
16182
16298
|
continue;
|
16183
16299
|
}
|
16184
16300
|
_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.push(await _c.fromJsonLd(v, options));
|
@@ -16379,7 +16495,8 @@ export class Create extends Activity {
|
|
16379
16495
|
// deno-lint-ignore no-explicit-any
|
16380
16496
|
(expanded[0] ?? {});
|
16381
16497
|
}
|
16382
|
-
if ("@type" in values
|
16498
|
+
if ("@type" in values &&
|
16499
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
16383
16500
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Create")) {
|
16384
16501
|
throw new TypeError("Invalid type: " + values["@type"]);
|
16385
16502
|
}
|
@@ -16551,7 +16668,8 @@ export class Delete extends Activity {
|
|
16551
16668
|
// deno-lint-ignore no-explicit-any
|
16552
16669
|
(expanded[0] ?? {});
|
16553
16670
|
}
|
16554
|
-
if ("@type" in values
|
16671
|
+
if ("@type" in values &&
|
16672
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
16555
16673
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Delete")) {
|
16556
16674
|
throw new TypeError("Invalid type: " + values["@type"]);
|
16557
16675
|
}
|
@@ -16710,7 +16828,8 @@ export class Dislike extends Activity {
|
|
16710
16828
|
// deno-lint-ignore no-explicit-any
|
16711
16829
|
(expanded[0] ?? {});
|
16712
16830
|
}
|
16713
|
-
if ("@type" in values
|
16831
|
+
if ("@type" in values &&
|
16832
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
16714
16833
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Dislike")) {
|
16715
16834
|
throw new TypeError("Invalid type: " + values["@type"]);
|
16716
16835
|
}
|
@@ -17216,7 +17335,8 @@ export class Endpoints {
|
|
17216
17335
|
// deno-lint-ignore no-explicit-any
|
17217
17336
|
(expanded[0] ?? {});
|
17218
17337
|
}
|
17219
|
-
if ("@type" in values
|
17338
|
+
if ("@type" in values &&
|
17339
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
17220
17340
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Endpoints")) {
|
17221
17341
|
throw new TypeError("Invalid type: " + values["@type"]);
|
17222
17342
|
}
|
@@ -17549,7 +17669,8 @@ export class Event extends Object {
|
|
17549
17669
|
// deno-lint-ignore no-explicit-any
|
17550
17670
|
(expanded[0] ?? {});
|
17551
17671
|
}
|
17552
|
-
if ("@type" in values
|
17672
|
+
if ("@type" in values &&
|
17673
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
17553
17674
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Event")) {
|
17554
17675
|
throw new TypeError("Invalid type: " + values["@type"]);
|
17555
17676
|
}
|
@@ -17709,7 +17830,8 @@ export class Flag extends Activity {
|
|
17709
17830
|
// deno-lint-ignore no-explicit-any
|
17710
17831
|
(expanded[0] ?? {});
|
17711
17832
|
}
|
17712
|
-
if ("@type" in values
|
17833
|
+
if ("@type" in values &&
|
17834
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
17713
17835
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Flag")) {
|
17714
17836
|
throw new TypeError("Invalid type: " + values["@type"]);
|
17715
17837
|
}
|
@@ -17870,7 +17992,8 @@ export class Follow extends Activity {
|
|
17870
17992
|
// deno-lint-ignore no-explicit-any
|
17871
17993
|
(expanded[0] ?? {});
|
17872
17994
|
}
|
17873
|
-
if ("@type" in values
|
17995
|
+
if ("@type" in values &&
|
17996
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
17874
17997
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Follow")) {
|
17875
17998
|
throw new TypeError("Invalid type: " + values["@type"]);
|
17876
17999
|
}
|
@@ -19861,6 +19984,7 @@ export class Group extends Object {
|
|
19861
19984
|
"https://www.w3.org/ns/did/v1",
|
19862
19985
|
"https://w3id.org/security/multikey/v1",
|
19863
19986
|
{
|
19987
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
19864
19988
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
19865
19989
|
"toot": "http://joinmastodon.org/ns#",
|
19866
19990
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -20116,6 +20240,7 @@ export class Group extends Object {
|
|
20116
20240
|
"https://www.w3.org/ns/did/v1",
|
20117
20241
|
"https://w3id.org/security/multikey/v1",
|
20118
20242
|
{
|
20243
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
20119
20244
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
20120
20245
|
"toot": "http://joinmastodon.org/ns#",
|
20121
20246
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -20188,7 +20313,8 @@ export class Group extends Object {
|
|
20188
20313
|
// deno-lint-ignore no-explicit-any
|
20189
20314
|
(expanded[0] ?? {});
|
20190
20315
|
}
|
20191
|
-
if ("@type" in values
|
20316
|
+
if ("@type" in values &&
|
20317
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
20192
20318
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Group")) {
|
20193
20319
|
throw new TypeError("Invalid type: " + values["@type"]);
|
20194
20320
|
}
|
@@ -20238,7 +20364,9 @@ export class Group extends Object {
|
|
20238
20364
|
continue;
|
20239
20365
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20240
20366
|
globalThis.Object.keys(v).length === 1) {
|
20241
|
-
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(
|
20367
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20368
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20369
|
+
: new URL(v["@id"]));
|
20242
20370
|
continue;
|
20243
20371
|
}
|
20244
20372
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(await CryptographicKey.fromJsonLd(v, options));
|
@@ -20257,7 +20385,9 @@ export class Group extends Object {
|
|
20257
20385
|
continue;
|
20258
20386
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20259
20387
|
globalThis.Object.keys(v).length === 1) {
|
20260
|
-
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(
|
20388
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20389
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20390
|
+
: new URL(v["@id"]));
|
20261
20391
|
continue;
|
20262
20392
|
}
|
20263
20393
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(await Multikey.fromJsonLd(v, options));
|
@@ -20292,7 +20422,9 @@ export class Group extends Object {
|
|
20292
20422
|
continue;
|
20293
20423
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20294
20424
|
globalThis.Object.keys(v).length === 1) {
|
20295
|
-
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(
|
20425
|
+
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20426
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20427
|
+
: new URL(v["@id"]));
|
20296
20428
|
continue;
|
20297
20429
|
}
|
20298
20430
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -20311,7 +20443,9 @@ export class Group extends Object {
|
|
20311
20443
|
continue;
|
20312
20444
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20313
20445
|
globalThis.Object.keys(v).length === 1) {
|
20314
|
-
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(
|
20446
|
+
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20447
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20448
|
+
: new URL(v["@id"]));
|
20315
20449
|
continue;
|
20316
20450
|
}
|
20317
20451
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -20330,7 +20464,9 @@ export class Group extends Object {
|
|
20330
20464
|
continue;
|
20331
20465
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20332
20466
|
globalThis.Object.keys(v).length === 1) {
|
20333
|
-
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(
|
20467
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20468
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20469
|
+
: new URL(v["@id"]));
|
20334
20470
|
continue;
|
20335
20471
|
}
|
20336
20472
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(await Collection.fromJsonLd(v, options));
|
@@ -20349,7 +20485,9 @@ export class Group extends Object {
|
|
20349
20485
|
continue;
|
20350
20486
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20351
20487
|
globalThis.Object.keys(v).length === 1) {
|
20352
|
-
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(
|
20488
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20489
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20490
|
+
: new URL(v["@id"]));
|
20353
20491
|
continue;
|
20354
20492
|
}
|
20355
20493
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(await Collection.fromJsonLd(v, options));
|
@@ -20368,7 +20506,9 @@ export class Group extends Object {
|
|
20368
20506
|
continue;
|
20369
20507
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20370
20508
|
globalThis.Object.keys(v).length === 1) {
|
20371
|
-
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(
|
20509
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20510
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20511
|
+
: new URL(v["@id"]));
|
20372
20512
|
continue;
|
20373
20513
|
}
|
20374
20514
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(await Collection.fromJsonLd(v, options));
|
@@ -20387,7 +20527,9 @@ export class Group extends Object {
|
|
20387
20527
|
continue;
|
20388
20528
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20389
20529
|
globalThis.Object.keys(v).length === 1) {
|
20390
|
-
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(
|
20530
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20531
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20532
|
+
: new URL(v["@id"]));
|
20391
20533
|
continue;
|
20392
20534
|
}
|
20393
20535
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(await Collection.fromJsonLd(v, options));
|
@@ -20406,7 +20548,9 @@ export class Group extends Object {
|
|
20406
20548
|
continue;
|
20407
20549
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20408
20550
|
globalThis.Object.keys(v).length === 1) {
|
20409
|
-
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(
|
20551
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20552
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20553
|
+
: new URL(v["@id"]));
|
20410
20554
|
continue;
|
20411
20555
|
}
|
20412
20556
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(await Collection.fromJsonLd(v, options));
|
@@ -20425,7 +20569,9 @@ export class Group extends Object {
|
|
20425
20569
|
continue;
|
20426
20570
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20427
20571
|
globalThis.Object.keys(v).length === 1) {
|
20428
|
-
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(
|
20572
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20573
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20574
|
+
: new URL(v["@id"]));
|
20429
20575
|
continue;
|
20430
20576
|
}
|
20431
20577
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(await Collection.fromJsonLd(v, options));
|
@@ -20514,7 +20660,9 @@ export class Group extends Object {
|
|
20514
20660
|
continue;
|
20515
20661
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20516
20662
|
globalThis.Object.keys(v).length === 1) {
|
20517
|
-
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(
|
20663
|
+
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20664
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20665
|
+
: new URL(v["@id"]));
|
20518
20666
|
continue;
|
20519
20667
|
}
|
20520
20668
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -20556,7 +20704,9 @@ export class Group extends Object {
|
|
20556
20704
|
continue;
|
20557
20705
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
20558
20706
|
globalThis.Object.keys(v).length === 1) {
|
20559
|
-
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(
|
20707
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
20708
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
20709
|
+
: new URL(v["@id"]));
|
20560
20710
|
continue;
|
20561
20711
|
}
|
20562
20712
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(await DidService.fromJsonLd(v, options));
|
@@ -21582,7 +21732,8 @@ export class Link {
|
|
21582
21732
|
// deno-lint-ignore no-explicit-any
|
21583
21733
|
(expanded[0] ?? {});
|
21584
21734
|
}
|
21585
|
-
if ("@type" in values
|
21735
|
+
if ("@type" in values &&
|
21736
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
21586
21737
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Hashtag")) {
|
21587
21738
|
return await Hashtag.fromJsonLd(json, options);
|
21588
21739
|
}
|
@@ -21714,7 +21865,9 @@ export class Link {
|
|
21714
21865
|
continue;
|
21715
21866
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
21716
21867
|
globalThis.Object.keys(v).length === 1) {
|
21717
|
-
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(
|
21868
|
+
_gCVTegXxWWCw6wWRxa1QF65zusg_preview.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
21869
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
21870
|
+
: new URL(v["@id"]));
|
21718
21871
|
continue;
|
21719
21872
|
}
|
21720
21873
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -22054,7 +22207,8 @@ export class Hashtag extends Link {
|
|
22054
22207
|
// deno-lint-ignore no-explicit-any
|
22055
22208
|
(expanded[0] ?? {});
|
22056
22209
|
}
|
22057
|
-
if ("@type" in values
|
22210
|
+
if ("@type" in values &&
|
22211
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
22058
22212
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Hashtag")) {
|
22059
22213
|
throw new TypeError("Invalid type: " + values["@type"]);
|
22060
22214
|
}
|
@@ -22222,7 +22376,8 @@ export class Image extends Document {
|
|
22222
22376
|
// deno-lint-ignore no-explicit-any
|
22223
22377
|
(expanded[0] ?? {});
|
22224
22378
|
}
|
22225
|
-
if ("@type" in values
|
22379
|
+
if ("@type" in values &&
|
22380
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
22226
22381
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Image")) {
|
22227
22382
|
throw new TypeError("Invalid type: " + values["@type"]);
|
22228
22383
|
}
|
@@ -22382,7 +22537,8 @@ export class Offer extends Activity {
|
|
22382
22537
|
// deno-lint-ignore no-explicit-any
|
22383
22538
|
(expanded[0] ?? {});
|
22384
22539
|
}
|
22385
|
-
if ("@type" in values
|
22540
|
+
if ("@type" in values &&
|
22541
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
22386
22542
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#Invite")) {
|
22387
22543
|
return await Invite.fromJsonLd(json, options);
|
22388
22544
|
}
|
@@ -22544,7 +22700,8 @@ export class Invite extends Offer {
|
|
22544
22700
|
// deno-lint-ignore no-explicit-any
|
22545
22701
|
(expanded[0] ?? {});
|
22546
22702
|
}
|
22547
|
-
if ("@type" in values
|
22703
|
+
if ("@type" in values &&
|
22704
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
22548
22705
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Invite")) {
|
22549
22706
|
throw new TypeError("Invalid type: " + values["@type"]);
|
22550
22707
|
}
|
@@ -22703,7 +22860,8 @@ export class Join extends Activity {
|
|
22703
22860
|
// deno-lint-ignore no-explicit-any
|
22704
22861
|
(expanded[0] ?? {});
|
22705
22862
|
}
|
22706
|
-
if ("@type" in values
|
22863
|
+
if ("@type" in values &&
|
22864
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
22707
22865
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Join")) {
|
22708
22866
|
throw new TypeError("Invalid type: " + values["@type"]);
|
22709
22867
|
}
|
@@ -22862,7 +23020,8 @@ export class Leave extends Activity {
|
|
22862
23020
|
// deno-lint-ignore no-explicit-any
|
22863
23021
|
(expanded[0] ?? {});
|
22864
23022
|
}
|
22865
|
-
if ("@type" in values
|
23023
|
+
if ("@type" in values &&
|
23024
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
22866
23025
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Leave")) {
|
22867
23026
|
throw new TypeError("Invalid type: " + values["@type"]);
|
22868
23027
|
}
|
@@ -23022,7 +23181,8 @@ export class Like extends Activity {
|
|
23022
23181
|
// deno-lint-ignore no-explicit-any
|
23023
23182
|
(expanded[0] ?? {});
|
23024
23183
|
}
|
23025
|
-
if ("@type" in values
|
23184
|
+
if ("@type" in values &&
|
23185
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
23026
23186
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Like")) {
|
23027
23187
|
throw new TypeError("Invalid type: " + values["@type"]);
|
23028
23188
|
}
|
@@ -23180,7 +23340,8 @@ export class Listen extends Activity {
|
|
23180
23340
|
// deno-lint-ignore no-explicit-any
|
23181
23341
|
(expanded[0] ?? {});
|
23182
23342
|
}
|
23183
|
-
if ("@type" in values
|
23343
|
+
if ("@type" in values &&
|
23344
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
23184
23345
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Listen")) {
|
23185
23346
|
throw new TypeError("Invalid type: " + values["@type"]);
|
23186
23347
|
}
|
@@ -23337,7 +23498,8 @@ export class Mention extends Link {
|
|
23337
23498
|
// deno-lint-ignore no-explicit-any
|
23338
23499
|
(expanded[0] ?? {});
|
23339
23500
|
}
|
23340
|
-
if ("@type" in values
|
23501
|
+
if ("@type" in values &&
|
23502
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
23341
23503
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Mention")) {
|
23342
23504
|
throw new TypeError("Invalid type: " + values["@type"]);
|
23343
23505
|
}
|
@@ -23497,7 +23659,8 @@ export class Move extends Activity {
|
|
23497
23659
|
// deno-lint-ignore no-explicit-any
|
23498
23660
|
(expanded[0] ?? {});
|
23499
23661
|
}
|
23500
|
-
if ("@type" in values
|
23662
|
+
if ("@type" in values &&
|
23663
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
23501
23664
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Move")) {
|
23502
23665
|
throw new TypeError("Invalid type: " + values["@type"]);
|
23503
23666
|
}
|
@@ -23760,7 +23923,8 @@ export class Note extends Object {
|
|
23760
23923
|
// deno-lint-ignore no-explicit-any
|
23761
23924
|
(expanded[0] ?? {});
|
23762
23925
|
}
|
23763
|
-
if ("@type" in values
|
23926
|
+
if ("@type" in values &&
|
23927
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
23764
23928
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Note")) {
|
23765
23929
|
throw new TypeError("Invalid type: " + values["@type"]);
|
23766
23930
|
}
|
@@ -24107,7 +24271,8 @@ export class OrderedCollection extends Collection {
|
|
24107
24271
|
// deno-lint-ignore no-explicit-any
|
24108
24272
|
(expanded[0] ?? {});
|
24109
24273
|
}
|
24110
|
-
if ("@type" in values
|
24274
|
+
if ("@type" in values &&
|
24275
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
24111
24276
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollection")) {
|
24112
24277
|
throw new TypeError("Invalid type: " + values["@type"]);
|
24113
24278
|
}
|
@@ -24133,7 +24298,9 @@ export class OrderedCollection extends Collection {
|
|
24133
24298
|
continue;
|
24134
24299
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
24135
24300
|
globalThis.Object.keys(v).length === 1) {
|
24136
|
-
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(
|
24301
|
+
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
24302
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
24303
|
+
: new URL(v["@id"]));
|
24137
24304
|
continue;
|
24138
24305
|
}
|
24139
24306
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -24578,7 +24745,8 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
24578
24745
|
// deno-lint-ignore no-explicit-any
|
24579
24746
|
(expanded[0] ?? {});
|
24580
24747
|
}
|
24581
|
-
if ("@type" in values
|
24748
|
+
if ("@type" in values &&
|
24749
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
24582
24750
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#OrderedCollectionPage")) {
|
24583
24751
|
throw new TypeError("Invalid type: " + values["@type"]);
|
24584
24752
|
}
|
@@ -24604,7 +24772,9 @@ export class OrderedCollectionPage extends CollectionPage {
|
|
24604
24772
|
continue;
|
24605
24773
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
24606
24774
|
globalThis.Object.keys(v).length === 1) {
|
24607
|
-
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(
|
24775
|
+
_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
24776
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
24777
|
+
: new URL(v["@id"]));
|
24608
24778
|
continue;
|
24609
24779
|
}
|
24610
24780
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -26699,6 +26869,7 @@ export class Organization extends Object {
|
|
26699
26869
|
"https://www.w3.org/ns/did/v1",
|
26700
26870
|
"https://w3id.org/security/multikey/v1",
|
26701
26871
|
{
|
26872
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
26702
26873
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
26703
26874
|
"toot": "http://joinmastodon.org/ns#",
|
26704
26875
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -26954,6 +27125,7 @@ export class Organization extends Object {
|
|
26954
27125
|
"https://www.w3.org/ns/did/v1",
|
26955
27126
|
"https://w3id.org/security/multikey/v1",
|
26956
27127
|
{
|
27128
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
26957
27129
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
26958
27130
|
"toot": "http://joinmastodon.org/ns#",
|
26959
27131
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -27026,7 +27198,8 @@ export class Organization extends Object {
|
|
27026
27198
|
// deno-lint-ignore no-explicit-any
|
27027
27199
|
(expanded[0] ?? {});
|
27028
27200
|
}
|
27029
|
-
if ("@type" in values
|
27201
|
+
if ("@type" in values &&
|
27202
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
27030
27203
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Organization")) {
|
27031
27204
|
throw new TypeError("Invalid type: " + values["@type"]);
|
27032
27205
|
}
|
@@ -27076,7 +27249,9 @@ export class Organization extends Object {
|
|
27076
27249
|
continue;
|
27077
27250
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27078
27251
|
globalThis.Object.keys(v).length === 1) {
|
27079
|
-
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(
|
27252
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27253
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27254
|
+
: new URL(v["@id"]));
|
27080
27255
|
continue;
|
27081
27256
|
}
|
27082
27257
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(await CryptographicKey.fromJsonLd(v, options));
|
@@ -27095,7 +27270,9 @@ export class Organization extends Object {
|
|
27095
27270
|
continue;
|
27096
27271
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27097
27272
|
globalThis.Object.keys(v).length === 1) {
|
27098
|
-
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(
|
27273
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27274
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27275
|
+
: new URL(v["@id"]));
|
27099
27276
|
continue;
|
27100
27277
|
}
|
27101
27278
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(await Multikey.fromJsonLd(v, options));
|
@@ -27130,7 +27307,9 @@ export class Organization extends Object {
|
|
27130
27307
|
continue;
|
27131
27308
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27132
27309
|
globalThis.Object.keys(v).length === 1) {
|
27133
|
-
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(
|
27310
|
+
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27311
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27312
|
+
: new URL(v["@id"]));
|
27134
27313
|
continue;
|
27135
27314
|
}
|
27136
27315
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -27149,7 +27328,9 @@ export class Organization extends Object {
|
|
27149
27328
|
continue;
|
27150
27329
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27151
27330
|
globalThis.Object.keys(v).length === 1) {
|
27152
|
-
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(
|
27331
|
+
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27332
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27333
|
+
: new URL(v["@id"]));
|
27153
27334
|
continue;
|
27154
27335
|
}
|
27155
27336
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -27168,7 +27349,9 @@ export class Organization extends Object {
|
|
27168
27349
|
continue;
|
27169
27350
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27170
27351
|
globalThis.Object.keys(v).length === 1) {
|
27171
|
-
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(
|
27352
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27353
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27354
|
+
: new URL(v["@id"]));
|
27172
27355
|
continue;
|
27173
27356
|
}
|
27174
27357
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(await Collection.fromJsonLd(v, options));
|
@@ -27187,7 +27370,9 @@ export class Organization extends Object {
|
|
27187
27370
|
continue;
|
27188
27371
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27189
27372
|
globalThis.Object.keys(v).length === 1) {
|
27190
|
-
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(
|
27373
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27374
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27375
|
+
: new URL(v["@id"]));
|
27191
27376
|
continue;
|
27192
27377
|
}
|
27193
27378
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(await Collection.fromJsonLd(v, options));
|
@@ -27206,7 +27391,9 @@ export class Organization extends Object {
|
|
27206
27391
|
continue;
|
27207
27392
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27208
27393
|
globalThis.Object.keys(v).length === 1) {
|
27209
|
-
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(
|
27394
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27395
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27396
|
+
: new URL(v["@id"]));
|
27210
27397
|
continue;
|
27211
27398
|
}
|
27212
27399
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(await Collection.fromJsonLd(v, options));
|
@@ -27225,7 +27412,9 @@ export class Organization extends Object {
|
|
27225
27412
|
continue;
|
27226
27413
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27227
27414
|
globalThis.Object.keys(v).length === 1) {
|
27228
|
-
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(
|
27415
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27416
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27417
|
+
: new URL(v["@id"]));
|
27229
27418
|
continue;
|
27230
27419
|
}
|
27231
27420
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(await Collection.fromJsonLd(v, options));
|
@@ -27244,7 +27433,9 @@ export class Organization extends Object {
|
|
27244
27433
|
continue;
|
27245
27434
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27246
27435
|
globalThis.Object.keys(v).length === 1) {
|
27247
|
-
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(
|
27436
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27437
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27438
|
+
: new URL(v["@id"]));
|
27248
27439
|
continue;
|
27249
27440
|
}
|
27250
27441
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(await Collection.fromJsonLd(v, options));
|
@@ -27263,7 +27454,9 @@ export class Organization extends Object {
|
|
27263
27454
|
continue;
|
27264
27455
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27265
27456
|
globalThis.Object.keys(v).length === 1) {
|
27266
|
-
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(
|
27457
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27458
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27459
|
+
: new URL(v["@id"]));
|
27267
27460
|
continue;
|
27268
27461
|
}
|
27269
27462
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(await Collection.fromJsonLd(v, options));
|
@@ -27352,7 +27545,9 @@ export class Organization extends Object {
|
|
27352
27545
|
continue;
|
27353
27546
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27354
27547
|
globalThis.Object.keys(v).length === 1) {
|
27355
|
-
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(
|
27548
|
+
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27549
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27550
|
+
: new URL(v["@id"]));
|
27356
27551
|
continue;
|
27357
27552
|
}
|
27358
27553
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -27394,7 +27589,9 @@ export class Organization extends Object {
|
|
27394
27589
|
continue;
|
27395
27590
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
27396
27591
|
globalThis.Object.keys(v).length === 1) {
|
27397
|
-
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(
|
27592
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
27593
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
27594
|
+
: new URL(v["@id"]));
|
27398
27595
|
continue;
|
27399
27596
|
}
|
27400
27597
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(await DidService.fromJsonLd(v, options));
|
@@ -27846,7 +28043,8 @@ export class Page extends Document {
|
|
27846
28043
|
// deno-lint-ignore no-explicit-any
|
27847
28044
|
(expanded[0] ?? {});
|
27848
28045
|
}
|
27849
|
-
if ("@type" in values
|
28046
|
+
if ("@type" in values &&
|
28047
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
27850
28048
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Page")) {
|
27851
28049
|
throw new TypeError("Invalid type: " + values["@type"]);
|
27852
28050
|
}
|
@@ -29837,6 +30035,7 @@ export class Person extends Object {
|
|
29837
30035
|
"https://www.w3.org/ns/did/v1",
|
29838
30036
|
"https://w3id.org/security/multikey/v1",
|
29839
30037
|
{
|
30038
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
29840
30039
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
29841
30040
|
"toot": "http://joinmastodon.org/ns#",
|
29842
30041
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -30092,6 +30291,7 @@ export class Person extends Object {
|
|
30092
30291
|
"https://www.w3.org/ns/did/v1",
|
30093
30292
|
"https://w3id.org/security/multikey/v1",
|
30094
30293
|
{
|
30294
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
30095
30295
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
30096
30296
|
"toot": "http://joinmastodon.org/ns#",
|
30097
30297
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -30164,7 +30364,8 @@ export class Person extends Object {
|
|
30164
30364
|
// deno-lint-ignore no-explicit-any
|
30165
30365
|
(expanded[0] ?? {});
|
30166
30366
|
}
|
30167
|
-
if ("@type" in values
|
30367
|
+
if ("@type" in values &&
|
30368
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
30168
30369
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Person")) {
|
30169
30370
|
throw new TypeError("Invalid type: " + values["@type"]);
|
30170
30371
|
}
|
@@ -30214,7 +30415,9 @@ export class Person extends Object {
|
|
30214
30415
|
continue;
|
30215
30416
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30216
30417
|
globalThis.Object.keys(v).length === 1) {
|
30217
|
-
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(
|
30418
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30419
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30420
|
+
: new URL(v["@id"]));
|
30218
30421
|
continue;
|
30219
30422
|
}
|
30220
30423
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(await CryptographicKey.fromJsonLd(v, options));
|
@@ -30233,7 +30436,9 @@ export class Person extends Object {
|
|
30233
30436
|
continue;
|
30234
30437
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30235
30438
|
globalThis.Object.keys(v).length === 1) {
|
30236
|
-
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(
|
30439
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30440
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30441
|
+
: new URL(v["@id"]));
|
30237
30442
|
continue;
|
30238
30443
|
}
|
30239
30444
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(await Multikey.fromJsonLd(v, options));
|
@@ -30268,7 +30473,9 @@ export class Person extends Object {
|
|
30268
30473
|
continue;
|
30269
30474
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30270
30475
|
globalThis.Object.keys(v).length === 1) {
|
30271
|
-
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(
|
30476
|
+
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30477
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30478
|
+
: new URL(v["@id"]));
|
30272
30479
|
continue;
|
30273
30480
|
}
|
30274
30481
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -30287,7 +30494,9 @@ export class Person extends Object {
|
|
30287
30494
|
continue;
|
30288
30495
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30289
30496
|
globalThis.Object.keys(v).length === 1) {
|
30290
|
-
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(
|
30497
|
+
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30498
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30499
|
+
: new URL(v["@id"]));
|
30291
30500
|
continue;
|
30292
30501
|
}
|
30293
30502
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -30306,7 +30515,9 @@ export class Person extends Object {
|
|
30306
30515
|
continue;
|
30307
30516
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30308
30517
|
globalThis.Object.keys(v).length === 1) {
|
30309
|
-
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(
|
30518
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30519
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30520
|
+
: new URL(v["@id"]));
|
30310
30521
|
continue;
|
30311
30522
|
}
|
30312
30523
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(await Collection.fromJsonLd(v, options));
|
@@ -30325,7 +30536,9 @@ export class Person extends Object {
|
|
30325
30536
|
continue;
|
30326
30537
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30327
30538
|
globalThis.Object.keys(v).length === 1) {
|
30328
|
-
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(
|
30539
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30540
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30541
|
+
: new URL(v["@id"]));
|
30329
30542
|
continue;
|
30330
30543
|
}
|
30331
30544
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(await Collection.fromJsonLd(v, options));
|
@@ -30344,7 +30557,9 @@ export class Person extends Object {
|
|
30344
30557
|
continue;
|
30345
30558
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30346
30559
|
globalThis.Object.keys(v).length === 1) {
|
30347
|
-
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(
|
30560
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30561
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30562
|
+
: new URL(v["@id"]));
|
30348
30563
|
continue;
|
30349
30564
|
}
|
30350
30565
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(await Collection.fromJsonLd(v, options));
|
@@ -30363,7 +30578,9 @@ export class Person extends Object {
|
|
30363
30578
|
continue;
|
30364
30579
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30365
30580
|
globalThis.Object.keys(v).length === 1) {
|
30366
|
-
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(
|
30581
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30582
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30583
|
+
: new URL(v["@id"]));
|
30367
30584
|
continue;
|
30368
30585
|
}
|
30369
30586
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(await Collection.fromJsonLd(v, options));
|
@@ -30382,7 +30599,9 @@ export class Person extends Object {
|
|
30382
30599
|
continue;
|
30383
30600
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30384
30601
|
globalThis.Object.keys(v).length === 1) {
|
30385
|
-
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(
|
30602
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30603
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30604
|
+
: new URL(v["@id"]));
|
30386
30605
|
continue;
|
30387
30606
|
}
|
30388
30607
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(await Collection.fromJsonLd(v, options));
|
@@ -30401,7 +30620,9 @@ export class Person extends Object {
|
|
30401
30620
|
continue;
|
30402
30621
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30403
30622
|
globalThis.Object.keys(v).length === 1) {
|
30404
|
-
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(
|
30623
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30624
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30625
|
+
: new URL(v["@id"]));
|
30405
30626
|
continue;
|
30406
30627
|
}
|
30407
30628
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(await Collection.fromJsonLd(v, options));
|
@@ -30490,7 +30711,9 @@ export class Person extends Object {
|
|
30490
30711
|
continue;
|
30491
30712
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30492
30713
|
globalThis.Object.keys(v).length === 1) {
|
30493
|
-
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(
|
30714
|
+
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30715
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30716
|
+
: new URL(v["@id"]));
|
30494
30717
|
continue;
|
30495
30718
|
}
|
30496
30719
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -30532,7 +30755,9 @@ export class Person extends Object {
|
|
30532
30755
|
continue;
|
30533
30756
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
30534
30757
|
globalThis.Object.keys(v).length === 1) {
|
30535
|
-
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(
|
30758
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
30759
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
30760
|
+
: new URL(v["@id"]));
|
30536
30761
|
continue;
|
30537
30762
|
}
|
30538
30763
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(await DidService.fromJsonLd(v, options));
|
@@ -31315,7 +31540,8 @@ export class Place extends Object {
|
|
31315
31540
|
// deno-lint-ignore no-explicit-any
|
31316
31541
|
(expanded[0] ?? {});
|
31317
31542
|
}
|
31318
|
-
if ("@type" in values
|
31543
|
+
if ("@type" in values &&
|
31544
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
31319
31545
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Place")) {
|
31320
31546
|
throw new TypeError("Invalid type: " + values["@type"]);
|
31321
31547
|
}
|
@@ -31765,7 +31991,8 @@ export class Profile extends Object {
|
|
31765
31991
|
// deno-lint-ignore no-explicit-any
|
31766
31992
|
(expanded[0] ?? {});
|
31767
31993
|
}
|
31768
|
-
if ("@type" in values
|
31994
|
+
if ("@type" in values &&
|
31995
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
31769
31996
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Profile")) {
|
31770
31997
|
throw new TypeError("Invalid type: " + values["@type"]);
|
31771
31998
|
}
|
@@ -31791,7 +32018,9 @@ export class Profile extends Object {
|
|
31791
32018
|
continue;
|
31792
32019
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
31793
32020
|
globalThis.Object.keys(v).length === 1) {
|
31794
|
-
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(
|
32021
|
+
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
32022
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
32023
|
+
: new URL(v["@id"]));
|
31795
32024
|
continue;
|
31796
32025
|
}
|
31797
32026
|
_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.push(await Object.fromJsonLd(v, options));
|
@@ -32295,7 +32524,8 @@ export class Question extends IntransitiveActivity {
|
|
32295
32524
|
// deno-lint-ignore no-explicit-any
|
32296
32525
|
(expanded[0] ?? {});
|
32297
32526
|
}
|
32298
|
-
if ("@type" in values
|
32527
|
+
if ("@type" in values &&
|
32528
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
32299
32529
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Question")) {
|
32300
32530
|
throw new TypeError("Invalid type: " + values["@type"]);
|
32301
32531
|
}
|
@@ -32321,7 +32551,9 @@ export class Question extends IntransitiveActivity {
|
|
32321
32551
|
continue;
|
32322
32552
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
32323
32553
|
globalThis.Object.keys(v).length === 1) {
|
32324
|
-
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(
|
32554
|
+
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
32555
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
32556
|
+
: new URL(v["@id"]));
|
32325
32557
|
continue;
|
32326
32558
|
}
|
32327
32559
|
_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.push(await Object.fromJsonLd(v, options));
|
@@ -32340,7 +32572,9 @@ export class Question extends IntransitiveActivity {
|
|
32340
32572
|
continue;
|
32341
32573
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
32342
32574
|
globalThis.Object.keys(v).length === 1) {
|
32343
|
-
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(
|
32575
|
+
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
32576
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
32577
|
+
: new URL(v["@id"]));
|
32344
32578
|
continue;
|
32345
32579
|
}
|
32346
32580
|
_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.push(await Object.fromJsonLd(v, options));
|
@@ -32617,7 +32851,8 @@ export class Read extends Activity {
|
|
32617
32851
|
// deno-lint-ignore no-explicit-any
|
32618
32852
|
(expanded[0] ?? {});
|
32619
32853
|
}
|
32620
|
-
if ("@type" in values
|
32854
|
+
if ("@type" in values &&
|
32855
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
32621
32856
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Read")) {
|
32622
32857
|
throw new TypeError("Invalid type: " + values["@type"]);
|
32623
32858
|
}
|
@@ -32776,7 +33011,8 @@ export class Reject extends Activity {
|
|
32776
33011
|
// deno-lint-ignore no-explicit-any
|
32777
33012
|
(expanded[0] ?? {});
|
32778
33013
|
}
|
32779
|
-
if ("@type" in values
|
33014
|
+
if ("@type" in values &&
|
33015
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
32780
33016
|
if (values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeReject")) {
|
32781
33017
|
return await TentativeReject.fromJsonLd(json, options);
|
32782
33018
|
}
|
@@ -33398,7 +33634,8 @@ export class Relationship extends Object {
|
|
33398
33634
|
// deno-lint-ignore no-explicit-any
|
33399
33635
|
(expanded[0] ?? {});
|
33400
33636
|
}
|
33401
|
-
if ("@type" in values
|
33637
|
+
if ("@type" in values &&
|
33638
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
33402
33639
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Relationship")) {
|
33403
33640
|
throw new TypeError("Invalid type: " + values["@type"]);
|
33404
33641
|
}
|
@@ -33424,7 +33661,9 @@ export class Relationship extends Object {
|
|
33424
33661
|
continue;
|
33425
33662
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
33426
33663
|
globalThis.Object.keys(v).length === 1) {
|
33427
|
-
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(
|
33664
|
+
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
33665
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
33666
|
+
: new URL(v["@id"]));
|
33428
33667
|
continue;
|
33429
33668
|
}
|
33430
33669
|
_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.push(await Object.fromJsonLd(v, options));
|
@@ -33443,7 +33682,9 @@ export class Relationship extends Object {
|
|
33443
33682
|
continue;
|
33444
33683
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
33445
33684
|
globalThis.Object.keys(v).length === 1) {
|
33446
|
-
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(
|
33685
|
+
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
33686
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
33687
|
+
: new URL(v["@id"]));
|
33447
33688
|
continue;
|
33448
33689
|
}
|
33449
33690
|
_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.push(await Object.fromJsonLd(v, options));
|
@@ -33462,7 +33703,9 @@ export class Relationship extends Object {
|
|
33462
33703
|
continue;
|
33463
33704
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
33464
33705
|
globalThis.Object.keys(v).length === 1) {
|
33465
|
-
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(
|
33706
|
+
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
33707
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
33708
|
+
: new URL(v["@id"]));
|
33466
33709
|
continue;
|
33467
33710
|
}
|
33468
33711
|
_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.push(await Object.fromJsonLd(v, options));
|
@@ -33660,7 +33903,8 @@ export class Remove extends Activity {
|
|
33660
33903
|
// deno-lint-ignore no-explicit-any
|
33661
33904
|
(expanded[0] ?? {});
|
33662
33905
|
}
|
33663
|
-
if ("@type" in values
|
33906
|
+
if ("@type" in values &&
|
33907
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
33664
33908
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Remove")) {
|
33665
33909
|
throw new TypeError("Invalid type: " + values["@type"]);
|
33666
33910
|
}
|
@@ -35651,6 +35895,7 @@ export class Service extends Object {
|
|
35651
35895
|
"https://www.w3.org/ns/did/v1",
|
35652
35896
|
"https://w3id.org/security/multikey/v1",
|
35653
35897
|
{
|
35898
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
35654
35899
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
35655
35900
|
"toot": "http://joinmastodon.org/ns#",
|
35656
35901
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -35906,6 +36151,7 @@ export class Service extends Object {
|
|
35906
36151
|
"https://www.w3.org/ns/did/v1",
|
35907
36152
|
"https://w3id.org/security/multikey/v1",
|
35908
36153
|
{
|
36154
|
+
"alsoKnownAs": { "@id": "as:alsoKnownAs", "@type": "@id" },
|
35909
36155
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
35910
36156
|
"toot": "http://joinmastodon.org/ns#",
|
35911
36157
|
"featured": { "@id": "toot:featured", "@type": "@id" },
|
@@ -35978,7 +36224,8 @@ export class Service extends Object {
|
|
35978
36224
|
// deno-lint-ignore no-explicit-any
|
35979
36225
|
(expanded[0] ?? {});
|
35980
36226
|
}
|
35981
|
-
if ("@type" in values
|
36227
|
+
if ("@type" in values &&
|
36228
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
35982
36229
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Service")) {
|
35983
36230
|
throw new TypeError("Invalid type: " + values["@type"]);
|
35984
36231
|
}
|
@@ -36028,7 +36275,9 @@ export class Service extends Object {
|
|
36028
36275
|
continue;
|
36029
36276
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36030
36277
|
globalThis.Object.keys(v).length === 1) {
|
36031
|
-
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(
|
36278
|
+
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36279
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36280
|
+
: new URL(v["@id"]));
|
36032
36281
|
continue;
|
36033
36282
|
}
|
36034
36283
|
_axq166E2eZADq34V4MYUc8KMZdC_publicKey.push(await CryptographicKey.fromJsonLd(v, options));
|
@@ -36047,7 +36296,9 @@ export class Service extends Object {
|
|
36047
36296
|
continue;
|
36048
36297
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36049
36298
|
globalThis.Object.keys(v).length === 1) {
|
36050
|
-
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(
|
36299
|
+
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36300
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36301
|
+
: new URL(v["@id"]));
|
36051
36302
|
continue;
|
36052
36303
|
}
|
36053
36304
|
_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.push(await Multikey.fromJsonLd(v, options));
|
@@ -36082,7 +36333,9 @@ export class Service extends Object {
|
|
36082
36333
|
continue;
|
36083
36334
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36084
36335
|
globalThis.Object.keys(v).length === 1) {
|
36085
|
-
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(
|
36336
|
+
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36337
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36338
|
+
: new URL(v["@id"]));
|
36086
36339
|
continue;
|
36087
36340
|
}
|
36088
36341
|
_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -36101,7 +36354,9 @@ export class Service extends Object {
|
|
36101
36354
|
continue;
|
36102
36355
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36103
36356
|
globalThis.Object.keys(v).length === 1) {
|
36104
|
-
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(
|
36357
|
+
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36358
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36359
|
+
: new URL(v["@id"]));
|
36105
36360
|
continue;
|
36106
36361
|
}
|
36107
36362
|
_41QwhqJouoLg3h8dRPKat21brynC_outbox.push(await OrderedCollection.fromJsonLd(v, options));
|
@@ -36120,7 +36375,9 @@ export class Service extends Object {
|
|
36120
36375
|
continue;
|
36121
36376
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36122
36377
|
globalThis.Object.keys(v).length === 1) {
|
36123
|
-
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(
|
36378
|
+
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36379
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36380
|
+
: new URL(v["@id"]));
|
36124
36381
|
continue;
|
36125
36382
|
}
|
36126
36383
|
_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.push(await Collection.fromJsonLd(v, options));
|
@@ -36139,7 +36396,9 @@ export class Service extends Object {
|
|
36139
36396
|
continue;
|
36140
36397
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36141
36398
|
globalThis.Object.keys(v).length === 1) {
|
36142
|
-
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(
|
36399
|
+
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36400
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36401
|
+
: new URL(v["@id"]));
|
36143
36402
|
continue;
|
36144
36403
|
}
|
36145
36404
|
_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.push(await Collection.fromJsonLd(v, options));
|
@@ -36158,7 +36417,9 @@ export class Service extends Object {
|
|
36158
36417
|
continue;
|
36159
36418
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36160
36419
|
globalThis.Object.keys(v).length === 1) {
|
36161
|
-
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(
|
36420
|
+
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36421
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36422
|
+
: new URL(v["@id"]));
|
36162
36423
|
continue;
|
36163
36424
|
}
|
36164
36425
|
_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.push(await Collection.fromJsonLd(v, options));
|
@@ -36177,7 +36438,9 @@ export class Service extends Object {
|
|
36177
36438
|
continue;
|
36178
36439
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36179
36440
|
globalThis.Object.keys(v).length === 1) {
|
36180
|
-
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(
|
36441
|
+
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36442
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36443
|
+
: new URL(v["@id"]));
|
36181
36444
|
continue;
|
36182
36445
|
}
|
36183
36446
|
_4N1vBJzXDf8NbBumeECQMFvKetja_featured.push(await Collection.fromJsonLd(v, options));
|
@@ -36196,7 +36459,9 @@ export class Service extends Object {
|
|
36196
36459
|
continue;
|
36197
36460
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36198
36461
|
globalThis.Object.keys(v).length === 1) {
|
36199
|
-
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(
|
36462
|
+
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36463
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36464
|
+
: new URL(v["@id"]));
|
36200
36465
|
continue;
|
36201
36466
|
}
|
36202
36467
|
_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.push(await Collection.fromJsonLd(v, options));
|
@@ -36215,7 +36480,9 @@ export class Service extends Object {
|
|
36215
36480
|
continue;
|
36216
36481
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36217
36482
|
globalThis.Object.keys(v).length === 1) {
|
36218
|
-
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(
|
36483
|
+
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36484
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36485
|
+
: new URL(v["@id"]));
|
36219
36486
|
continue;
|
36220
36487
|
}
|
36221
36488
|
_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.push(await Collection.fromJsonLd(v, options));
|
@@ -36304,7 +36571,9 @@ export class Service extends Object {
|
|
36304
36571
|
continue;
|
36305
36572
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36306
36573
|
globalThis.Object.keys(v).length === 1) {
|
36307
|
-
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(
|
36574
|
+
_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36575
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36576
|
+
: new URL(v["@id"]));
|
36308
36577
|
continue;
|
36309
36578
|
}
|
36310
36579
|
const decoded = typeof v === "object" && "@type" in v &&
|
@@ -36346,7 +36615,9 @@ export class Service extends Object {
|
|
36346
36615
|
continue;
|
36347
36616
|
if (typeof v === "object" && "@id" in v && !("@type" in v) &&
|
36348
36617
|
globalThis.Object.keys(v).length === 1) {
|
36349
|
-
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(
|
36618
|
+
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(!URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
|
36619
|
+
? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
|
36620
|
+
: new URL(v["@id"]));
|
36350
36621
|
continue;
|
36351
36622
|
}
|
36352
36623
|
_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.push(await DidService.fromJsonLd(v, options));
|
@@ -36935,7 +37206,8 @@ export class Source {
|
|
36935
37206
|
// deno-lint-ignore no-explicit-any
|
36936
37207
|
(expanded[0] ?? {});
|
36937
37208
|
}
|
36938
|
-
if ("@type" in values
|
37209
|
+
if ("@type" in values &&
|
37210
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
36939
37211
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Source")) {
|
36940
37212
|
throw new TypeError("Invalid type: " + values["@type"]);
|
36941
37213
|
}
|
@@ -37159,7 +37431,8 @@ export class TentativeAccept extends Accept {
|
|
37159
37431
|
// deno-lint-ignore no-explicit-any
|
37160
37432
|
(expanded[0] ?? {});
|
37161
37433
|
}
|
37162
|
-
if ("@type" in values
|
37434
|
+
if ("@type" in values &&
|
37435
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
37163
37436
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeAccept")) {
|
37164
37437
|
throw new TypeError("Invalid type: " + values["@type"]);
|
37165
37438
|
}
|
@@ -37318,7 +37591,8 @@ export class TentativeReject extends Reject {
|
|
37318
37591
|
// deno-lint-ignore no-explicit-any
|
37319
37592
|
(expanded[0] ?? {});
|
37320
37593
|
}
|
37321
|
-
if ("@type" in values
|
37594
|
+
if ("@type" in values &&
|
37595
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
37322
37596
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#TentativeReject")) {
|
37323
37597
|
throw new TypeError("Invalid type: " + values["@type"]);
|
37324
37598
|
}
|
@@ -37547,7 +37821,8 @@ export class Tombstone extends Object {
|
|
37547
37821
|
// deno-lint-ignore no-explicit-any
|
37548
37822
|
(expanded[0] ?? {});
|
37549
37823
|
}
|
37550
|
-
if ("@type" in values
|
37824
|
+
if ("@type" in values &&
|
37825
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
37551
37826
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Tombstone")) {
|
37552
37827
|
throw new TypeError("Invalid type: " + values["@type"]);
|
37553
37828
|
}
|
@@ -37734,7 +38009,8 @@ export class Travel extends IntransitiveActivity {
|
|
37734
38009
|
// deno-lint-ignore no-explicit-any
|
37735
38010
|
(expanded[0] ?? {});
|
37736
38011
|
}
|
37737
|
-
if ("@type" in values
|
38012
|
+
if ("@type" in values &&
|
38013
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
37738
38014
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Travel")) {
|
37739
38015
|
throw new TypeError("Invalid type: " + values["@type"]);
|
37740
38016
|
}
|
@@ -37898,7 +38174,8 @@ export class Undo extends Activity {
|
|
37898
38174
|
// deno-lint-ignore no-explicit-any
|
37899
38175
|
(expanded[0] ?? {});
|
37900
38176
|
}
|
37901
|
-
if ("@type" in values
|
38177
|
+
if ("@type" in values &&
|
38178
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
37902
38179
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Undo")) {
|
37903
38180
|
throw new TypeError("Invalid type: " + values["@type"]);
|
37904
38181
|
}
|
@@ -38083,7 +38360,8 @@ export class Update extends Activity {
|
|
38083
38360
|
// deno-lint-ignore no-explicit-any
|
38084
38361
|
(expanded[0] ?? {});
|
38085
38362
|
}
|
38086
|
-
if ("@type" in values
|
38363
|
+
if ("@type" in values &&
|
38364
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
38087
38365
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Update")) {
|
38088
38366
|
throw new TypeError("Invalid type: " + values["@type"]);
|
38089
38367
|
}
|
@@ -38257,7 +38535,8 @@ export class Video extends Document {
|
|
38257
38535
|
// deno-lint-ignore no-explicit-any
|
38258
38536
|
(expanded[0] ?? {});
|
38259
38537
|
}
|
38260
|
-
if ("@type" in values
|
38538
|
+
if ("@type" in values &&
|
38539
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
38261
38540
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#Video")) {
|
38262
38541
|
throw new TypeError("Invalid type: " + values["@type"]);
|
38263
38542
|
}
|
@@ -38415,7 +38694,8 @@ export class View extends Activity {
|
|
38415
38694
|
// deno-lint-ignore no-explicit-any
|
38416
38695
|
(expanded[0] ?? {});
|
38417
38696
|
}
|
38418
|
-
if ("@type" in values
|
38697
|
+
if ("@type" in values &&
|
38698
|
+
!values["@type"].every((t) => t.startsWith("_:"))) {
|
38419
38699
|
if (!values["@type"].includes("https://www.w3.org/ns/activitystreams#View")) {
|
38420
38700
|
throw new TypeError("Invalid type: " + values["@type"]);
|
38421
38701
|
}
|