@fedify/vocab 2.2.0-dev.731 → 2.2.0-dev.766

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 (49) hide show
  1. package/deno.json +1 -1
  2. package/dist/mod.cjs +3371 -472
  3. package/dist/mod.d.cts +618 -6
  4. package/dist/mod.d.ts +618 -6
  5. package/dist/mod.js +3368 -473
  6. package/dist-tests/actor.test.mjs +2 -2
  7. package/dist-tests/announce.yaml +8 -0
  8. package/dist-tests/article.yaml +28 -0
  9. package/dist-tests/chatmessage.yaml +28 -0
  10. package/dist-tests/collection.yaml +8 -0
  11. package/dist-tests/collectionpage.yaml +8 -0
  12. package/dist-tests/create.yaml +8 -0
  13. package/dist-tests/delete.yaml +8 -0
  14. package/dist-tests/{deno-D3oW1uY5.mjs → deno-_GjGa9o1.mjs} +2 -2
  15. package/dist-tests/interactionpolicy.yaml +16 -2
  16. package/dist-tests/lookup.test.mjs +2 -2
  17. package/dist-tests/note.yaml +28 -0
  18. package/dist-tests/object.yaml +3 -3
  19. package/dist-tests/orderedcollection.yaml +8 -0
  20. package/dist-tests/orderedcollectionpage.yaml +8 -0
  21. package/dist-tests/question.yaml +28 -0
  22. package/dist-tests/quoteauthorization.yaml +39 -0
  23. package/dist-tests/quoterequest.yaml +47 -0
  24. package/dist-tests/tombstone.yaml +10 -0
  25. package/dist-tests/type.test.mjs +10 -1
  26. package/dist-tests/update.yaml +8 -0
  27. package/dist-tests/{vocab-CGZuHaxe.mjs → vocab-DKp-OcRQ.mjs} +3372 -473
  28. package/dist-tests/vocab.test.mjs +356 -42
  29. package/package.json +4 -4
  30. package/src/__snapshots__/vocab.test.ts.snap +327 -15
  31. package/src/announce.yaml +8 -0
  32. package/src/article.yaml +28 -0
  33. package/src/chatmessage.yaml +28 -0
  34. package/src/collection.yaml +8 -0
  35. package/src/collectionpage.yaml +8 -0
  36. package/src/create.yaml +8 -0
  37. package/src/delete.yaml +8 -0
  38. package/src/interactionpolicy.yaml +16 -2
  39. package/src/note.yaml +28 -0
  40. package/src/object.yaml +3 -3
  41. package/src/orderedcollection.yaml +8 -0
  42. package/src/orderedcollectionpage.yaml +8 -0
  43. package/src/question.yaml +28 -0
  44. package/src/quoteauthorization.yaml +39 -0
  45. package/src/quoterequest.yaml +47 -0
  46. package/src/tombstone.yaml +10 -0
  47. package/src/type.test.ts +17 -1
  48. package/src/update.yaml +8 -0
  49. package/src/vocab.test.ts +498 -40
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { C as __exportAll, g as Person, h as Organization, l as Group, r as Application, y as Service } from "./vocab-CGZuHaxe.mjs";
4
- import { n as version, r as esm_default, t as name } from "./deno-D3oW1uY5.mjs";
3
+ import { j as __exportAll, r as Application, u as Group, v as Organization, w as Service, y as Person } from "./vocab-DKp-OcRQ.mjs";
4
+ import { n as version, r as esm_default, t as name } from "./deno-_GjGa9o1.mjs";
5
5
  import { t as getTypeId } from "./type-Cf-vxmre.mjs";
6
6
  import { test } from "@fedify/fixture";
7
7
  import { deepStrictEqual, ok, rejects, strictEqual, throws } from "node:assert/strict";
@@ -22,9 +22,17 @@ defaultContext:
22
22
  "@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
23
23
  Emoji: "toot:Emoji"
24
24
  Hashtag: "as:Hashtag"
25
+ quote:
26
+ "@id": "https://w3id.org/fep/044f#quote"
27
+ "@type": "@id"
25
28
  quoteUrl: "as:quoteUrl"
26
29
  _misskey_quote: "misskey:_misskey_quote"
27
30
  quoteUri: "fedibird:quoteUri"
31
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
32
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
33
+ quoteAuthorization:
34
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
35
+ "@type": "@id"
28
36
  emojiReactions:
29
37
  "@id": "fedibird:emojiReactions"
30
38
  "@type": "@id"
@@ -15,14 +15,32 @@ defaultContext:
15
15
  sensitive: "as:sensitive"
16
16
  Emoji: "toot:Emoji"
17
17
  Hashtag: "as:Hashtag"
18
+ quote:
19
+ "@id": "https://w3id.org/fep/044f#quote"
20
+ "@type": "@id"
18
21
  quoteUrl: "as:quoteUrl"
19
22
  _misskey_quote: "misskey:_misskey_quote"
20
23
  quoteUri: "fedibird:quoteUri"
24
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
25
+ quoteAuthorization:
26
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
27
+ "@type": "@id"
21
28
  emojiReactions:
22
29
  "@id": "fedibird:emojiReactions"
23
30
  "@type": "@id"
24
31
 
25
32
  properties:
33
+ - singularName: quote
34
+ functional: true
35
+ compactName: quote
36
+ uri: "https://w3id.org/fep/044f#quote"
37
+ description: |
38
+ The quoted ActivityStreams object.
39
+
40
+ This property is serialized as an IRI-valued JSON-LD property.
41
+ range:
42
+ - "https://www.w3.org/ns/activitystreams#Object"
43
+
26
44
  - singularName: quoteUrl
27
45
  functional: true
28
46
  compactName: quoteUrl
@@ -45,3 +63,13 @@ properties:
45
63
  the values of those three properties in order.
46
64
  range:
47
65
  - "fedify:url"
66
+
67
+ - singularName: quoteAuthorization
68
+ functional: true
69
+ compactName: quoteAuthorization
70
+ uri: "https://w3id.org/fep/044f#quoteAuthorization"
71
+ description: |
72
+ A {@link QuoteAuthorization} object that proves this quote was approved
73
+ by the quoted object's author.
74
+ range:
75
+ - "https://w3id.org/fep/044f#QuoteAuthorization"
@@ -19,14 +19,32 @@ defaultContext:
19
19
  fedibird: "http://fedibird.com/ns#"
20
20
  Emoji: "toot:Emoji"
21
21
  ChatMessage: "http://litepub.social/ns#ChatMessage"
22
+ quote:
23
+ "@id": "https://w3id.org/fep/044f#quote"
24
+ "@type": "@id"
22
25
  quoteUrl: "as:quoteUrl"
23
26
  _misskey_quote: "misskey:_misskey_quote"
24
27
  quoteUri: "fedibird:quoteUri"
28
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
29
+ quoteAuthorization:
30
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
31
+ "@type": "@id"
25
32
  emojiReactions:
26
33
  "@id": "fedibird:emojiReactions"
27
34
  "@type": "@id"
28
35
 
29
36
  properties:
37
+ - singularName: quote
38
+ functional: true
39
+ compactName: quote
40
+ uri: "https://w3id.org/fep/044f#quote"
41
+ description: |
42
+ The quoted ActivityStreams object.
43
+
44
+ This property is serialized as an IRI-valued JSON-LD property.
45
+ range:
46
+ - "https://www.w3.org/ns/activitystreams#Object"
47
+
30
48
  - singularName: quoteUrl
31
49
  functional: true
32
50
  compactName: quoteUrl
@@ -49,3 +67,13 @@ properties:
49
67
  the values of those three properties in order.
50
68
  range:
51
69
  - "fedify:url"
70
+
71
+ - singularName: quoteAuthorization
72
+ functional: true
73
+ compactName: quoteAuthorization
74
+ uri: "https://w3id.org/fep/044f#quoteAuthorization"
75
+ description: |
76
+ A {@link QuoteAuthorization} object that proves this quote was approved
77
+ by the quoted object's author.
78
+ range:
79
+ - "https://w3id.org/fep/044f#QuoteAuthorization"
@@ -22,9 +22,17 @@ defaultContext:
22
22
  votersCount: "toot:votersCount"
23
23
  Emoji: "toot:Emoji"
24
24
  Hashtag: "as:Hashtag"
25
+ quote:
26
+ "@id": "https://w3id.org/fep/044f#quote"
27
+ "@type": "@id"
25
28
  quoteUrl: "as:quoteUrl"
26
29
  _misskey_quote: "misskey:_misskey_quote"
27
30
  quoteUri: "fedibird:quoteUri"
31
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
32
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
33
+ quoteAuthorization:
34
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
35
+ "@type": "@id"
28
36
  emojiReactions:
29
37
  "@id": "fedibird:emojiReactions"
30
38
  "@type": "@id"
@@ -20,9 +20,17 @@ defaultContext:
20
20
  votersCount: "toot:votersCount"
21
21
  Emoji: "toot:Emoji"
22
22
  Hashtag: "as:Hashtag"
23
+ quote:
24
+ "@id": "https://w3id.org/fep/044f#quote"
25
+ "@type": "@id"
23
26
  quoteUrl: "as:quoteUrl"
24
27
  _misskey_quote: "misskey:_misskey_quote"
25
28
  quoteUri: "fedibird:quoteUri"
29
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
30
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
31
+ quoteAuthorization:
32
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
33
+ "@type": "@id"
26
34
  emojiReactions:
27
35
  "@id": "fedibird:emojiReactions"
28
36
  "@type": "@id"
@@ -20,9 +20,17 @@ defaultContext:
20
20
  Emoji: "toot:Emoji"
21
21
  Hashtag: "as:Hashtag"
22
22
  ChatMessage: "http://litepub.social/ns#ChatMessage"
23
+ quote:
24
+ "@id": "https://w3id.org/fep/044f#quote"
25
+ "@type": "@id"
23
26
  quoteUrl: "as:quoteUrl"
24
27
  _misskey_quote: "misskey:_misskey_quote"
25
28
  quoteUri: "fedibird:quoteUri"
29
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
30
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
31
+ quoteAuthorization:
32
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
33
+ "@type": "@id"
26
34
  emojiReactions:
27
35
  "@id": "fedibird:emojiReactions"
28
36
  "@type": "@id"
@@ -22,7 +22,15 @@ defaultContext:
22
22
  Emoji: "toot:Emoji"
23
23
  Hashtag: "as:Hashtag"
24
24
  ChatMessage: "http://litepub.social/ns#ChatMessage"
25
+ quote:
26
+ "@id": "https://w3id.org/fep/044f#quote"
27
+ "@type": "@id"
25
28
  quoteUrl: "as:quoteUrl"
26
29
  _misskey_quote: "misskey:_misskey_quote"
27
30
  quoteUri: "fedibird:quoteUri"
31
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
32
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
33
+ quoteAuthorization:
34
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
35
+ "@type": "@id"
28
36
  properties: []
@@ -1,6 +1,6 @@
1
1
  import "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { S as __commonJSMin, w as __toESM } from "./vocab-CGZuHaxe.mjs";
3
+ import { A as __commonJSMin, M as __toESM } from "./vocab-DKp-OcRQ.mjs";
4
4
  //#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
5
5
  var require_glob_to_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
6
  module.exports = function(glob, opts) {
@@ -1204,6 +1204,6 @@ var esm_default = new class FetchMock {
1204
1204
  //#endregion
1205
1205
  //#region deno.json
1206
1206
  var name = "@fedify/vocab";
1207
- var version = "2.2.0-dev.731+3d1ca85e";
1207
+ var version = "2.2.0-dev.766+e04e54aa";
1208
1208
  //#endregion
1209
1209
  export { version as n, esm_default as r, name as t };
@@ -6,8 +6,9 @@ entity: false
6
6
  typeless: true
7
7
  description: |
8
8
  Represents an interaction policy attached to a post, specifying who can
9
- like, reply to, or announce it. Each sub-policy ({@link InteractionRule})
10
- defines which actors receive automatic or manual approval.
9
+ like, reply to, announce, or quote it. Each sub-policy
10
+ ({@link InteractionRule}) defines which actors receive automatic or manual
11
+ approval.
11
12
 
12
13
  See [GoToSocial interaction controls](https://docs.gotosocial.org/en/latest/federation/interaction_controls/)
13
14
  for details.
@@ -52,3 +53,16 @@ properties:
52
53
  (i.e., `automaticApproval` defaults to the public collection).
53
54
  range:
54
55
  - "https://gotosocial.org/ns#InteractionRule"
56
+
57
+ - singularName: canQuote
58
+ functional: true
59
+ compactName: canQuote
60
+ uri: "https://gotosocial.org/ns#canQuote"
61
+ untyped: true
62
+ description: |
63
+ The sub-policy specifying who can quote the post.
64
+
65
+ When absent, implementations should assume that anyone can quote the post
66
+ (i.e., `automaticApproval` defaults to the public collection).
67
+ range:
68
+ - "https://gotosocial.org/ns#InteractionRule"
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { f as Note, g as Person, i as Collection, p as Object$1 } from "./vocab-CGZuHaxe.mjs";
4
- import { n as version, r as esm_default, t as name } from "./deno-D3oW1uY5.mjs";
3
+ import { g as Object$1, h as Note, i as Collection, y as Person } from "./vocab-DKp-OcRQ.mjs";
4
+ import { n as version, r as esm_default, t as name } from "./deno-_GjGa9o1.mjs";
5
5
  import { t as getTypeId } from "./type-Cf-vxmre.mjs";
6
6
  import { t as assertInstanceOf } from "./utils-CE8Dk5hm.mjs";
7
7
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -17,14 +17,32 @@ defaultContext:
17
17
  sensitive: "as:sensitive"
18
18
  Emoji: "toot:Emoji"
19
19
  Hashtag: "as:Hashtag"
20
+ quote:
21
+ "@id": "https://w3id.org/fep/044f#quote"
22
+ "@type": "@id"
20
23
  quoteUrl: "as:quoteUrl"
21
24
  _misskey_quote: "misskey:_misskey_quote"
22
25
  quoteUri: "fedibird:quoteUri"
26
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
27
+ quoteAuthorization:
28
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
29
+ "@type": "@id"
23
30
  emojiReactions:
24
31
  "@id": "fedibird:emojiReactions"
25
32
  "@type": "@id"
26
33
 
27
34
  properties:
35
+ - singularName: quote
36
+ functional: true
37
+ compactName: quote
38
+ uri: "https://w3id.org/fep/044f#quote"
39
+ description: |
40
+ The quoted ActivityStreams object.
41
+
42
+ This property is serialized as an IRI-valued JSON-LD property.
43
+ range:
44
+ - "https://www.w3.org/ns/activitystreams#Object"
45
+
28
46
  - singularName: quoteUrl
29
47
  functional: true
30
48
  compactName: quoteUrl
@@ -47,3 +65,13 @@ properties:
47
65
  the values of those three properties in order.
48
66
  range:
49
67
  - "fedify:url"
68
+
69
+ - singularName: quoteAuthorization
70
+ functional: true
71
+ compactName: quoteAuthorization
72
+ uri: "https://w3id.org/fep/044f#quoteAuthorization"
73
+ description: |
74
+ A {@link QuoteAuthorization} object that proves this quote was approved
75
+ by the quoted object's author.
76
+ range:
77
+ - "https://w3id.org/fep/044f#QuoteAuthorization"
@@ -411,9 +411,9 @@ properties:
411
411
  untyped: true
412
412
  description: |
413
413
  The interaction policy for this object, specifying who can like, reply to,
414
- or announce it. Contains sub-policies (`canLike`, `canReply`,
415
- `canAnnounce`) each defining `automaticApproval` and `manualApproval`
416
- lists.
414
+ announce, or quote it. Contains sub-policies (`canLike`, `canReply`,
415
+ `canAnnounce`, `canQuote`) each defining `automaticApproval` and
416
+ `manualApproval` lists.
417
417
 
418
418
  When absent, implementations should assume anyone can interact with
419
419
  the object. Setting this property signals that the server understands
@@ -19,9 +19,17 @@ defaultContext:
19
19
  votersCount: "toot:votersCount"
20
20
  Emoji: "toot:Emoji"
21
21
  Hashtag: "as:Hashtag"
22
+ quote:
23
+ "@id": "https://w3id.org/fep/044f#quote"
24
+ "@type": "@id"
22
25
  quoteUrl: "as:quoteUrl"
23
26
  _misskey_quote: "misskey:_misskey_quote"
24
27
  quoteUri: "fedibird:quoteUri"
28
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
29
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
30
+ quoteAuthorization:
31
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
32
+ "@type": "@id"
25
33
  emojiReactions:
26
34
  "@id": "fedibird:emojiReactions"
27
35
  "@type": "@id"
@@ -20,9 +20,17 @@ defaultContext:
20
20
  votersCount: "toot:votersCount"
21
21
  Emoji: "toot:Emoji"
22
22
  Hashtag: "as:Hashtag"
23
+ quote:
24
+ "@id": "https://w3id.org/fep/044f#quote"
25
+ "@type": "@id"
23
26
  quoteUrl: "as:quoteUrl"
24
27
  _misskey_quote: "misskey:_misskey_quote"
25
28
  quoteUri: "fedibird:quoteUri"
29
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
30
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
31
+ quoteAuthorization:
32
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
33
+ "@type": "@id"
26
34
  emojiReactions:
27
35
  "@id": "fedibird:emojiReactions"
28
36
  "@type": "@id"
@@ -27,9 +27,16 @@ defaultContext:
27
27
  "@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
28
28
  Emoji: "toot:Emoji"
29
29
  Hashtag: "as:Hashtag"
30
+ quote:
31
+ "@id": "https://w3id.org/fep/044f#quote"
32
+ "@type": "@id"
30
33
  quoteUrl: "as:quoteUrl"
31
34
  _misskey_quote: "misskey:_misskey_quote"
32
35
  quoteUri: "fedibird:quoteUri"
36
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
37
+ quoteAuthorization:
38
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
39
+ "@type": "@id"
33
40
  emojiReactions:
34
41
  "@id": "fedibird:emojiReactions"
35
42
  "@type": "@id"
@@ -80,6 +87,17 @@ properties:
80
87
  range:
81
88
  - "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
82
89
 
90
+ - singularName: quote
91
+ functional: true
92
+ compactName: quote
93
+ uri: "https://w3id.org/fep/044f#quote"
94
+ description: |
95
+ The quoted ActivityStreams object.
96
+
97
+ This property is serialized as an IRI-valued JSON-LD property.
98
+ range:
99
+ - "https://www.w3.org/ns/activitystreams#Object"
100
+
83
101
  - singularName: quoteUrl
84
102
  functional: true
85
103
  compactName: quoteUrl
@@ -102,3 +120,13 @@ properties:
102
120
  the values of those three properties in order.
103
121
  range:
104
122
  - "fedify:url"
123
+
124
+ - singularName: quoteAuthorization
125
+ functional: true
126
+ compactName: quoteAuthorization
127
+ uri: "https://w3id.org/fep/044f#quoteAuthorization"
128
+ description: |
129
+ A {@link QuoteAuthorization} object that proves this quote was approved
130
+ by the quoted object's author.
131
+ range:
132
+ - "https://w3id.org/fep/044f#QuoteAuthorization"
@@ -0,0 +1,39 @@
1
+ $schema: ../../vocab-tools/schema.yaml
2
+ name: QuoteAuthorization
3
+ compactName: QuoteAuthorization
4
+ uri: "https://w3id.org/fep/044f#QuoteAuthorization"
5
+ extends: "https://www.w3.org/ns/activitystreams#Object"
6
+ entity: true
7
+ description: |
8
+ Proves that a quote interaction has been approved by the quoted object's
9
+ author.
10
+
11
+ This object is dereferenceable and is used by third parties to verify that a
12
+ quote was authorized. The `attributedTo` property identifies the author who
13
+ granted the authorization.
14
+
15
+ See [FEP-044f](https://w3id.org/fep/044f) for details.
16
+ defaultContext:
17
+ - "https://www.w3.org/ns/activitystreams"
18
+ - "https://w3id.org/security/data-integrity/v1"
19
+ - "https://gotosocial.org/ns"
20
+ - QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
21
+
22
+ properties:
23
+ - singularName: interactingObject
24
+ functional: true
25
+ compactName: interactingObject
26
+ uri: "https://gotosocial.org/ns#interactingObject"
27
+ description: |
28
+ The URI of the quote object that has been authorized.
29
+ range:
30
+ - "https://www.w3.org/ns/activitystreams#Object"
31
+
32
+ - singularName: interactionTarget
33
+ functional: true
34
+ compactName: interactionTarget
35
+ uri: "https://gotosocial.org/ns#interactionTarget"
36
+ description: |
37
+ The URI of the object that is the target of the authorized quote.
38
+ range:
39
+ - "https://www.w3.org/ns/activitystreams#Object"
@@ -0,0 +1,47 @@
1
+ $schema: ../../vocab-tools/schema.yaml
2
+ name: QuoteRequest
3
+ compactName: QuoteRequest
4
+ uri: "https://w3id.org/fep/044f#QuoteRequest"
5
+ extends: "https://www.w3.org/ns/activitystreams#Activity"
6
+ entity: true
7
+ description: |
8
+ A request to quote an object that requires approval from the quoted object's
9
+ author.
10
+
11
+ The `object` property references the quoted object, and the `instrument`
12
+ property contains the quote post itself.
13
+
14
+ The quoted object's author responds with an {@link Accept} (with a
15
+ {@link QuoteAuthorization} as `result`) or a {@link Reject}.
16
+
17
+ See [FEP-044f](https://w3id.org/fep/044f) for details.
18
+ defaultContext:
19
+ - "https://w3id.org/identity/v1"
20
+ - "https://www.w3.org/ns/activitystreams"
21
+ - "https://w3id.org/security/data-integrity/v1"
22
+ - "https://gotosocial.org/ns"
23
+ - toot: "http://joinmastodon.org/ns#"
24
+ misskey: "https://misskey-hub.net/ns#"
25
+ fedibird: "http://fedibird.com/ns#"
26
+ sensitive: "as:sensitive"
27
+ votersCount:
28
+ "@id": "toot:votersCount"
29
+ "@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
30
+ Emoji: "toot:Emoji"
31
+ Hashtag: "as:Hashtag"
32
+ ChatMessage: "http://litepub.social/ns#ChatMessage"
33
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
34
+ quote:
35
+ "@id": "https://w3id.org/fep/044f#quote"
36
+ "@type": "@id"
37
+ quoteUrl: "as:quoteUrl"
38
+ _misskey_quote: "misskey:_misskey_quote"
39
+ quoteUri: "fedibird:quoteUri"
40
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
41
+ quoteAuthorization:
42
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
43
+ "@type": "@id"
44
+ emojiReactions:
45
+ "@id": "fedibird:emojiReactions"
46
+ "@type": "@id"
47
+ properties: []
@@ -14,6 +14,16 @@ defaultContext:
14
14
  - "https://gotosocial.org/ns"
15
15
 
16
16
  properties:
17
+ - pluralName: formerTypes
18
+ singularName: formerType
19
+ singularAccessor: true
20
+ compactName: formerType
21
+ uri: "https://www.w3.org/ns/activitystreams#formerType"
22
+ description: |
23
+ On a `Tombstone` object, the `formerType` property identifies the type of
24
+ the object that was deleted.
25
+ range:
26
+ - "fedify:vocabEntityType"
17
27
  - singularName: deleted
18
28
  functional: true
19
29
  compactName: deleted
@@ -1,6 +1,6 @@
1
1
  import "@js-temporal/polyfill";
2
2
  globalThis.addEventListener = () => {};
3
- import { g as Person } from "./vocab-CGZuHaxe.mjs";
3
+ import { D as getEntityTypeById, O as isEntityType, m as Link, y as Person } from "./vocab-DKp-OcRQ.mjs";
4
4
  import { t as getTypeId } from "./type-Cf-vxmre.mjs";
5
5
  import { test } from "@fedify/fixture";
6
6
  import { deepStrictEqual } from "node:assert/strict";
@@ -12,5 +12,14 @@ test("getTypeId()", () => {
12
12
  deepStrictEqual(getTypeId(null), null);
13
13
  deepStrictEqual(getTypeId(void 0), void 0);
14
14
  });
15
+ test("entity type helpers", () => {
16
+ deepStrictEqual(isEntityType(Person), true);
17
+ deepStrictEqual(isEntityType(Link), false);
18
+ deepStrictEqual(getEntityTypeById(Person.typeId), Person);
19
+ deepStrictEqual(getEntityTypeById(Person.typeId.href), Person);
20
+ deepStrictEqual(getEntityTypeById(Link.typeId), void 0);
21
+ deepStrictEqual(getEntityTypeById(null), void 0);
22
+ deepStrictEqual(getEntityTypeById(void 0), void 0);
23
+ });
15
24
  //#endregion
16
25
  export {};
@@ -47,8 +47,16 @@ defaultContext:
47
47
  PropertyValue: "schema:PropertyValue"
48
48
  value: "schema:value"
49
49
  ChatMessage: "http://litepub.social/ns#ChatMessage"
50
+ quote:
51
+ "@id": "https://w3id.org/fep/044f#quote"
52
+ "@type": "@id"
50
53
  fedibird: "http://fedibird.com/ns#"
51
54
  quoteUri: "fedibird:quoteUri"
55
+ QuoteAuthorization: "https://w3id.org/fep/044f#QuoteAuthorization"
56
+ QuoteRequest: "https://w3id.org/fep/044f#QuoteRequest"
57
+ quoteAuthorization:
58
+ "@id": "https://w3id.org/fep/044f#quoteAuthorization"
59
+ "@type": "@id"
52
60
  misskey: "https://misskey-hub.net/ns#"
53
61
  _misskey_quote: "misskey:_misskey_quote"
54
62
  _misskey_followedMessage: "misskey:_misskey_followedMessage"