@fedify/vocab 2.4.0-dev.1634 → 2.4.0-pr.934.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { A as OrderedCollectionPage, B as Source, C as InteractionRule, D as Note, E as Multikey, F as Question, I as QuoteAuthorization, L as QuoteRequest, M as Person, N as Place, O as Object$1, P as Proposal, R as Reject, S as InteractionPolicy, T as Measure, V as Tombstone, W as vocab_exports, _ as Follow, a as Application, b as Image, c as Create, d as Document, f as Endpoints, g as FeaturedItem, h as FeaturedCollection, i as Announce, j as Organization, k as Offer, l as CryptographicKey, m as FeatureRequest, n as Activity, o as Collection, p as FeatureAuthorization, r as Agreement, s as Commitment, t as Accept, u as Delete, v as Group, w as Link, x as Intent, y as Hashtag, z as Service } from "./vocab-Bjwctrxn.mjs";
3
+ import { B as Tombstone, C as Link, D as Object$1, E as Note, F as QuoteAuthorization, I as QuoteRequest, L as Reject, M as Place, N as Proposal, O as Offer, P as Question, S as InteractionRule, T as Multikey, U as vocab_exports, _ as Follow, b as Intent, c as Create, d as Document, f as Endpoints, g as FeaturedItem, h as FeaturedCollection, i as Announce, j as Person, k as OrderedCollectionPage, l as CryptographicKey, m as FeatureRequest, n as Activity, o as Collection, p as FeatureAuthorization, r as Agreement, s as Commitment, t as Accept, u as Delete, w as Measure, x as InteractionPolicy, y as Hashtag, z as Source } from "./vocab-OU5GYbNg.mjs";
4
4
  import { t as assertInstanceOf } from "./utils-CQjrpUkt.mjs";
5
5
  import { mockDocumentLoader, test } from "@fedify/fixture";
6
6
  import { deepStrictEqual, notDeepStrictEqual, ok, rejects, throws } from "node:assert/strict";
@@ -380,154 +380,6 @@ test("fromJsonLd() handles portable ActivityPub IRIs", async () => {
380
380
  deepStrictEqual(pageJson.next, "ap+ef61://did:key:z6Mkabc/actor/outbox?page=2");
381
381
  deepStrictEqual(pageJson.prev, "ap+ef61://did:key:z6Mkabc/actor/outbox?page=1");
382
382
  });
383
- test("FEP-ef61: actor gateways round-trip as an ordered URI list", async () => {
384
- const actorClasses = [
385
- Application,
386
- Group,
387
- Organization,
388
- Person,
389
- Service
390
- ];
391
- const gateways = [new URL("https://server1.example/"), new URL("https://server2.example/")];
392
- for (const ActorClass of actorClasses) {
393
- const actor = await ActorClass.fromJsonLd({
394
- "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"],
395
- type: ActorClass.name,
396
- id: "ap+ef61://did:key:z6Mkabc/actor",
397
- gateways: gateways.map((gateway) => gateway.href)
398
- });
399
- deepStrictEqual(actor.gateways, gateways);
400
- const jsonLd = await actor.toJsonLd();
401
- deepStrictEqual(jsonLd.type, ActorClass.name);
402
- deepStrictEqual(jsonLd.gateways, gateways.map((gateway) => gateway.href));
403
- deepStrictEqual((await ActorClass.fromJsonLd(jsonLd)).gateways, gateways);
404
- }
405
- });
406
- test("FEP-ef61: actor gateways preserve single, empty, and invalid cases", async () => {
407
- deepStrictEqual((await new Person({
408
- id: new URL("ap+ef61://did%3Akey%3Az6Mkabc/actor"),
409
- gateways: [new URL("https://server.example/")]
410
- }).toJsonLd()).gateways, ["https://server.example/"]);
411
- ok(!("gateways" in await new Person({
412
- id: new URL("ap+ef61://did%3Akey%3Az6Mkabc/actor"),
413
- gateways: []
414
- }).toJsonLd()));
415
- await rejects(() => Person.fromJsonLd({
416
- "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"],
417
- type: "Person",
418
- gateways: ["not a uri"]
419
- }), TypeError);
420
- });
421
- test("FEP-ef61: actor gateways accept @id typed JSON-LD references", async () => {
422
- deepStrictEqual((await Person.fromJsonLd({
423
- "@context": ["https://www.w3.org/ns/activitystreams", { gateways: {
424
- "@id": "https://w3id.org/fep/ef61/gateways",
425
- "@type": "@id",
426
- "@container": "@list"
427
- } }],
428
- type: "Person",
429
- id: "ap+ef61://did:key:z6Mkabc/actor",
430
- gateways: ["https://gateway.example/"]
431
- })).gateways, [new URL("https://gateway.example/")]);
432
- });
433
- test("FEP-ef61: actor gateways must be HTTP(S) base URIs", async () => {
434
- const validGateways = [new URL("https://server.example/"), new URL("http://server.example/")];
435
- deepStrictEqual(new Person({
436
- id: new URL("ap+ef61://did%3Akey%3Az6Mkabc/actor"),
437
- gateways: validGateways
438
- }).gateways, validGateways);
439
- for (const gateway of [
440
- "ftp://server.example/",
441
- "https://user:pass@server.example/",
442
- "https://user@server.example/",
443
- "https://server.example/path",
444
- "https://server.example/?x=1",
445
- "https://server.example/#fragment"
446
- ]) {
447
- throws(() => new Person({
448
- id: new URL("ap+ef61://did%3Akey%3Az6Mkabc/actor"),
449
- gateways: [new URL(gateway)]
450
- }), TypeError);
451
- await rejects(() => Person.fromJsonLd({
452
- "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"],
453
- type: "Person",
454
- gateways: [gateway]
455
- }), TypeError);
456
- }
457
- });
458
- test("FEP-ef61: digestMultibase round-trips on links and media objects", async () => {
459
- const digestMultibase = "zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n";
460
- const link = await Link.fromJsonLd({
461
- "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"],
462
- type: "Link",
463
- href: "hl:zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n",
464
- digestMultibase
465
- });
466
- deepStrictEqual(link.digestMultibase, digestMultibase);
467
- deepStrictEqual((await link.toJsonLd()).digestMultibase, digestMultibase);
468
- for (const cls of [Document, Image]) {
469
- const media = await cls.fromJsonLd({
470
- "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/ef61"],
471
- type: cls.name,
472
- url: "hl:zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n",
473
- mediaType: "image/png",
474
- digestMultibase
475
- });
476
- deepStrictEqual(media.digestMultibase, digestMultibase);
477
- const jsonLd = await media.toJsonLd();
478
- deepStrictEqual(jsonLd.type, cls.name);
479
- deepStrictEqual(jsonLd.digestMultibase, digestMultibase);
480
- }
481
- });
482
- test("FEP-ef61: digestMultibase avoids Data Integrity context conflicts", async () => {
483
- const digestMultibase = "zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n";
484
- const image = new Image({
485
- url: new URL("hl:zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n"),
486
- mediaType: "image/png",
487
- digestMultibase
488
- });
489
- const expanded = await image.toJsonLd({ format: "expand" });
490
- deepStrictEqual(expanded[0]["https://www.w3.org/ns/credentials/v2#digestMultibase"], [{ "@value": digestMultibase }]);
491
- ok(!("https://w3id.org/security#digestMultibase" in expanded[0]));
492
- const compact = await image.toJsonLd();
493
- deepStrictEqual(compact.digestMultibase, digestMultibase);
494
- ok(!compact["@context"].includes("https://w3id.org/fep/ef61"));
495
- ok(compact["@context"].some((context) => context != null && typeof context === "object" && context.digestMultibase === "https://www.w3.org/ns/credentials/v2#digestMultibase"));
496
- });
497
- test("FEP-ef61: digestMultibase parses after Data Integrity v1 contexts", async () => {
498
- const digestMultibase = "zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n";
499
- deepStrictEqual((await Image.fromJsonLd({
500
- "@context": [
501
- "https://www.w3.org/ns/activitystreams",
502
- "https://w3id.org/security/data-integrity/v1",
503
- "https://w3id.org/fep/ef61"
504
- ],
505
- type: "Image",
506
- url: "hl:zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n",
507
- mediaType: "image/png",
508
- digestMultibase
509
- })).digestMultibase, digestMultibase);
510
- });
511
- test("FEP-ef61: Link image normalization preserves digestMultibase", async () => {
512
- const digestMultibase = "zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n";
513
- const obj = await Object$1.fromJsonLd({
514
- "@context": [
515
- "https://www.w3.org/ns/activitystreams",
516
- "https://w3id.org/security/data-integrity/v1",
517
- "https://w3id.org/fep/ef61"
518
- ],
519
- type: "Note",
520
- image: {
521
- type: "Link",
522
- href: "hl:zQmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n",
523
- mediaType: "image/png",
524
- digestMultibase
525
- }
526
- });
527
- const images = [];
528
- for await (const img of obj.getImages()) images.push(img);
529
- deepStrictEqual(images[0]?.digestMultibase, digestMultibase);
530
- });
531
383
  test("fromJsonLd() caches text that mentions portable ActivityPub IRIs", async () => {
532
384
  const noteJson = {
533
385
  "@context": ["https://www.w3.org/ns/activitystreams", { extra: "https://example.com/ns#extra" }],
@@ -1304,7 +1156,6 @@ test("Person.toJsonLd()", async () => {
1304
1156
  deepStrictEqual(await new Person({ aliases: [new URL("https://example.com/alias")] }).toJsonLd(), {
1305
1157
  "@context": [
1306
1158
  "https://www.w3.org/ns/activitystreams",
1307
- "https://w3id.org/fep/ef61",
1308
1159
  "https://w3id.org/security/v1",
1309
1160
  "https://w3id.org/security/data-integrity/v1",
1310
1161
  "https://www.w3.org/ns/did/v1",
@@ -1806,7 +1657,6 @@ test("InteractionPolicy.canFeature", async () => {
1806
1657
  const expected = {
1807
1658
  "@context": [
1808
1659
  "https://www.w3.org/ns/activitystreams",
1809
- "https://w3id.org/fep/ef61",
1810
1660
  "https://w3id.org/security/v1",
1811
1661
  "https://w3id.org/security/data-integrity/v1",
1812
1662
  "https://www.w3.org/ns/did/v1",
@@ -3384,7 +3234,6 @@ const sampleValues = {
3384
3234
  ]),
3385
3235
  "fedify:langTag": new Intl.Locale("en-Latn-US"),
3386
3236
  "fedify:url": new URL("https://fedify.dev/"),
3387
- "fedify:gatewayUrl": new URL("https://gateway.example/"),
3388
3237
  "fedify:publicKey": rsaPublicKey.publicKey,
3389
3238
  "fedify:multibaseKey": ed25519PublicKey.publicKey,
3390
3239
  "fedify:proofPurpose": "assertionMethod",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab",
3
- "version": "2.4.0-dev.1634+3b4bfbb6",
3
+ "version": "2.4.0-pr.934.40+3331d302",
4
4
  "homepage": "https://fedify.dev/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,9 +43,9 @@
43
43
  "jsonld": "^9.0.0",
44
44
  "pkijs": "^3.3.3",
45
45
  "temporal-polyfill": "^1.0.1",
46
- "@fedify/vocab-tools": "2.4.0-dev.1634+3b4bfbb6",
47
- "@fedify/webfinger": "2.4.0-dev.1634+3b4bfbb6",
48
- "@fedify/vocab-runtime": "2.4.0-dev.1634+3b4bfbb6"
46
+ "@fedify/vocab-tools": "2.4.0-pr.934.40+3331d302",
47
+ "@fedify/vocab-runtime": "2.4.0-pr.934.40+3331d302",
48
+ "@fedify/webfinger": "2.4.0-pr.934.40+3331d302"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^22.17.0",
@@ -3352,7 +3352,6 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = `
3352
3352
  preferredUsernames: [ "hello", <en> "hello" ],
3353
3353
  publicKey: CryptographicKey {},
3354
3354
  assertionMethod: Multikey {},
3355
- gateway: URL "https://gateway.example/",
3356
3355
  manuallyApprovesFollowers: true,
3357
3356
  inbox: OrderedCollection {},
3358
3357
  outbox: OrderedCollection {},
@@ -3419,7 +3418,6 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = `
3419
3418
  preferredUsernames: [ "hello", <en> "hello" ],
3420
3419
  publicKey: URL "https://example.com/",
3421
3420
  assertionMethod: URL "https://example.com/",
3422
- gateway: URL "https://gateway.example/",
3423
3421
  manuallyApprovesFollowers: true,
3424
3422
  inbox: URL "https://example.com/",
3425
3423
  outbox: URL "https://example.com/",
@@ -3486,7 +3484,6 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = `
3486
3484
  preferredUsernames: [ "hello", "hello" ],
3487
3485
  publicKeys: [ CryptographicKey {}, CryptographicKey {} ],
3488
3486
  assertionMethods: [ Multikey {}, Multikey {} ],
3489
- gateways: [ URL "https://gateway.example/", URL "https://gateway.example/" ],
3490
3487
  manuallyApprovesFollowers: true,
3491
3488
  inbox: OrderedCollection {},
3492
3489
  outbox: OrderedCollection {},
@@ -3836,8 +3833,7 @@ snapshot[`Deno.inspect(Audio) [auto] 1`] = `
3836
3833
  replyAuthorization: ReplyAuthorization {},
3837
3834
  announceAuthorization: AnnounceAuthorization {},
3838
3835
  width: 123,
3839
- height: 123,
3840
- digestMultibase: "hello"
3836
+ height: 123
3841
3837
  }'
3842
3838
  `;
3843
3839
 
@@ -3882,8 +3878,7 @@ snapshot[`Deno.inspect(Audio) [auto] 2`] = `
3882
3878
  replyAuthorization: URL "https://example.com/",
3883
3879
  announceAuthorization: URL "https://example.com/",
3884
3880
  width: 123,
3885
- height: 123,
3886
- digestMultibase: "hello"
3881
+ height: 123
3887
3882
  }'
3888
3883
  `;
3889
3884
 
@@ -3928,8 +3923,7 @@ snapshot[`Deno.inspect(Audio) [auto] 3`] = `
3928
3923
  replyAuthorization: ReplyAuthorization {},
3929
3924
  announceAuthorization: AnnounceAuthorization {},
3930
3925
  width: 123,
3931
- height: 123,
3932
- digestMultibase: "hello"
3926
+ height: 123
3933
3927
  }'
3934
3928
  `;
3935
3929
 
@@ -4907,8 +4901,7 @@ snapshot[`Deno.inspect(Document) [auto] 1`] = `
4907
4901
  replyAuthorization: ReplyAuthorization {},
4908
4902
  announceAuthorization: AnnounceAuthorization {},
4909
4903
  width: 123,
4910
- height: 123,
4911
- digestMultibase: "hello"
4904
+ height: 123
4912
4905
  }'
4913
4906
  `;
4914
4907
 
@@ -4953,8 +4946,7 @@ snapshot[`Deno.inspect(Document) [auto] 2`] = `
4953
4946
  replyAuthorization: URL "https://example.com/",
4954
4947
  announceAuthorization: URL "https://example.com/",
4955
4948
  width: 123,
4956
- height: 123,
4957
- digestMultibase: "hello"
4949
+ height: 123
4958
4950
  }'
4959
4951
  `;
4960
4952
 
@@ -4999,8 +4991,7 @@ snapshot[`Deno.inspect(Document) [auto] 3`] = `
4999
4991
  replyAuthorization: ReplyAuthorization {},
5000
4992
  announceAuthorization: AnnounceAuthorization {},
5001
4993
  width: 123,
5002
- height: 123,
5003
- digestMultibase: "hello"
4994
+ height: 123
5004
4995
  }'
5005
4996
  `;
5006
4997
 
@@ -5509,7 +5500,6 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = `
5509
5500
  preferredUsernames: [ "hello", <en> "hello" ],
5510
5501
  publicKey: CryptographicKey {},
5511
5502
  assertionMethod: Multikey {},
5512
- gateway: URL "https://gateway.example/",
5513
5503
  manuallyApprovesFollowers: true,
5514
5504
  inbox: OrderedCollection {},
5515
5505
  outbox: OrderedCollection {},
@@ -5576,7 +5566,6 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = `
5576
5566
  preferredUsernames: [ "hello", <en> "hello" ],
5577
5567
  publicKey: URL "https://example.com/",
5578
5568
  assertionMethod: URL "https://example.com/",
5579
- gateway: URL "https://gateway.example/",
5580
5569
  manuallyApprovesFollowers: true,
5581
5570
  inbox: URL "https://example.com/",
5582
5571
  outbox: URL "https://example.com/",
@@ -5643,7 +5632,6 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = `
5643
5632
  preferredUsernames: [ "hello", "hello" ],
5644
5633
  publicKeys: [ CryptographicKey {}, CryptographicKey {} ],
5645
5634
  assertionMethods: [ Multikey {}, Multikey {} ],
5646
- gateways: [ URL "https://gateway.example/", URL "https://gateway.example/" ],
5647
5635
  manuallyApprovesFollowers: true,
5648
5636
  inbox: OrderedCollection {},
5649
5637
  outbox: OrderedCollection {},
@@ -5673,7 +5661,6 @@ snapshot[`Deno.inspect(Hashtag) [auto] 1`] = `
5673
5661
  href: URL "https://example.com/",
5674
5662
  rel: "hello",
5675
5663
  mediaType: "hello",
5676
- digestMultibase: "hello",
5677
5664
  names: [ "hello", <en> "hello" ],
5678
5665
  language: Locale [Intl.Locale] {
5679
5666
  baseName: "en-Latn-US",
@@ -5699,7 +5686,6 @@ snapshot[`Deno.inspect(Hashtag) [auto] 2`] = `
5699
5686
  href: URL "https://example.com/",
5700
5687
  rel: "hello",
5701
5688
  mediaType: "hello",
5702
- digestMultibase: "hello",
5703
5689
  names: [ "hello", <en> "hello" ],
5704
5690
  language: Locale [Intl.Locale] {
5705
5691
  baseName: "en-Latn-US",
@@ -5725,7 +5711,6 @@ snapshot[`Deno.inspect(Hashtag) [auto] 3`] = `
5725
5711
  href: URL "https://example.com/",
5726
5712
  rels: [ "hello", "hello" ],
5727
5713
  mediaType: "hello",
5728
- digestMultibase: "hello",
5729
5714
  names: [ "hello", "hello" ],
5730
5715
  language: Locale [Intl.Locale] {
5731
5716
  baseName: "en-Latn-US",
@@ -5933,8 +5918,7 @@ snapshot[`Deno.inspect(Image) [auto] 1`] = `
5933
5918
  replyAuthorization: ReplyAuthorization {},
5934
5919
  announceAuthorization: AnnounceAuthorization {},
5935
5920
  width: 123,
5936
- height: 123,
5937
- digestMultibase: "hello"
5921
+ height: 123
5938
5922
  }'
5939
5923
  `;
5940
5924
 
@@ -5979,8 +5963,7 @@ snapshot[`Deno.inspect(Image) [auto] 2`] = `
5979
5963
  replyAuthorization: URL "https://example.com/",
5980
5964
  announceAuthorization: URL "https://example.com/",
5981
5965
  width: 123,
5982
- height: 123,
5983
- digestMultibase: "hello"
5966
+ height: 123
5984
5967
  }'
5985
5968
  `;
5986
5969
 
@@ -6025,8 +6008,7 @@ snapshot[`Deno.inspect(Image) [auto] 3`] = `
6025
6008
  replyAuthorization: ReplyAuthorization {},
6026
6009
  announceAuthorization: AnnounceAuthorization {},
6027
6010
  width: 123,
6028
- height: 123,
6029
- digestMultibase: "hello"
6011
+ height: 123
6030
6012
  }'
6031
6013
  `;
6032
6014
 
@@ -6771,7 +6753,6 @@ snapshot[`Deno.inspect(Link) [auto] 1`] = `
6771
6753
  href: URL "https://example.com/",
6772
6754
  rel: "hello",
6773
6755
  mediaType: "hello",
6774
- digestMultibase: "hello",
6775
6756
  names: [ "hello", <en> "hello" ],
6776
6757
  language: Locale [Intl.Locale] {
6777
6758
  baseName: "en-Latn-US",
@@ -6797,7 +6778,6 @@ snapshot[`Deno.inspect(Link) [auto] 2`] = `
6797
6778
  href: URL "https://example.com/",
6798
6779
  rel: "hello",
6799
6780
  mediaType: "hello",
6800
- digestMultibase: "hello",
6801
6781
  names: [ "hello", <en> "hello" ],
6802
6782
  language: Locale [Intl.Locale] {
6803
6783
  baseName: "en-Latn-US",
@@ -6823,7 +6803,6 @@ snapshot[`Deno.inspect(Link) [auto] 3`] = `
6823
6803
  href: URL "https://example.com/",
6824
6804
  rels: [ "hello", "hello" ],
6825
6805
  mediaType: "hello",
6826
- digestMultibase: "hello",
6827
6806
  names: [ "hello", "hello" ],
6828
6807
  language: Locale [Intl.Locale] {
6829
6808
  baseName: "en-Latn-US",
@@ -6996,7 +6975,6 @@ snapshot[`Deno.inspect(Mention) [auto] 1`] = `
6996
6975
  href: URL "https://example.com/",
6997
6976
  rel: "hello",
6998
6977
  mediaType: "hello",
6999
- digestMultibase: "hello",
7000
6978
  names: [ "hello", <en> "hello" ],
7001
6979
  language: Locale [Intl.Locale] {
7002
6980
  baseName: "en-Latn-US",
@@ -7022,7 +7000,6 @@ snapshot[`Deno.inspect(Mention) [auto] 2`] = `
7022
7000
  href: URL "https://example.com/",
7023
7001
  rel: "hello",
7024
7002
  mediaType: "hello",
7025
- digestMultibase: "hello",
7026
7003
  names: [ "hello", <en> "hello" ],
7027
7004
  language: Locale [Intl.Locale] {
7028
7005
  baseName: "en-Latn-US",
@@ -7048,7 +7025,6 @@ snapshot[`Deno.inspect(Mention) [auto] 3`] = `
7048
7025
  href: URL "https://example.com/",
7049
7026
  rels: [ "hello", "hello" ],
7050
7027
  mediaType: "hello",
7051
- digestMultibase: "hello",
7052
7028
  names: [ "hello", "hello" ],
7053
7029
  language: Locale [Intl.Locale] {
7054
7030
  baseName: "en-Latn-US",
@@ -8020,7 +7996,6 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = `
8020
7996
  preferredUsernames: [ "hello", <en> "hello" ],
8021
7997
  publicKey: CryptographicKey {},
8022
7998
  assertionMethod: Multikey {},
8023
- gateway: URL "https://gateway.example/",
8024
7999
  manuallyApprovesFollowers: true,
8025
8000
  inbox: OrderedCollection {},
8026
8001
  outbox: OrderedCollection {},
@@ -8087,7 +8062,6 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = `
8087
8062
  preferredUsernames: [ "hello", <en> "hello" ],
8088
8063
  publicKey: URL "https://example.com/",
8089
8064
  assertionMethod: URL "https://example.com/",
8090
- gateway: URL "https://gateway.example/",
8091
8065
  manuallyApprovesFollowers: true,
8092
8066
  inbox: URL "https://example.com/",
8093
8067
  outbox: URL "https://example.com/",
@@ -8154,7 +8128,6 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = `
8154
8128
  preferredUsernames: [ "hello", "hello" ],
8155
8129
  publicKeys: [ CryptographicKey {}, CryptographicKey {} ],
8156
8130
  assertionMethods: [ Multikey {}, Multikey {} ],
8157
- gateways: [ URL "https://gateway.example/", URL "https://gateway.example/" ],
8158
8131
  manuallyApprovesFollowers: true,
8159
8132
  inbox: OrderedCollection {},
8160
8133
  outbox: OrderedCollection {},
@@ -8219,8 +8192,7 @@ snapshot[`Deno.inspect(Page) [auto] 1`] = `
8219
8192
  replyAuthorization: ReplyAuthorization {},
8220
8193
  announceAuthorization: AnnounceAuthorization {},
8221
8194
  width: 123,
8222
- height: 123,
8223
- digestMultibase: "hello"
8195
+ height: 123
8224
8196
  }'
8225
8197
  `;
8226
8198
 
@@ -8265,8 +8237,7 @@ snapshot[`Deno.inspect(Page) [auto] 2`] = `
8265
8237
  replyAuthorization: URL "https://example.com/",
8266
8238
  announceAuthorization: URL "https://example.com/",
8267
8239
  width: 123,
8268
- height: 123,
8269
- digestMultibase: "hello"
8240
+ height: 123
8270
8241
  }'
8271
8242
  `;
8272
8243
 
@@ -8311,8 +8282,7 @@ snapshot[`Deno.inspect(Page) [auto] 3`] = `
8311
8282
  replyAuthorization: ReplyAuthorization {},
8312
8283
  announceAuthorization: AnnounceAuthorization {},
8313
8284
  width: 123,
8314
- height: 123,
8315
- digestMultibase: "hello"
8285
+ height: 123
8316
8286
  }'
8317
8287
  `;
8318
8288
 
@@ -8359,7 +8329,6 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = `
8359
8329
  preferredUsernames: [ "hello", <en> "hello" ],
8360
8330
  publicKey: CryptographicKey {},
8361
8331
  assertionMethod: Multikey {},
8362
- gateway: URL "https://gateway.example/",
8363
8332
  manuallyApprovesFollowers: true,
8364
8333
  inbox: OrderedCollection {},
8365
8334
  outbox: OrderedCollection {},
@@ -8426,7 +8395,6 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = `
8426
8395
  preferredUsernames: [ "hello", <en> "hello" ],
8427
8396
  publicKey: URL "https://example.com/",
8428
8397
  assertionMethod: URL "https://example.com/",
8429
- gateway: URL "https://gateway.example/",
8430
8398
  manuallyApprovesFollowers: true,
8431
8399
  inbox: URL "https://example.com/",
8432
8400
  outbox: URL "https://example.com/",
@@ -8493,7 +8461,6 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = `
8493
8461
  preferredUsernames: [ "hello", "hello" ],
8494
8462
  publicKeys: [ CryptographicKey {}, CryptographicKey {} ],
8495
8463
  assertionMethods: [ Multikey {}, Multikey {} ],
8496
- gateways: [ URL "https://gateway.example/", URL "https://gateway.example/" ],
8497
8464
  manuallyApprovesFollowers: true,
8498
8465
  inbox: OrderedCollection {},
8499
8466
  outbox: OrderedCollection {},
@@ -9586,7 +9553,6 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = `
9586
9553
  preferredUsernames: [ "hello", <en> "hello" ],
9587
9554
  publicKey: CryptographicKey {},
9588
9555
  assertionMethod: Multikey {},
9589
- gateway: URL "https://gateway.example/",
9590
9556
  manuallyApprovesFollowers: true,
9591
9557
  inbox: OrderedCollection {},
9592
9558
  outbox: OrderedCollection {},
@@ -9653,7 +9619,6 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = `
9653
9619
  preferredUsernames: [ "hello", <en> "hello" ],
9654
9620
  publicKey: URL "https://example.com/",
9655
9621
  assertionMethod: URL "https://example.com/",
9656
- gateway: URL "https://gateway.example/",
9657
9622
  manuallyApprovesFollowers: true,
9658
9623
  inbox: URL "https://example.com/",
9659
9624
  outbox: URL "https://example.com/",
@@ -9720,7 +9685,6 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = `
9720
9685
  preferredUsernames: [ "hello", "hello" ],
9721
9686
  publicKeys: [ CryptographicKey {}, CryptographicKey {} ],
9722
9687
  assertionMethods: [ Multikey {}, Multikey {} ],
9723
- gateways: [ URL "https://gateway.example/", URL "https://gateway.example/" ],
9724
9688
  manuallyApprovesFollowers: true,
9725
9689
  inbox: OrderedCollection {},
9726
9690
  outbox: OrderedCollection {},
@@ -10679,8 +10643,7 @@ snapshot[`Deno.inspect(Video) [auto] 1`] = `
10679
10643
  replyAuthorization: ReplyAuthorization {},
10680
10644
  announceAuthorization: AnnounceAuthorization {},
10681
10645
  width: 123,
10682
- height: 123,
10683
- digestMultibase: "hello"
10646
+ height: 123
10684
10647
  }'
10685
10648
  `;
10686
10649
 
@@ -10725,8 +10688,7 @@ snapshot[`Deno.inspect(Video) [auto] 2`] = `
10725
10688
  replyAuthorization: URL "https://example.com/",
10726
10689
  announceAuthorization: URL "https://example.com/",
10727
10690
  width: 123,
10728
- height: 123,
10729
- digestMultibase: "hello"
10691
+ height: 123
10730
10692
  }'
10731
10693
  `;
10732
10694
 
@@ -10771,8 +10733,7 @@ snapshot[`Deno.inspect(Video) [auto] 3`] = `
10771
10733
  replyAuthorization: ReplyAuthorization {},
10772
10734
  announceAuthorization: AnnounceAuthorization {},
10773
10735
  width: 123,
10774
- height: 123,
10775
- digestMultibase: "hello"
10736
+ height: 123
10776
10737
  }'
10777
10738
  `;
10778
10739
 
@@ -7,7 +7,6 @@ entity: true
7
7
  description: Describes a software application.
8
8
  defaultContext:
9
9
  - "https://www.w3.org/ns/activitystreams"
10
- - "https://w3id.org/fep/ef61"
11
10
  - "https://w3id.org/security/v1"
12
11
  - "https://w3id.org/security/data-integrity/v1"
13
12
  - "https://www.w3.org/ns/did/v1"
@@ -79,20 +78,6 @@ properties:
79
78
  range:
80
79
  - "https://w3id.org/security#Multikey"
81
80
 
82
- - pluralName: gateways
83
- singularName: gateway
84
- singularAccessor: true
85
- compactName: gateways
86
- uri: "https://w3id.org/fep/ef61/gateways"
87
- container: list
88
- description: |
89
- Gateways where the latest version of this portable actor object can be
90
- retrieved.
91
-
92
- See [FEP-ef61](https://w3id.org/fep/ef61) for details.
93
- range:
94
- - "fedify:gatewayUrl"
95
-
96
81
  - singularName: manuallyApprovesFollowers
97
82
  functional: true
98
83
  compactName: manuallyApprovesFollowers
package/src/audio.yaml CHANGED
@@ -7,7 +7,6 @@ entity: true
7
7
  description: Represents an audio document of any kind.
8
8
  defaultContext:
9
9
  - "https://www.w3.org/ns/activitystreams"
10
- - "https://w3id.org/security/data-integrity/v2"
11
- - digestMultibase: "https://www.w3.org/ns/credentials/v2#digestMultibase"
10
+ - "https://w3id.org/security/data-integrity/v1"
12
11
  - "https://gotosocial.org/ns"
13
12
  properties: []
package/src/document.yaml CHANGED
@@ -7,8 +7,7 @@ entity: true
7
7
  description: Represents a document of any kind.
8
8
  defaultContext:
9
9
  - "https://www.w3.org/ns/activitystreams"
10
- - "https://w3id.org/security/data-integrity/v2"
11
- - digestMultibase: "https://www.w3.org/ns/credentials/v2#digestMultibase"
10
+ - "https://w3id.org/security/data-integrity/v1"
12
11
  - "https://gotosocial.org/ns"
13
12
 
14
13
  properties:
@@ -31,15 +30,3 @@ properties:
31
30
  device-independent pixels of the linked resource.
32
31
  range:
33
32
  - "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
34
-
35
- - singularName: digestMultibase
36
- functional: true
37
- compactName: digestMultibase
38
- uri: "https://www.w3.org/ns/credentials/v2#digestMultibase"
39
- description: |
40
- The multibase-encoded integrity digest of an external resource represented
41
- by this document.
42
-
43
- See [FEP-ef61](https://w3id.org/fep/ef61) for details.
44
- range:
45
- - "http://www.w3.org/2001/XMLSchema#string"
package/src/group.yaml CHANGED
@@ -7,7 +7,6 @@ entity: true
7
7
  description: Represents a formal or informal collective of Actors.
8
8
  defaultContext:
9
9
  - "https://www.w3.org/ns/activitystreams"
10
- - "https://w3id.org/fep/ef61"
11
10
  - "https://w3id.org/security/v1"
12
11
  - "https://w3id.org/security/data-integrity/v1"
13
12
  - "https://www.w3.org/ns/did/v1"
@@ -79,20 +78,6 @@ properties:
79
78
  range:
80
79
  - "https://w3id.org/security#Multikey"
81
80
 
82
- - pluralName: gateways
83
- singularName: gateway
84
- singularAccessor: true
85
- compactName: gateways
86
- uri: "https://w3id.org/fep/ef61/gateways"
87
- container: list
88
- description: |
89
- Gateways where the latest version of this portable actor object can be
90
- retrieved.
91
-
92
- See [FEP-ef61](https://w3id.org/fep/ef61) for details.
93
- range:
94
- - "fedify:gatewayUrl"
95
-
96
81
  - singularName: manuallyApprovesFollowers
97
82
  functional: true
98
83
  compactName: manuallyApprovesFollowers
package/src/image.yaml CHANGED
@@ -7,7 +7,6 @@ entity: true
7
7
  description: An image document of any kind.
8
8
  defaultContext:
9
9
  - "https://www.w3.org/ns/activitystreams"
10
- - "https://w3id.org/security/data-integrity/v2"
11
- - digestMultibase: "https://www.w3.org/ns/credentials/v2#digestMultibase"
10
+ - "https://w3id.org/security/data-integrity/v1"
12
11
  - "https://gotosocial.org/ns"
13
12
  properties: []
package/src/link.yaml CHANGED
@@ -12,9 +12,7 @@ description: |
12
12
  object) to the resource identified by the `href`. Properties of
13
13
  the {@link Link} are properties of the reference as opposed to properties of
14
14
  the resource.
15
- defaultContext:
16
- - "https://www.w3.org/ns/activitystreams"
17
- - "https://w3id.org/fep/ef61"
15
+ defaultContext: "https://www.w3.org/ns/activitystreams"
18
16
 
19
17
  properties:
20
18
  - singularName: href
@@ -50,17 +48,6 @@ properties:
50
48
  range:
51
49
  - "http://www.w3.org/2001/XMLSchema#string"
52
50
 
53
- - singularName: digestMultibase
54
- functional: true
55
- compactName: digestMultibase
56
- uri: "https://www.w3.org/ns/credentials/v2#digestMultibase"
57
- description: |
58
- The multibase-encoded integrity digest of the linked resource.
59
-
60
- See [FEP-ef61](https://w3id.org/fep/ef61) for details.
61
- range:
62
- - "http://www.w3.org/2001/XMLSchema#string"
63
-
64
51
  - pluralName: names
65
52
  singularName: name
66
53
  singularAccessor: true