@fedify/vocab 2.1.0-dev.536 → 2.1.0-dev.543

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.
Files changed (138) hide show
  1. package/deno.json +1 -1
  2. package/dist/accept.yaml +1 -0
  3. package/dist/activity.yaml +1 -0
  4. package/dist/actor.test.js +2 -2
  5. package/dist/add.yaml +1 -0
  6. package/dist/announce.yaml +1 -0
  7. package/dist/announceauthorization.yaml +40 -0
  8. package/dist/announcerequest.yaml +24 -0
  9. package/dist/application.yaml +1 -0
  10. package/dist/arrive.yaml +1 -0
  11. package/dist/article.yaml +1 -0
  12. package/dist/audio.yaml +1 -0
  13. package/dist/block.yaml +1 -0
  14. package/dist/chatmessage.yaml +1 -0
  15. package/dist/collection.yaml +1 -0
  16. package/dist/collectionpage.yaml +1 -0
  17. package/dist/create.yaml +1 -0
  18. package/dist/delete.yaml +1 -0
  19. package/dist/{deno-DtLTceue.js → deno-D76TUHGu.js} +1 -1
  20. package/dist/dislike.yaml +1 -0
  21. package/dist/document.yaml +1 -0
  22. package/dist/emojireact.yaml +1 -0
  23. package/dist/event.yaml +1 -0
  24. package/dist/flag.yaml +1 -0
  25. package/dist/follow.yaml +1 -0
  26. package/dist/group.yaml +1 -0
  27. package/dist/ignore.yaml +1 -0
  28. package/dist/image.yaml +4 -1
  29. package/dist/interactionpolicy.yaml +54 -0
  30. package/dist/interactionrule.yaml +50 -0
  31. package/dist/intransitiveactivity.yaml +1 -0
  32. package/dist/invite.yaml +1 -0
  33. package/dist/join.yaml +1 -0
  34. package/dist/leave.yaml +1 -0
  35. package/dist/like.yaml +1 -0
  36. package/dist/likeauthorization.yaml +39 -0
  37. package/dist/likerequest.yaml +23 -0
  38. package/dist/listen.yaml +1 -0
  39. package/dist/lookup.test.js +2 -2
  40. package/dist/mod.cjs +3924 -405
  41. package/dist/mod.d.cts +2154 -1
  42. package/dist/mod.d.ts +2154 -1
  43. package/dist/mod.js +3917 -406
  44. package/dist/move.yaml +1 -0
  45. package/dist/note.yaml +1 -0
  46. package/dist/object.yaml +61 -0
  47. package/dist/offer.yaml +1 -0
  48. package/dist/orderedcollection.yaml +1 -0
  49. package/dist/orderedcollectionpage.yaml +1 -0
  50. package/dist/organization.yaml +1 -0
  51. package/dist/page.yaml +1 -0
  52. package/dist/person.yaml +1 -0
  53. package/dist/place.yaml +1 -0
  54. package/dist/profile.yaml +1 -0
  55. package/dist/question.yaml +1 -0
  56. package/dist/read.yaml +1 -0
  57. package/dist/reject.yaml +1 -0
  58. package/dist/relationship.yaml +1 -0
  59. package/dist/remove.yaml +1 -0
  60. package/dist/replyauthorization.yaml +39 -0
  61. package/dist/replyrequest.yaml +23 -0
  62. package/dist/service.yaml +1 -0
  63. package/dist/tentativeaccept.yaml +1 -0
  64. package/dist/tentativereject.yaml +1 -0
  65. package/dist/tombstone.yaml +1 -0
  66. package/dist/travel.yaml +1 -0
  67. package/dist/type.test.js +1 -1
  68. package/dist/undo.yaml +1 -0
  69. package/dist/update.yaml +1 -0
  70. package/dist/video.yaml +1 -0
  71. package/dist/view.yaml +1 -0
  72. package/dist/{vocab-DNa6QysH.js → vocab-BL0T9S6o.js} +3923 -404
  73. package/dist/vocab.test.js +13 -4
  74. package/package.json +4 -4
  75. package/src/__snapshots__/vocab.test.ts.snap +1756 -34
  76. package/src/accept.yaml +1 -0
  77. package/src/activity.yaml +1 -0
  78. package/src/add.yaml +1 -0
  79. package/src/announce.yaml +1 -0
  80. package/src/announceauthorization.yaml +40 -0
  81. package/src/announcerequest.yaml +24 -0
  82. package/src/application.yaml +1 -0
  83. package/src/arrive.yaml +1 -0
  84. package/src/article.yaml +1 -0
  85. package/src/audio.yaml +1 -0
  86. package/src/block.yaml +1 -0
  87. package/src/chatmessage.yaml +1 -0
  88. package/src/collection.yaml +1 -0
  89. package/src/collectionpage.yaml +1 -0
  90. package/src/create.yaml +1 -0
  91. package/src/delete.yaml +1 -0
  92. package/src/dislike.yaml +1 -0
  93. package/src/document.yaml +1 -0
  94. package/src/emojireact.yaml +1 -0
  95. package/src/event.yaml +1 -0
  96. package/src/flag.yaml +1 -0
  97. package/src/follow.yaml +1 -0
  98. package/src/group.yaml +1 -0
  99. package/src/ignore.yaml +1 -0
  100. package/src/image.yaml +4 -1
  101. package/src/interactionpolicy.yaml +54 -0
  102. package/src/interactionrule.yaml +50 -0
  103. package/src/intransitiveactivity.yaml +1 -0
  104. package/src/invite.yaml +1 -0
  105. package/src/join.yaml +1 -0
  106. package/src/leave.yaml +1 -0
  107. package/src/like.yaml +1 -0
  108. package/src/likeauthorization.yaml +39 -0
  109. package/src/likerequest.yaml +23 -0
  110. package/src/listen.yaml +1 -0
  111. package/src/move.yaml +1 -0
  112. package/src/note.yaml +1 -0
  113. package/src/object.yaml +61 -0
  114. package/src/offer.yaml +1 -0
  115. package/src/orderedcollection.yaml +1 -0
  116. package/src/orderedcollectionpage.yaml +1 -0
  117. package/src/organization.yaml +1 -0
  118. package/src/page.yaml +1 -0
  119. package/src/person.yaml +1 -0
  120. package/src/place.yaml +1 -0
  121. package/src/profile.yaml +1 -0
  122. package/src/question.yaml +1 -0
  123. package/src/read.yaml +1 -0
  124. package/src/reject.yaml +1 -0
  125. package/src/relationship.yaml +1 -0
  126. package/src/remove.yaml +1 -0
  127. package/src/replyauthorization.yaml +39 -0
  128. package/src/replyrequest.yaml +23 -0
  129. package/src/service.yaml +1 -0
  130. package/src/tentativeaccept.yaml +1 -0
  131. package/src/tentativereject.yaml +1 -0
  132. package/src/tombstone.yaml +1 -0
  133. package/src/travel.yaml +1 -0
  134. package/src/undo.yaml +1 -0
  135. package/src/update.yaml +1 -0
  136. package/src/video.yaml +1 -0
  137. package/src/view.yaml +1 -0
  138. package/src/vocab.test.ts +7 -1
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
 
5
- import { Activity, Announce, Collection, Create, CryptographicKey, Endpoints, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, mockDocumentLoader, test, vocab_exports } from "./vocab-DNa6QysH.js";
5
+ import { Activity, Announce, Collection, Create, CryptographicKey, Endpoints, Follow, Hashtag, Link, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, mockDocumentLoader, test, vocab_exports } from "./vocab-BL0T9S6o.js";
6
6
  import { assertInstanceOf } from "./utils-Dm0Onkcz.js";
7
7
  import { deepStrictEqual, notDeepStrictEqual, ok, rejects, throws } from "node:assert/strict";
8
8
  import { LanguageString, decodeMultibase } from "@fedify/vocab-runtime";
@@ -129,6 +129,7 @@ test("Object.toJsonLd()", async () => {
129
129
  "@context": [
130
130
  "https://www.w3.org/ns/activitystreams",
131
131
  "https://w3id.org/security/data-integrity/v1",
132
+ "https://gotosocial.org/ns",
132
133
  {
133
134
  fedibird: "http://fedibird.com/ns#",
134
135
  sensitive: "as:sensitive",
@@ -155,6 +156,7 @@ test("Note.toJsonLd()", async () => {
155
156
  "@context": [
156
157
  "https://www.w3.org/ns/activitystreams",
157
158
  "https://w3id.org/security/data-integrity/v1",
159
+ "https://gotosocial.org/ns",
158
160
  {
159
161
  Emoji: "toot:Emoji",
160
162
  Hashtag: "as:Hashtag",
@@ -253,7 +255,8 @@ test({
253
255
  "https://w3id.org/identity/v1",
254
256
  "https://www.w3.org/ns/activitystreams",
255
257
  "https://w3id.org/security/v1",
256
- "https://w3id.org/security/data-integrity/v1"
258
+ "https://w3id.org/security/data-integrity/v1",
259
+ "https://gotosocial.org/ns"
257
260
  ],
258
261
  type: "Activity",
259
262
  object: {
@@ -396,6 +399,7 @@ test("Person.toJsonLd()", async () => {
396
399
  "https://w3id.org/security/data-integrity/v1",
397
400
  "https://www.w3.org/ns/did/v1",
398
401
  "https://w3id.org/security/multikey/v1",
402
+ "https://gotosocial.org/ns",
399
403
  {
400
404
  PropertyValue: "schema:PropertyValue",
401
405
  alsoKnownAs: {
@@ -700,6 +704,7 @@ test("Note.quoteUrl", async () => {
700
704
  "@context": [
701
705
  "https://www.w3.org/ns/activitystreams",
702
706
  "https://w3id.org/security/data-integrity/v1",
707
+ "https://gotosocial.org/ns",
703
708
  {
704
709
  Emoji: "toot:Emoji",
705
710
  Hashtag: "as:Hashtag",
@@ -805,7 +810,11 @@ test("Place.fromJsonLd()", async () => {
805
810
  contextLoader: mockDocumentLoader
806
811
  });
807
812
  deepStrictEqual(jsonLd, {
808
- "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/data-integrity/v1"],
813
+ "@context": [
814
+ "https://www.w3.org/ns/activitystreams",
815
+ "https://w3id.org/security/data-integrity/v1",
816
+ "https://gotosocial.org/ns"
817
+ ],
809
818
  type: "Place",
810
819
  name: "Fresno Area",
811
820
  latitude: 36.75,
@@ -1492,7 +1501,7 @@ for (const typeUri in types) {
1492
1501
  });
1493
1502
  const jsonLd = await instance.toJsonLd({ contextLoader: mockDocumentLoader });
1494
1503
  deepStrictEqual(jsonLd["@context"], type.defaultContext);
1495
- deepStrictEqual(jsonLd.id, "https://example.com/");
1504
+ if (type.entity) deepStrictEqual(jsonLd.id, "https://example.com/");
1496
1505
  const restored = await cls.fromJsonLd(jsonLd, {
1497
1506
  documentLoader: mockDocumentLoader,
1498
1507
  contextLoader: mockDocumentLoader
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab",
3
- "version": "2.1.0-dev.536+e79f8887",
3
+ "version": "2.1.0-dev.543+e09fd1b4",
4
4
  "homepage": "https://fedify.dev/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,9 +47,9 @@
47
47
  "jsonld": "^9.0.0",
48
48
  "multicodec": "^3.2.1",
49
49
  "pkijs": "^3.3.3",
50
- "@fedify/vocab-tools": "2.1.0-dev.536+e79f8887",
51
- "@fedify/vocab-runtime": "2.1.0-dev.536+e79f8887",
52
- "@fedify/webfinger": "2.1.0-dev.536+e79f8887"
50
+ "@fedify/vocab-tools": "2.1.0-dev.543+e09fd1b4",
51
+ "@fedify/vocab-runtime": "2.1.0-dev.543+e09fd1b4",
52
+ "@fedify/webfinger": "2.1.0-dev.543+e09fd1b4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^22.17.0",