@twin.org/standards-w3c-activity-streams 0.0.3-next.9 → 0.9.0

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 (190) hide show
  1. package/README.md +1 -1
  2. package/dist/es/dataTypes/activityStreamsDataTypes.js +275 -16
  3. package/dist/es/dataTypes/activityStreamsDataTypes.js.map +1 -1
  4. package/dist/es/index.js +33 -0
  5. package/dist/es/index.js.map +1 -1
  6. package/dist/es/models/IActivityStreamsActivity.js.map +1 -1
  7. package/dist/es/models/IActivityStreamsActor.js +2 -0
  8. package/dist/es/models/IActivityStreamsActor.js.map +1 -0
  9. package/dist/es/models/IActivityStreamsApplication.js +2 -0
  10. package/dist/es/models/IActivityStreamsApplication.js.map +1 -0
  11. package/dist/es/models/IActivityStreamsArticle.js +2 -0
  12. package/dist/es/models/IActivityStreamsArticle.js.map +1 -0
  13. package/dist/es/models/IActivityStreamsAudio.js +2 -0
  14. package/dist/es/models/IActivityStreamsAudio.js.map +1 -0
  15. package/dist/es/models/IActivityStreamsCollection.js +2 -0
  16. package/dist/es/models/IActivityStreamsCollection.js.map +1 -0
  17. package/dist/es/models/IActivityStreamsCollectionPage.js +2 -0
  18. package/dist/es/models/IActivityStreamsCollectionPage.js.map +1 -0
  19. package/dist/es/models/IActivityStreamsDocument.js +2 -0
  20. package/dist/es/models/IActivityStreamsDocument.js.map +1 -0
  21. package/dist/es/models/IActivityStreamsEvent.js +2 -0
  22. package/dist/es/models/IActivityStreamsEvent.js.map +1 -0
  23. package/dist/es/models/IActivityStreamsGroup.js +2 -0
  24. package/dist/es/models/IActivityStreamsGroup.js.map +1 -0
  25. package/dist/es/models/IActivityStreamsImage.js +2 -0
  26. package/dist/es/models/IActivityStreamsImage.js.map +1 -0
  27. package/dist/es/models/IActivityStreamsIntransitiveActivity.js +2 -0
  28. package/dist/es/models/IActivityStreamsIntransitiveActivity.js.map +1 -0
  29. package/dist/es/models/IActivityStreamsLink.js +2 -0
  30. package/dist/es/models/IActivityStreamsLink.js.map +1 -0
  31. package/dist/es/models/IActivityStreamsMention.js +2 -0
  32. package/dist/es/models/IActivityStreamsMention.js.map +1 -0
  33. package/dist/es/models/IActivityStreamsNote.js +2 -0
  34. package/dist/es/models/IActivityStreamsNote.js.map +1 -0
  35. package/dist/es/models/IActivityStreamsObject.js +2 -0
  36. package/dist/es/models/IActivityStreamsObject.js.map +1 -0
  37. package/dist/es/models/IActivityStreamsOrderedCollection.js +2 -0
  38. package/dist/es/models/IActivityStreamsOrderedCollection.js.map +1 -0
  39. package/dist/es/models/IActivityStreamsOrderedCollectionPage.js +2 -0
  40. package/dist/es/models/IActivityStreamsOrderedCollectionPage.js.map +1 -0
  41. package/dist/es/models/IActivityStreamsOrganization.js +2 -0
  42. package/dist/es/models/IActivityStreamsOrganization.js.map +1 -0
  43. package/dist/es/models/IActivityStreamsPage.js +2 -0
  44. package/dist/es/models/IActivityStreamsPage.js.map +1 -0
  45. package/dist/es/models/IActivityStreamsPerson.js +2 -0
  46. package/dist/es/models/IActivityStreamsPerson.js.map +1 -0
  47. package/dist/es/models/IActivityStreamsPlace.js +2 -0
  48. package/dist/es/models/IActivityStreamsPlace.js.map +1 -0
  49. package/dist/es/models/IActivityStreamsProfile.js +2 -0
  50. package/dist/es/models/IActivityStreamsProfile.js.map +1 -0
  51. package/dist/es/models/IActivityStreamsQuestion.js +2 -0
  52. package/dist/es/models/IActivityStreamsQuestion.js.map +1 -0
  53. package/dist/es/models/IActivityStreamsQuestionAnyOfChoice.js +2 -0
  54. package/dist/es/models/IActivityStreamsQuestionAnyOfChoice.js.map +1 -0
  55. package/dist/es/models/IActivityStreamsQuestionBase.js +2 -0
  56. package/dist/es/models/IActivityStreamsQuestionBase.js.map +1 -0
  57. package/dist/es/models/IActivityStreamsQuestionNeitherChoice.js +4 -0
  58. package/dist/es/models/IActivityStreamsQuestionNeitherChoice.js.map +1 -0
  59. package/dist/es/models/IActivityStreamsQuestionOneOfChoice.js +2 -0
  60. package/dist/es/models/IActivityStreamsQuestionOneOfChoice.js.map +1 -0
  61. package/dist/es/models/IActivityStreamsRelationship.js +2 -0
  62. package/dist/es/models/IActivityStreamsRelationship.js.map +1 -0
  63. package/dist/es/models/IActivityStreamsService.js +2 -0
  64. package/dist/es/models/IActivityStreamsService.js.map +1 -0
  65. package/dist/es/models/IActivityStreamsTombstone.js +2 -0
  66. package/dist/es/models/IActivityStreamsTombstone.js.map +1 -0
  67. package/dist/es/models/IActivityStreamsVideo.js +2 -0
  68. package/dist/es/models/IActivityStreamsVideo.js.map +1 -0
  69. package/dist/es/models/activityStreamsContextType.js.map +1 -1
  70. package/dist/es/models/activityStreamsContexts.js +13 -7
  71. package/dist/es/models/activityStreamsContexts.js.map +1 -1
  72. package/dist/es/models/activityStreamsLinkTypes.js +21 -0
  73. package/dist/es/models/activityStreamsLinkTypes.js.map +1 -0
  74. package/dist/es/models/activityStreamsObjectTypes.js +141 -0
  75. package/dist/es/models/activityStreamsObjectTypes.js.map +1 -0
  76. package/dist/es/models/activityStreamsTypes.js +88 -30
  77. package/dist/es/models/activityStreamsTypes.js.map +1 -1
  78. package/dist/es/schemas/ActivityStreamsActivity.json +116 -127
  79. package/dist/es/schemas/ActivityStreamsActor.json +68 -0
  80. package/dist/es/schemas/ActivityStreamsApplication.json +41 -0
  81. package/dist/es/schemas/ActivityStreamsArticle.json +41 -0
  82. package/dist/es/schemas/ActivityStreamsAudio.json +41 -0
  83. package/dist/es/schemas/ActivityStreamsCollection.json +102 -0
  84. package/dist/es/schemas/ActivityStreamsCollectionPage.json +74 -0
  85. package/dist/es/schemas/ActivityStreamsContextType.json +30 -0
  86. package/dist/es/schemas/ActivityStreamsDocument.json +41 -0
  87. package/dist/es/schemas/ActivityStreamsEvent.json +41 -0
  88. package/dist/es/schemas/ActivityStreamsGroup.json +41 -0
  89. package/dist/es/schemas/ActivityStreamsImage.json +41 -0
  90. package/dist/es/schemas/ActivityStreamsIntransitiveActivity.json +167 -0
  91. package/dist/es/schemas/ActivityStreamsLink.json +112 -0
  92. package/dist/es/schemas/ActivityStreamsMention.json +41 -0
  93. package/dist/es/schemas/ActivityStreamsNote.json +41 -0
  94. package/dist/es/schemas/ActivityStreamsObject.json +507 -0
  95. package/dist/es/schemas/ActivityStreamsObjectTypes.json +112 -0
  96. package/dist/es/schemas/ActivityStreamsOrderedCollection.json +65 -0
  97. package/dist/es/schemas/ActivityStreamsOrderedCollectionPage.json +48 -0
  98. package/dist/es/schemas/ActivityStreamsOrganization.json +41 -0
  99. package/dist/es/schemas/ActivityStreamsPage.json +41 -0
  100. package/dist/es/schemas/ActivityStreamsPerson.json +41 -0
  101. package/dist/es/schemas/ActivityStreamsPlace.json +65 -0
  102. package/dist/es/schemas/ActivityStreamsProfile.json +52 -0
  103. package/dist/es/schemas/ActivityStreamsRelationship.json +67 -0
  104. package/dist/es/schemas/ActivityStreamsService.json +41 -0
  105. package/dist/es/schemas/ActivityStreamsTombstone.json +60 -0
  106. package/dist/es/schemas/ActivityStreamsTypes.json +119 -32
  107. package/dist/es/schemas/ActivityStreamsVideo.json +41 -0
  108. package/dist/types/dataTypes/activityStreamsDataTypes.d.ts +5 -1
  109. package/dist/types/index.d.ts +33 -0
  110. package/dist/types/models/IActivityStreamsActivity.d.ts +17 -13
  111. package/dist/types/models/IActivityStreamsActor.d.ts +16 -0
  112. package/dist/types/models/IActivityStreamsApplication.d.ts +15 -0
  113. package/dist/types/models/IActivityStreamsArticle.d.ts +15 -0
  114. package/dist/types/models/IActivityStreamsAudio.d.ts +15 -0
  115. package/dist/types/models/IActivityStreamsCollection.d.ts +42 -0
  116. package/dist/types/models/IActivityStreamsCollectionPage.d.ts +32 -0
  117. package/dist/types/models/IActivityStreamsDocument.d.ts +15 -0
  118. package/dist/types/models/IActivityStreamsEvent.d.ts +15 -0
  119. package/dist/types/models/IActivityStreamsGroup.d.ts +15 -0
  120. package/dist/types/models/IActivityStreamsImage.d.ts +15 -0
  121. package/dist/types/models/IActivityStreamsIntransitiveActivity.d.ts +42 -0
  122. package/dist/types/models/IActivityStreamsLink.d.ts +62 -0
  123. package/dist/types/models/IActivityStreamsMention.d.ts +16 -0
  124. package/dist/types/models/IActivityStreamsNote.d.ts +15 -0
  125. package/dist/types/models/IActivityStreamsObject.d.ts +187 -0
  126. package/dist/types/models/IActivityStreamsOrderedCollection.d.ts +21 -0
  127. package/dist/types/models/IActivityStreamsOrderedCollectionPage.d.ts +23 -0
  128. package/dist/types/models/IActivityStreamsOrganization.d.ts +15 -0
  129. package/dist/types/models/IActivityStreamsPage.d.ts +15 -0
  130. package/dist/types/models/IActivityStreamsPerson.d.ts +15 -0
  131. package/dist/types/models/IActivityStreamsPlace.d.ts +60 -0
  132. package/dist/types/models/IActivityStreamsProfile.d.ts +23 -0
  133. package/dist/types/models/IActivityStreamsQuestion.d.ts +13 -0
  134. package/dist/types/models/IActivityStreamsQuestionAnyOfChoice.d.ts +17 -0
  135. package/dist/types/models/IActivityStreamsQuestionBase.d.ts +22 -0
  136. package/dist/types/models/IActivityStreamsQuestionNeitherChoice.d.ts +13 -0
  137. package/dist/types/models/IActivityStreamsQuestionOneOfChoice.d.ts +17 -0
  138. package/dist/types/models/IActivityStreamsRelationship.d.ts +35 -0
  139. package/dist/types/models/IActivityStreamsService.d.ts +15 -0
  140. package/dist/types/models/IActivityStreamsTombstone.d.ts +27 -0
  141. package/dist/types/models/IActivityStreamsVideo.d.ts +15 -0
  142. package/dist/types/models/activityStreamsContextType.d.ts +2 -1
  143. package/dist/types/models/activityStreamsContexts.d.ts +12 -6
  144. package/dist/types/models/activityStreamsLinkTypes.d.ts +21 -0
  145. package/dist/types/models/activityStreamsObjectTypes.d.ts +141 -0
  146. package/dist/types/models/activityStreamsTypes.d.ts +87 -29
  147. package/docs/changelog.md +526 -40
  148. package/docs/examples.md +29 -1
  149. package/docs/reference/classes/ActivityStreamsDataTypes.md +14 -2
  150. package/docs/reference/index.md +35 -0
  151. package/docs/reference/interfaces/IActivityStreamsActivity.md +497 -26
  152. package/docs/reference/interfaces/IActivityStreamsActor.md +534 -0
  153. package/docs/reference/interfaces/IActivityStreamsApplication.md +525 -0
  154. package/docs/reference/interfaces/IActivityStreamsArticle.md +525 -0
  155. package/docs/reference/interfaces/IActivityStreamsAudio.md +525 -0
  156. package/docs/reference/interfaces/IActivityStreamsCollection.md +591 -0
  157. package/docs/reference/interfaces/IActivityStreamsCollectionPage.md +646 -0
  158. package/docs/reference/interfaces/IActivityStreamsDocument.md +532 -0
  159. package/docs/reference/interfaces/IActivityStreamsEvent.md +525 -0
  160. package/docs/reference/interfaces/IActivityStreamsGroup.md +525 -0
  161. package/docs/reference/interfaces/IActivityStreamsImage.md +525 -0
  162. package/docs/reference/interfaces/IActivityStreamsIntransitiveActivity.md +589 -0
  163. package/docs/reference/interfaces/IActivityStreamsLink.md +126 -0
  164. package/docs/reference/interfaces/IActivityStreamsMention.md +166 -0
  165. package/docs/reference/interfaces/IActivityStreamsNote.md +525 -0
  166. package/docs/reference/interfaces/IActivityStreamsObject.md +411 -0
  167. package/docs/reference/interfaces/IActivityStreamsOrderedCollection.md +621 -0
  168. package/docs/reference/interfaces/IActivityStreamsOrderedCollectionPage.md +683 -0
  169. package/docs/reference/interfaces/IActivityStreamsOrganization.md +525 -0
  170. package/docs/reference/interfaces/IActivityStreamsPage.md +525 -0
  171. package/docs/reference/interfaces/IActivityStreamsPerson.md +525 -0
  172. package/docs/reference/interfaces/IActivityStreamsPlace.md +612 -0
  173. package/docs/reference/interfaces/IActivityStreamsProfile.md +539 -0
  174. package/docs/reference/interfaces/IActivityStreamsQuestionAnyOfChoice.md +27 -0
  175. package/docs/reference/interfaces/IActivityStreamsQuestionBase.md +619 -0
  176. package/docs/reference/interfaces/IActivityStreamsQuestionNeitherChoice.md +19 -0
  177. package/docs/reference/interfaces/IActivityStreamsQuestionOneOfChoice.md +27 -0
  178. package/docs/reference/interfaces/IActivityStreamsRelationship.md +565 -0
  179. package/docs/reference/interfaces/IActivityStreamsService.md +525 -0
  180. package/docs/reference/interfaces/IActivityStreamsTombstone.md +550 -0
  181. package/docs/reference/interfaces/IActivityStreamsVideo.md +525 -0
  182. package/docs/reference/type-aliases/ActivityStreamsContextType.md +1 -1
  183. package/docs/reference/type-aliases/ActivityStreamsLinkTypes.md +5 -0
  184. package/docs/reference/type-aliases/ActivityStreamsObjectTypes.md +5 -0
  185. package/docs/reference/type-aliases/IActivityStreamsQuestion.md +13 -0
  186. package/docs/reference/variables/ActivityStreamsContexts.md +17 -9
  187. package/docs/reference/variables/ActivityStreamsLinkTypes.md +32 -0
  188. package/docs/reference/variables/ActivityStreamsObjectTypes.md +272 -0
  189. package/docs/reference/variables/ActivityStreamsTypes.md +116 -58
  190. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"activityStreamsTypes.js","sourceRoot":"","sources":["../../../src/models/activityStreamsTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,GAAG,EAAE,KAAK;IAEV;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,eAAe,EAAE,iBAAiB;IAElC;;;OAGG;IACH,eAAe,EAAE,iBAAiB;IAElC;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,IAAI,EAAE,MAAM;CACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types concerning Activity Streams.\n * Section 3.1 Activity Types: https://www.w3.org/TR/activitystreams-vocabulary/#activity-types\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ActivityStreamsTypes = {\n\t/**\n\t * Activity\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-activity\n\t */\n\tActivity: \"Activity\",\n\n\t/**\n\t * Accept\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accept\n\t */\n\tAccept: \"Accept\",\n\n\t/**\n\t * Add\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-add\n\t */\n\tAdd: \"Add\",\n\n\t/**\n\t * Announce\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce\n\t */\n\tAnnounce: \"Announce\",\n\n\t/**\n\t * Arrive\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-arrive\n\t */\n\tArrive: \"Arrive\",\n\n\t/**\n\t * Block\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-block\n\t */\n\tBlock: \"Block\",\n\n\t/**\n\t * Create\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create\n\t */\n\tCreate: \"Create\",\n\n\t/**\n\t * Delete\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-delete\n\t */\n\tDelete: \"Delete\",\n\n\t/**\n\t * Dislike\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-dislike\n\t */\n\tDislike: \"Dislike\",\n\n\t/**\n\t * Flag\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-flag\n\t */\n\tFlag: \"Flag\",\n\n\t/**\n\t * Follow\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-follow\n\t */\n\tFollow: \"Follow\",\n\n\t/**\n\t * Ignore\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-ignore\n\t */\n\tIgnore: \"Ignore\",\n\n\t/**\n\t * Invite\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-invite\n\t */\n\tInvite: \"Invite\",\n\n\t/**\n\t * Join\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-join\n\t */\n\tJoin: \"Join\",\n\n\t/**\n\t * Leave\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-leave\n\t */\n\tLeave: \"Leave\",\n\n\t/**\n\t * Like\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like\n\t */\n\tLike: \"Like\",\n\n\t/**\n\t * Listen\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-listen\n\t */\n\tListen: \"Listen\",\n\n\t/**\n\t * Move\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move\n\t */\n\tMove: \"Move\",\n\n\t/**\n\t * Offer\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-offer\n\t */\n\tOffer: \"Offer\",\n\n\t/**\n\t * Question\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question\n\t */\n\tQuestion: \"Question\",\n\n\t/**\n\t * Reject\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-reject\n\t */\n\tReject: \"Reject\",\n\n\t/**\n\t * Read\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read\n\t */\n\tRead: \"Read\",\n\n\t/**\n\t * Remove\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-remove\n\t */\n\tRemove: \"Remove\",\n\n\t/**\n\t * TentativeReject\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativereject\n\t */\n\tTentativeReject: \"TentativeReject\",\n\n\t/**\n\t * TentativeAccept\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativeaccept\n\t */\n\tTentativeAccept: \"TentativeAccept\",\n\n\t/**\n\t * Travel\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-travel\n\t */\n\tTravel: \"Travel\",\n\n\t/**\n\t * Undo\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-undo\n\t */\n\tUndo: \"Undo\",\n\n\t/**\n\t * Update\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-update\n\t */\n\tUpdate: \"Update\",\n\n\t/**\n\t * View\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view\n\t */\n\tView: \"View\"\n} as const;\n\n/**\n * The types concerning Activity.\n * Section 3.1 Activity Types: https://www.w3.org/TR/activitystreams-vocabulary/#activity-types\n */\nexport type ActivityStreamsTypes = (typeof ActivityStreamsTypes)[keyof typeof ActivityStreamsTypes];\n"]}
1
+ {"version":3,"file":"activityStreamsTypes.js","sourceRoot":"","sources":["../../../src/models/activityStreamsTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;;;;OAKG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,GAAG,EAAE,KAAK;IAEV;;;;;OAKG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,KAAK,EAAE,OAAO;IAEd;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,OAAO,EAAE,SAAS;IAElB;;;;;OAKG;IACH,IAAI,EAAE,MAAM;IAEZ;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,MAAM;IAEZ;;;;;OAKG;IACH,KAAK,EAAE,OAAO;IAEd;;;;;OAKG;IACH,IAAI,EAAE,MAAM;IAEZ;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,MAAM;IAEZ;;;;;OAKG;IACH,KAAK,EAAE,OAAO;IAEd;;;;;OAKG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,MAAM;IAEZ;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,eAAe,EAAE,iBAAiB;IAElC;;;;;OAKG;IACH,eAAe,EAAE,iBAAiB;IAElC;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,MAAM;IAEZ;;;;;OAKG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,MAAM;CACH,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types concerning Activity Streams.\n * Section 3.1 Activity Types: https://www.w3.org/TR/activitystreams-vocabulary/#activity-types\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ActivityStreamsTypes = {\n\t/**\n\t * Activity.\n\t *\n\t * Generic base type for activities (actions) in Activity Streams.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-activity\n\t */\n\tActivity: \"Activity\",\n\n\t/**\n\t * Accept.\n\t *\n\t * Indicates that the actor accepts the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accept\n\t */\n\tAccept: \"Accept\",\n\n\t/**\n\t * Add.\n\t *\n\t * Indicates that the actor added the object to the target.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-add\n\t */\n\tAdd: \"Add\",\n\n\t/**\n\t * Announce.\n\t *\n\t * Indicates that the actor is calling attention to the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce\n\t */\n\tAnnounce: \"Announce\",\n\n\t/**\n\t * Arrive.\n\t *\n\t * Intransitive activity indicating that the actor arrived at a location.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-arrive\n\t */\n\tArrive: \"Arrive\",\n\n\t/**\n\t * Block.\n\t *\n\t * Indicates that the actor is blocking the object (a stronger form of Ignore).\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-block\n\t */\n\tBlock: \"Block\",\n\n\t/**\n\t * Create.\n\t *\n\t * Indicates that the actor has created the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create\n\t */\n\tCreate: \"Create\",\n\n\t/**\n\t * Delete.\n\t *\n\t * Indicates that the actor has deleted the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-delete\n\t */\n\tDelete: \"Delete\",\n\n\t/**\n\t * Dislike.\n\t *\n\t * Indicates that the actor dislikes the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-dislike\n\t */\n\tDislike: \"Dislike\",\n\n\t/**\n\t * Flag.\n\t *\n\t * Indicates that the actor is flagging the object (e.g., reporting it).\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-flag\n\t */\n\tFlag: \"Flag\",\n\n\t/**\n\t * Follow.\n\t *\n\t * Indicates that the actor is following the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-follow\n\t */\n\tFollow: \"Follow\",\n\n\t/**\n\t * Ignore.\n\t *\n\t * Indicates that the actor is ignoring the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-ignore\n\t */\n\tIgnore: \"Ignore\",\n\n\t/**\n\t * Invite.\n\t *\n\t * Specialization of Offer in which the actor is extending an invitation.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-invite\n\t */\n\tInvite: \"Invite\",\n\n\t/**\n\t * Join.\n\t *\n\t * Indicates that the actor has joined the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-join\n\t */\n\tJoin: \"Join\",\n\n\t/**\n\t * Leave.\n\t *\n\t * Indicates that the actor has left the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-leave\n\t */\n\tLeave: \"Leave\",\n\n\t/**\n\t * Like.\n\t *\n\t * Indicates that the actor likes, recommends, or endorses the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like\n\t */\n\tLike: \"Like\",\n\n\t/**\n\t * Listen.\n\t *\n\t * Indicates that the actor has listened to the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-listen\n\t */\n\tListen: \"Listen\",\n\n\t/**\n\t * Move.\n\t *\n\t * Indicates that the actor has moved the object from `origin` to `target`.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move\n\t */\n\tMove: \"Move\",\n\n\t/**\n\t * Offer.\n\t *\n\t * Indicates that the actor is offering the object (optionally to a target).\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-offer\n\t */\n\tOffer: \"Offer\",\n\n\t/**\n\t * Question.\n\t *\n\t * Intransitive activity representing a question; can express options via `oneOf`/`anyOf`.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question\n\t */\n\tQuestion: \"Question\",\n\n\t/**\n\t * Reject.\n\t *\n\t * Indicates that the actor is rejecting the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-reject\n\t */\n\tReject: \"Reject\",\n\n\t/**\n\t * Read.\n\t *\n\t * Indicates that the actor has read the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read\n\t */\n\tRead: \"Read\",\n\n\t/**\n\t * Remove.\n\t *\n\t * Indicates that the actor is removing the object (optionally from an origin context).\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-remove\n\t */\n\tRemove: \"Remove\",\n\n\t/**\n\t * TentativeReject.\n\t *\n\t * Specialization of Reject indicating that the rejection is tentative.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativereject\n\t */\n\tTentativeReject: \"TentativeReject\",\n\n\t/**\n\t * TentativeAccept.\n\t *\n\t * Specialization of Accept indicating that the acceptance is tentative.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativeaccept\n\t */\n\tTentativeAccept: \"TentativeAccept\",\n\n\t/**\n\t * Travel.\n\t *\n\t * Intransitive activity indicating that the actor is travelling to `target` from `origin`.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-travel\n\t */\n\tTravel: \"Travel\",\n\n\t/**\n\t * Undo.\n\t *\n\t * Indicates that the actor is undoing a previous activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-undo\n\t */\n\tUndo: \"Undo\",\n\n\t/**\n\t * Update.\n\t *\n\t * Indicates that the actor has updated the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-update\n\t */\n\tUpdate: \"Update\",\n\n\t/**\n\t * View.\n\t *\n\t * Indicates that the actor has viewed the object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view\n\t */\n\tView: \"View\"\n} as const;\n\n/**\n * The types concerning Activity.\n * Section 3.1 Activity Types: https://www.w3.org/TR/activitystreams-vocabulary/#activity-types\n */\nexport type ActivityStreamsTypes = (typeof ActivityStreamsTypes)[keyof typeof ActivityStreamsTypes];\n"]}
@@ -1,236 +1,225 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsActivity",
4
- "description": "A W3C Activity from Activity Streams",
4
+ "title": "ActivityStreamsActivity",
5
+ "description": "A W3C Activity from Activity Streams.\n\nAn `Activity` describes an action performed by an `actor` on an `object`, and\ncan optionally include a `target`, `result`, `origin`, or `instrument`.",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@context": {
8
- "description": "The Activity Streams JSON-LD context type.",
9
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsContextType",
10
+ "description": "The LD Context."
11
+ },
12
+ "type": {
9
13
  "anyOf": [
10
14
  {
11
- "type": "string",
12
- "const": "https://www.w3.org/ns/activitystreams"
15
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsTypes"
13
16
  },
14
17
  {
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "const": "https://www.w3.org/ns/activitystreams"
19
- },
20
- "minItems": 1,
21
- "maxItems": 1
18
+ "type": "string"
22
19
  },
23
20
  {
24
21
  "type": "array",
25
- "minItems": 1,
26
- "prefixItems": [
27
- {
28
- "type": "string",
29
- "const": "https://www.w3.org/ns/activitystreams"
30
- }
31
- ],
32
22
  "items": {
33
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
23
+ "anyOf": [
24
+ {
25
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsTypes"
26
+ },
27
+ {
28
+ "type": "string"
29
+ }
30
+ ]
34
31
  }
35
32
  }
36
- ]
33
+ ],
34
+ "description": "Activity Type."
37
35
  },
38
- "@id": {
36
+ "generator": {
39
37
  "anyOf": [
40
38
  {
41
39
  "type": "string"
42
40
  },
43
- {
44
- "type": "array",
45
- "items": {
46
- "type": "string"
47
- }
48
- }
49
- ]
50
- },
51
- "@included": {
52
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
53
- },
54
- "@graph": {
55
- "anyOf": [
56
41
  {
57
42
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
58
43
  },
59
44
  {
60
45
  "type": "array",
61
46
  "items": {
62
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
47
+ "anyOf": [
48
+ {
49
+ "type": "string"
50
+ },
51
+ {
52
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
53
+ }
54
+ ]
63
55
  }
64
56
  }
65
- ]
57
+ ],
58
+ "description": "The generator of the Activity."
66
59
  },
67
- "@nest": {
60
+ "actor": {
68
61
  "anyOf": [
69
62
  {
70
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
63
+ "type": "string"
64
+ },
65
+ {
66
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
71
67
  },
72
68
  {
73
69
  "type": "array",
74
70
  "items": {
75
- "$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
71
+ "anyOf": [
72
+ {
73
+ "type": "string"
74
+ },
75
+ {
76
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
77
+ }
78
+ ]
76
79
  }
77
80
  }
78
- ]
81
+ ],
82
+ "description": "The Actor behind the Activity."
79
83
  },
80
- "@type": {
84
+ "object": {
81
85
  "anyOf": [
82
86
  {
83
87
  "type": "string"
84
88
  },
89
+ {
90
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
91
+ },
85
92
  {
86
93
  "type": "array",
87
94
  "items": {
88
- "type": "string"
95
+ "anyOf": [
96
+ {
97
+ "type": "string"
98
+ },
99
+ {
100
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
101
+ }
102
+ ]
89
103
  }
90
104
  }
91
- ]
92
- },
93
- "@reverse": {
94
- "type": "object",
95
- "additionalProperties": {
96
- "type": "string"
97
- }
98
- },
99
- "@index": {
100
- "type": "string"
105
+ ],
106
+ "description": "The object affected by the Activity."
101
107
  },
102
- "type": {
103
- "description": "Object or array data type",
108
+ "target": {
104
109
  "anyOf": [
105
110
  {
106
- "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsTypes"
111
+ "type": "string"
107
112
  },
108
113
  {
109
- "type": "string"
114
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
110
115
  },
111
116
  {
112
117
  "type": "array",
113
118
  "items": {
114
119
  "anyOf": [
115
120
  {
116
- "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsTypes"
121
+ "type": "string"
117
122
  },
118
123
  {
119
- "type": "string"
124
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
120
125
  }
121
126
  ]
122
127
  }
123
128
  }
124
- ]
129
+ ],
130
+ "description": "The target of the Activity."
125
131
  },
126
- "generator": {
132
+ "summary": {
127
133
  "anyOf": [
128
134
  {
129
135
  "type": "string"
130
136
  },
131
137
  {
132
- "type": "array",
133
- "items": {
134
- "type": "string"
135
- }
136
- },
137
- {
138
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
138
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
139
139
  }
140
140
  ],
141
- "description": "The generator of the Activity."
141
+ "description": "Summary of the Activity."
142
142
  },
143
- "actor": {
143
+ "result": {
144
144
  "anyOf": [
145
145
  {
146
146
  "type": "string"
147
147
  },
148
+ {
149
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
150
+ },
148
151
  {
149
152
  "type": "array",
150
153
  "items": {
151
- "type": "string"
154
+ "anyOf": [
155
+ {
156
+ "type": "string"
157
+ },
158
+ {
159
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
160
+ }
161
+ ]
152
162
  }
153
- },
154
- {
155
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
156
163
  }
157
164
  ],
158
- "description": "The Actor behind the Activity."
159
- },
160
- "object": {
161
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
162
- "description": "The object affected by the Activity."
163
- },
164
- "target": {
165
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
166
- "description": "The target of the Activity."
165
+ "description": "Result of the Activity."
167
166
  },
168
- "summary": {
167
+ "origin": {
169
168
  "anyOf": [
170
169
  {
171
170
  "type": "string"
172
171
  },
173
172
  {
174
- "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
173
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
174
+ },
175
+ {
176
+ "type": "array",
177
+ "items": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
184
+ }
185
+ ]
186
+ }
175
187
  }
176
188
  ],
177
- "description": "Summary of the Activity."
178
- },
179
- "result": {
180
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
181
- "description": "Result of the Activity."
189
+ "description": "Activity's origin."
182
190
  },
183
- "origin": {
191
+ "instrument": {
184
192
  "anyOf": [
185
193
  {
186
194
  "type": "string"
187
195
  },
196
+ {
197
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
198
+ },
188
199
  {
189
200
  "type": "array",
190
201
  "items": {
191
- "type": "string"
202
+ "anyOf": [
203
+ {
204
+ "type": "string"
205
+ },
206
+ {
207
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
208
+ }
209
+ ]
192
210
  }
193
- },
194
- {
195
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
196
211
  }
197
212
  ],
198
- "description": "Activity's origin."
199
- },
200
- "updated": {
201
- "type": "string",
202
- "description": "The date and time at which the object was updated."
213
+ "description": "Instrument used in the Activity."
203
214
  }
204
215
  },
205
216
  "required": [
206
217
  "@context",
207
- "type",
208
- "object",
209
- "updated"
218
+ "type"
210
219
  ],
211
- "additionalProperties": {
212
- "anyOf": [
213
- {
214
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
215
- },
216
- {
217
- "$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
218
- },
219
- {
220
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
221
- },
222
- {
223
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
224
- },
225
- {
226
- "$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
227
- },
228
- {
229
- "$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
230
- },
231
- {
232
- "type": "array"
233
- }
234
- ]
235
- }
220
+ "allOf": [
221
+ {
222
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsObject"
223
+ }
224
+ ]
236
225
  }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsActor",
4
+ "title": "ActivityStreamsActor",
5
+ "description": "A W3C Activity Streams Actor.\n\nAn `Actor` is a specialised `Object` that represents the entity performing\nan `Activity` (for example a `Person`, `Group`, `Organization`, `Application`, or `Service`).",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "anyOf": [
10
+ {
11
+ "const": "Actor"
12
+ },
13
+ {
14
+ "const": "Application"
15
+ },
16
+ {
17
+ "const": "Group"
18
+ },
19
+ {
20
+ "const": "Organization"
21
+ },
22
+ {
23
+ "const": "Person"
24
+ },
25
+ {
26
+ "const": "Service"
27
+ },
28
+ {
29
+ "type": "string"
30
+ },
31
+ {
32
+ "type": "array",
33
+ "items": {
34
+ "anyOf": [
35
+ {
36
+ "const": "Actor"
37
+ },
38
+ {
39
+ "const": "Application"
40
+ },
41
+ {
42
+ "const": "Group"
43
+ },
44
+ {
45
+ "const": "Organization"
46
+ },
47
+ {
48
+ "const": "Person"
49
+ },
50
+ {
51
+ "const": "Service"
52
+ },
53
+ {
54
+ "type": "string"
55
+ }
56
+ ]
57
+ }
58
+ }
59
+ ],
60
+ "description": "Actor type."
61
+ }
62
+ },
63
+ "allOf": [
64
+ {
65
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsObject"
66
+ }
67
+ ]
68
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsApplication",
4
+ "title": "ActivityStreamsApplication",
5
+ "description": "A W3C Activity Streams Application.\n\nAn `Application` represents a software application.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "anyOf": [
10
+ {
11
+ "const": "Application"
12
+ },
13
+ {
14
+ "type": "string"
15
+ },
16
+ {
17
+ "type": "array",
18
+ "items": {
19
+ "anyOf": [
20
+ {
21
+ "const": "Application"
22
+ },
23
+ {
24
+ "type": "string"
25
+ }
26
+ ]
27
+ }
28
+ }
29
+ ],
30
+ "description": "Application type."
31
+ }
32
+ },
33
+ "required": [
34
+ "type"
35
+ ],
36
+ "allOf": [
37
+ {
38
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsActor"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsArticle",
4
+ "title": "ActivityStreamsArticle",
5
+ "description": "A W3C Activity Streams Article.\n\nAn `Article` is a written work.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "anyOf": [
10
+ {
11
+ "const": "Article"
12
+ },
13
+ {
14
+ "type": "string"
15
+ },
16
+ {
17
+ "type": "array",
18
+ "items": {
19
+ "anyOf": [
20
+ {
21
+ "const": "Article"
22
+ },
23
+ {
24
+ "type": "string"
25
+ }
26
+ ]
27
+ }
28
+ }
29
+ ],
30
+ "description": "Article type."
31
+ }
32
+ },
33
+ "required": [
34
+ "type"
35
+ ],
36
+ "allOf": [
37
+ {
38
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsDocument"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsAudio",
4
+ "title": "ActivityStreamsAudio",
5
+ "description": "A W3C Activity Streams Audio.\n\nAn `Audio` is an audio document of any kind.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "anyOf": [
10
+ {
11
+ "const": "Audio"
12
+ },
13
+ {
14
+ "type": "string"
15
+ },
16
+ {
17
+ "type": "array",
18
+ "items": {
19
+ "anyOf": [
20
+ {
21
+ "const": "Audio"
22
+ },
23
+ {
24
+ "type": "string"
25
+ }
26
+ ]
27
+ }
28
+ }
29
+ ],
30
+ "description": "Audio type."
31
+ }
32
+ },
33
+ "required": [
34
+ "type"
35
+ ],
36
+ "allOf": [
37
+ {
38
+ "$ref": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsDocument"
39
+ }
40
+ ]
41
+ }