@fedify/fedify 0.14.0-dev.327 → 0.14.0-dev.331

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/CHANGES.md +12 -0
  2. package/esm/codegen/schema.yaml +10 -0
  3. package/esm/federation/send.js +4 -1
  4. package/esm/sig/proof.js +1 -0
  5. package/esm/vocab/accept.yaml +1 -0
  6. package/esm/vocab/activity.yaml +7 -0
  7. package/esm/vocab/add.yaml +1 -0
  8. package/esm/vocab/announce.yaml +1 -0
  9. package/esm/vocab/application.yaml +18 -0
  10. package/esm/vocab/arrive.yaml +1 -0
  11. package/esm/vocab/article.yaml +1 -0
  12. package/esm/vocab/audio.yaml +1 -0
  13. package/esm/vocab/block.yaml +1 -0
  14. package/esm/vocab/chatmessage.yaml +1 -0
  15. package/esm/vocab/collection.yaml +6 -0
  16. package/esm/vocab/collectionpage.yaml +4 -0
  17. package/esm/vocab/create.yaml +1 -0
  18. package/esm/vocab/delete.yaml +1 -0
  19. package/esm/vocab/dislike.yaml +1 -0
  20. package/esm/vocab/document.yaml +3 -0
  21. package/esm/vocab/emoji.yaml +1 -0
  22. package/esm/vocab/endpoints.yaml +7 -0
  23. package/esm/vocab/event.yaml +1 -0
  24. package/esm/vocab/flag.yaml +1 -0
  25. package/esm/vocab/follow.yaml +1 -0
  26. package/esm/vocab/group.yaml +18 -0
  27. package/esm/vocab/hashtag.yaml +1 -0
  28. package/esm/vocab/ignore.yaml +1 -0
  29. package/esm/vocab/image.yaml +1 -0
  30. package/esm/vocab/intransitiveactivity.yaml +1 -0
  31. package/esm/vocab/invite.yaml +1 -0
  32. package/esm/vocab/join.yaml +1 -0
  33. package/esm/vocab/key.yaml +3 -0
  34. package/esm/vocab/leave.yaml +1 -0
  35. package/esm/vocab/like.yaml +1 -0
  36. package/esm/vocab/link.yaml +9 -0
  37. package/esm/vocab/listen.yaml +1 -0
  38. package/esm/vocab/mention.yaml +1 -0
  39. package/esm/vocab/move.yaml +1 -0
  40. package/esm/vocab/multikey.yaml +3 -0
  41. package/esm/vocab/note.yaml +1 -0
  42. package/esm/vocab/object.yaml +29 -0
  43. package/esm/vocab/offer.yaml +1 -0
  44. package/esm/vocab/orderedcollection.yaml +2 -0
  45. package/esm/vocab/orderedcollectionpage.yaml +3 -0
  46. package/esm/vocab/organization.yaml +18 -0
  47. package/esm/vocab/page.yaml +1 -0
  48. package/esm/vocab/person.yaml +18 -0
  49. package/esm/vocab/place.yaml +7 -0
  50. package/esm/vocab/profile.yaml +2 -0
  51. package/esm/vocab/propertyvalue.yaml +3 -0
  52. package/esm/vocab/question.yaml +5 -0
  53. package/esm/vocab/read.yaml +1 -0
  54. package/esm/vocab/reject.yaml +1 -0
  55. package/esm/vocab/relationship.yaml +4 -0
  56. package/esm/vocab/remove.yaml +1 -0
  57. package/esm/vocab/service.yaml +18 -0
  58. package/esm/vocab/tentativeaccept.yaml +1 -0
  59. package/esm/vocab/tentativereject.yaml +1 -0
  60. package/esm/vocab/tombstone.yaml +2 -0
  61. package/esm/vocab/travel.yaml +1 -0
  62. package/esm/vocab/undo.yaml +1 -0
  63. package/esm/vocab/update.yaml +1 -0
  64. package/esm/vocab/video.yaml +1 -0
  65. package/esm/vocab/view.yaml +1 -0
  66. package/esm/vocab/vocab.js +5993 -240
  67. package/package.json +1 -1
  68. package/types/federation/send.d.ts.map +1 -1
  69. package/types/sig/proof.d.ts.map +1 -1
  70. package/types/vocab/vocab.d.ts +473 -0
  71. package/types/vocab/vocab.d.ts.map +1 -1
package/CHANGES.md CHANGED
@@ -8,6 +8,18 @@ Version 0.14.0
8
8
 
9
9
  To be released.
10
10
 
11
+ - Improved the performance of `Object.toJsonLd()` method.
12
+
13
+ - `Object.toJsonLd()` method no longer guarantees that the returned
14
+ JSON-LD object is compacted unless the `format: "compact"` option is
15
+ provided.
16
+ - Added `format` option to `Object.toJsonLd()` method.
17
+ - Deprecated `expand` option of `Object.toJsonLd()` method.
18
+ Use `format: "expand"` option instead.
19
+ - The `context` option of `Object.toJsonLd()` method is now only
20
+ applicable to `format: "compact"`. Otherwise, it throws
21
+ a `TypeError`.
22
+
11
23
 
12
24
  Version 0.13.0
13
25
  --------------
@@ -60,6 +60,11 @@ $defs:
60
60
  description: The qualified URI of the property.
61
61
  type: string
62
62
  format: uri
63
+ compactName:
64
+ description: >-
65
+ The property name used in the compacted JSON-LD document. It is used
66
+ as the key of the property.
67
+ type: string
63
68
  subpropertyOf:
64
69
  description: >-
65
70
  The qualified URI of the superproperty of the property (if any).
@@ -180,6 +185,11 @@ properties:
180
185
  description: The qualified URI of the type.
181
186
  type: string
182
187
  format: uri
188
+ compactName:
189
+ description: >-
190
+ The type name used in the compacted JSON-LD document. It is used as the
191
+ value of the `type` field.
192
+ type: string
183
193
  extends:
184
194
  description: The qualified URIs of the base type of the type (if any).
185
195
  type: string
@@ -66,7 +66,10 @@ export async function sendActivity({ activity, keys, inbox, contextLoader, docum
66
66
  })),
67
67
  });
68
68
  }
69
- const jsonLd = await activity.toJsonLd({ contextLoader });
69
+ const jsonLd = await activity.toJsonLd({
70
+ format: "compact",
71
+ contextLoader,
72
+ });
70
73
  headers = new Headers(headers);
71
74
  headers.set("Content-Type", "application/activity+json");
72
75
  let request = new Request(inbox, {
package/esm/sig/proof.js CHANGED
@@ -23,6 +23,7 @@ export async function createProof(object, privateKey, keyId, { contextLoader, co
23
23
  }
24
24
  const objectWithoutProofs = object.clone({ proofs: [] });
25
25
  const compactMsg = await objectWithoutProofs.toJsonLd({
26
+ format: "compact",
26
27
  contextLoader,
27
28
  context,
28
29
  });
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Accept
3
+ compactName: Accept
3
4
  uri: "https://www.w3.org/ns/activitystreams#Accept"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Activity
3
+ compactName: Activity
3
4
  uri: "https://www.w3.org/ns/activitystreams#Activity"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -18,6 +19,7 @@ properties:
18
19
  - pluralName: actors
19
20
  singularName: actor
20
21
  singularAccessor: true
22
+ compactName: actor
21
23
  uri: "https://www.w3.org/ns/activitystreams#actor"
22
24
  subpropertyOf: "https://www.w3.org/ns/activitystreams#attributedTo"
23
25
  description: |
@@ -34,6 +36,7 @@ properties:
34
36
  - pluralName: objects
35
37
  singularName: object
36
38
  singularAccessor: true
39
+ compactName: object
37
40
  uri: "https://www.w3.org/ns/activitystreams#object"
38
41
  description: |
39
42
  When used within an {@link Activity}, describes the direct object of
@@ -45,6 +48,7 @@ properties:
45
48
  - pluralName: targets
46
49
  singularName: target
47
50
  singularAccessor: true
51
+ compactName: target
48
52
  uri: "https://www.w3.org/ns/activitystreams#target"
49
53
  description: |
50
54
  Describes the indirect object, or target, of the activity. The precise
@@ -59,6 +63,7 @@ properties:
59
63
  - pluralName: results
60
64
  singularName: result
61
65
  singularAccessor: true
66
+ compactName: result
62
67
  uri: "https://www.w3.org/ns/activitystreams#result"
63
68
  description: |
64
69
  Describes the result of the activity. For instance, if a particular action
@@ -70,6 +75,7 @@ properties:
70
75
  - pluralName: origins
71
76
  singularName: origin
72
77
  singularAccessor: true
78
+ compactName: origin
73
79
  uri: "https://www.w3.org/ns/activitystreams#origin"
74
80
  description: |
75
81
  Describes an indirect object of the activity from which the activity is
@@ -82,6 +88,7 @@ properties:
82
88
  - pluralName: instruments
83
89
  singularName: instrument
84
90
  singularAccessor: true
91
+ compactName: instrument
85
92
  uri: "https://www.w3.org/ns/activitystreams#instrument"
86
93
  description: |
87
94
  Identifies one or more objects used (or to be used) in the completion of
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Add
3
+ compactName: Add
3
4
  uri: "https://www.w3.org/ns/activitystreams#Add"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Announce
3
+ compactName: Announce
3
4
  uri: "https://www.w3.org/ns/activitystreams#Announce"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Application
3
+ compactName: Application
3
4
  uri: "https://www.w3.org/ns/activitystreams#Application"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -30,6 +31,7 @@ properties:
30
31
  - pluralName: preferredUsernames
31
32
  singularName: preferredUsername
32
33
  singularAccessor: true
34
+ compactName: preferredUsername
33
35
  uri: "https://www.w3.org/ns/activitystreams#preferredUsername"
34
36
  description: |
35
37
  A short username which may be used to refer to the actor,
@@ -41,6 +43,7 @@ properties:
41
43
  - pluralName: publicKeys
42
44
  singularName: publicKey
43
45
  singularAccessor: true
46
+ compactName: publicKey
44
47
  uri: "https://w3id.org/security#publicKey"
45
48
  description: A public part of the key pair owned by this actor.
46
49
  untyped: true
@@ -50,6 +53,7 @@ properties:
50
53
  - pluralName: assertionMethods
51
54
  singularName: assertionMethod
52
55
  singularAccessor: true
56
+ compactName: assertionMethod
53
57
  uri: "https://w3id.org/security#assertionMethod"
54
58
  description: |
55
59
  Represents this actor's public keys. It serves as equivalent to
@@ -61,6 +65,7 @@ properties:
61
65
 
62
66
  - singularName: manuallyApprovesFollowers
63
67
  functional: true
68
+ compactName: manuallyApprovesFollowers
64
69
  uri: "https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"
65
70
  description: |
66
71
  When `true`, conveys that for this actor, follow requests are not usually
@@ -74,6 +79,7 @@ properties:
74
79
 
75
80
  - singularName: inbox
76
81
  functional: true
82
+ compactName: inbox
77
83
  uri: "http://www.w3.org/ns/ldp#inbox"
78
84
  description: |
79
85
  The inbox stream contains all activities received by the actor. The server
@@ -94,6 +100,7 @@ properties:
94
100
 
95
101
  - singularName: outbox
96
102
  functional: true
103
+ compactName: outbox
97
104
  uri: "https://www.w3.org/ns/activitystreams#outbox"
98
105
  description: |
99
106
  The outbox stream contains activities the user has published,
@@ -111,6 +118,7 @@ properties:
111
118
 
112
119
  - singularName: following
113
120
  functional: true
121
+ compactName: following
114
122
  uri: "https://www.w3.org/ns/activitystreams#following"
115
123
  description: |
116
124
  This is a list of everybody that the actor has followed, added as a
@@ -123,6 +131,7 @@ properties:
123
131
 
124
132
  - singularName: followers
125
133
  functional: true
134
+ compactName: followers
126
135
  uri: "https://www.w3.org/ns/activitystreams#followers"
127
136
  description: |
128
137
  This is a list of everyone who has sent a {@link Follow} activity
@@ -138,6 +147,7 @@ properties:
138
147
 
139
148
  - singularName: liked
140
149
  functional: true
150
+ compactName: liked
141
151
  uri: "https://www.w3.org/ns/activitystreams#liked"
142
152
  description: |
143
153
  This is a list of every object from all of the actor's {@link Like}
@@ -151,6 +161,7 @@ properties:
151
161
 
152
162
  - singularName: featured
153
163
  functional: true
164
+ compactName: featured
154
165
  uri: "http://joinmastodon.org/ns#featured"
155
166
  description: |
156
167
  What is known in Mastodon as "pinned statuses", or statuses that are always
@@ -162,6 +173,7 @@ properties:
162
173
 
163
174
  - singularName: featuredTags
164
175
  functional: true
176
+ compactName: featuredTags
165
177
  uri: "http://joinmastodon.org/ns#featuredTags"
166
178
  description: |
167
179
  What is known in Mastodon as "featured hashtags", hashtags that are featured
@@ -174,6 +186,7 @@ properties:
174
186
  - pluralName: streams
175
187
  singularName: stream
176
188
  singularAccessor: false
189
+ compactName: streams
177
190
  uri: "https://www.w3.org/ns/activitystreams#streams"
178
191
  description: |
179
192
  A list of supplementary Collections which may be of interest.
@@ -182,6 +195,7 @@ properties:
182
195
 
183
196
  - singularName: endpoints
184
197
  functional: true
198
+ compactName: endpoints
185
199
  uri: "https://www.w3.org/ns/activitystreams#endpoints"
186
200
  description: |
187
201
  A JSON object which maps additional (typically server/domain-wide) endpoints
@@ -193,6 +207,7 @@ properties:
193
207
 
194
208
  - singularName: discoverable
195
209
  functional: true
210
+ compactName: discoverable
196
211
  uri: "http://joinmastodon.org/ns#discoverable"
197
212
  description: |
198
213
  Allows users to opt-in or opt-out of discoverability features like
@@ -204,6 +219,7 @@ properties:
204
219
 
205
220
  - singularName: suspended
206
221
  functional: true
222
+ compactName: suspended
207
223
  uri: "http://joinmastodon.org/ns#suspended"
208
224
  description: |
209
225
  Reports whether a user was locally suspended, for better handling of
@@ -213,6 +229,7 @@ properties:
213
229
 
214
230
  - singularName: memorial
215
231
  functional: true
232
+ compactName: memorial
216
233
  uri: "http://joinmastodon.org/ns#memorial"
217
234
  description: Whether the actor is in-memorial state.
218
235
  range:
@@ -220,6 +237,7 @@ properties:
220
237
 
221
238
  - singularName: indexable
222
239
  functional: true
240
+ compactName: indexable
223
241
  uri: "http://joinmastodon.org/ns#indexable"
224
242
  description: Whether the actor allows to be indexed.
225
243
  range:
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Arrive
3
+ compact: Arrive
3
4
  uri: "https://www.w3.org/ns/activitystreams#Arrive"
4
5
  extends: "https://www.w3.org/ns/activitystreams#IntransitiveActivity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Article
3
+ compactName: Article
3
4
  uri: "https://www.w3.org/ns/activitystreams#Article"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Audio
3
+ compactName: Audio
3
4
  uri: "https://www.w3.org/ns/activitystreams#Audio"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Document"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Block
3
+ compactName: Block
3
4
  uri: "https://www.w3.org/ns/activitystreams#Block"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Ignore"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: ChatMessage
3
+ compactName: ChatMessage
3
4
  uri: "http://litepub.social/ns#ChatMessage"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Collection
3
+ compactName: Collection
3
4
  uri: "https://www.w3.org/ns/activitystreams#Collection"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -20,6 +21,7 @@ defaultContext:
20
21
  properties:
21
22
  - singularName: totalItems
22
23
  functional: true
24
+ compactName: totalItems
23
25
  uri: "https://www.w3.org/ns/activitystreams#totalItems"
24
26
  description: |
25
27
  A non-negative integer specifying the total number of objects contained by
@@ -30,6 +32,7 @@ properties:
30
32
 
31
33
  - singularName: current
32
34
  functional: true
35
+ compactName: current
33
36
  uri: "https://www.w3.org/ns/activitystreams#current"
34
37
  description: |
35
38
  In a paged {@link Collection}, indicates the page that contains
@@ -39,6 +42,7 @@ properties:
39
42
 
40
43
  - singularName: first
41
44
  functional: true
45
+ compactName: first
42
46
  uri: "https://www.w3.org/ns/activitystreams#first"
43
47
  description: |
44
48
  In a paged {@link Collection}, indicates the furthest preceding page of
@@ -48,6 +52,7 @@ properties:
48
52
 
49
53
  - singularName: last
50
54
  functional: true
55
+ compactName: last
51
56
  uri: "https://www.w3.org/ns/activitystreams#last"
52
57
  description: |
53
58
  In a paged {@link Collection}, indicates the furthest proceeding page of
@@ -57,6 +62,7 @@ properties:
57
62
 
58
63
  - pluralName: items
59
64
  singularName: item
65
+ compactName: items
60
66
  uri: "https://www.w3.org/ns/activitystreams#items"
61
67
  description: |
62
68
  Identifies the items contained in a collection. The items might be ordered
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: CollectionPage
3
+ compactName: CollectionPage
3
4
  uri: "https://www.w3.org/ns/activitystreams#CollectionPage"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Collection"
5
6
  entity: true
@@ -18,6 +19,7 @@ defaultContext:
18
19
  properties:
19
20
  - singularName: partOf
20
21
  functional: true
22
+ compactName: partOf
21
23
  uri: "https://www.w3.org/ns/activitystreams#partOf"
22
24
  description: |
23
25
  Identifies the {@link Collection} to which a {@link CollectionPage} objects
@@ -27,6 +29,7 @@ properties:
27
29
 
28
30
  - singularName: next
29
31
  functional: true
32
+ compactName: next
30
33
  uri: "https://www.w3.org/ns/activitystreams#next"
31
34
  description: In a paged {@link Collection}, indicates the next page of items.
32
35
  range:
@@ -34,6 +37,7 @@ properties:
34
37
 
35
38
  - singularName: prev
36
39
  functional: true
40
+ compactName: prev
37
41
  uri: "https://www.w3.org/ns/activitystreams#prev"
38
42
  description: |
39
43
  In a paged {@link Collection}, identifies the previous page of items.
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Create
3
+ compactName: Create
3
4
  uri: "https://www.w3.org/ns/activitystreams#Create"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Delete
3
+ compactName: Delete
3
4
  uri: "https://www.w3.org/ns/activitystreams#Delete"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Dislike
3
+ compactName: Dislike
3
4
  uri: "https://www.w3.org/ns/activitystreams#Dislike"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Document
3
+ compactName: Document
3
4
  uri: "https://www.w3.org/ns/activitystreams#Document"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -11,6 +12,7 @@ defaultContext:
11
12
  properties:
12
13
  - singularName: width
13
14
  functional: true
15
+ compactName: width
14
16
  uri: "https://www.w3.org/ns/activitystreams#width"
15
17
  description: |
16
18
  Specifies a hint as to the rendering width in
@@ -20,6 +22,7 @@ properties:
20
22
 
21
23
  - singularName: height
22
24
  functional: true
25
+ compactName: height
23
26
  uri: "https://www.w3.org/ns/activitystreams#height"
24
27
  description: |
25
28
  Specifies a hint as to the rendering height in
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Emoji
3
+ compactName: Emoji
3
4
  uri: "http://joinmastodon.org/ns#Emoji"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Endpoints
3
+ compactName: as:Endpoints
3
4
  uri: "https://www.w3.org/ns/activitystreams#Endpoints"
4
5
  entity: false
5
6
  description: Contents of {@link Actor}'s `endpoints`.
@@ -8,6 +9,7 @@ defaultContext: "https://www.w3.org/ns/activitystreams"
8
9
  properties:
9
10
  - singularName: proxyUrl
10
11
  functional: true
12
+ compactName: proxyUrl
11
13
  uri: "https://www.w3.org/ns/activitystreams#proxyUrl"
12
14
  description: |
13
15
  Endpoint URI so this actor's clients may access remote ActivityStreams
@@ -19,6 +21,7 @@ properties:
19
21
 
20
22
  - singularName: oauthAuthorizationEndpoint
21
23
  functional: true
24
+ compactName: oauthAuthorizationEndpoint
22
25
  uri: "https://www.w3.org/ns/activitystreams#oauthAuthorizationEndpoint"
23
26
  description: |
24
27
  If OAuth 2.0 bearer tokens [RFC 6749] [RFC 6750] are being used for
@@ -31,6 +34,7 @@ properties:
31
34
 
32
35
  - singularName: oauthTokenEndpoint
33
36
  functional: true
37
+ compactName: oauthTokenEndpoint
34
38
  uri: "https://www.w3.org/ns/activitystreams#oauthTokenEndpoint"
35
39
  description: |
36
40
  If OAuth 2.0 bearer tokens [RFC 6749] [RFC 6750] are being used for
@@ -42,6 +46,7 @@ properties:
42
46
 
43
47
  - singularName: provideClientKey
44
48
  functional: true
49
+ compactName: provideClientKey
45
50
  uri: "https://www.w3.org/ns/activitystreams#provideClientKey"
46
51
  description: |
47
52
  If Linked Data Signatures and HTTP Signatures are being used for
@@ -53,6 +58,7 @@ properties:
53
58
 
54
59
  - singularName: signClientKey
55
60
  functional: true
61
+ compactName: signClientKey
56
62
  uri: "https://www.w3.org/ns/activitystreams#signClientKey"
57
63
  description: |
58
64
  If Linked Data Signatures and HTTP Signatures are being used for
@@ -64,6 +70,7 @@ properties:
64
70
 
65
71
  - singularName: sharedInbox
66
72
  functional: true
73
+ compactName: sharedInbox
67
74
  uri: "https://www.w3.org/ns/activitystreams#sharedInbox"
68
75
  description: |
69
76
  An optional endpoint [used for wide delivery of publicly addressed
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Event
3
+ compactName: Event
3
4
  uri: "https://www.w3.org/ns/activitystreams#Event"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Flag
3
+ compactName: Flag
3
4
  uri: "https://www.w3.org/ns/activitystreams#Flag"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Follow
3
+ compactName: Follow
3
4
  uri: "https://www.w3.org/ns/activitystreams#Follow"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Activity"
5
6
  entity: true
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Group
3
+ compactName: Group
3
4
  uri: "https://www.w3.org/ns/activitystreams#Group"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Object"
5
6
  entity: true
@@ -30,6 +31,7 @@ properties:
30
31
  - pluralName: preferredUsernames
31
32
  singularName: preferredUsername
32
33
  singularAccessor: true
34
+ compactName: preferredUsername
33
35
  uri: "https://www.w3.org/ns/activitystreams#preferredUsername"
34
36
  description: |
35
37
  A short username which may be used to refer to the actor,
@@ -41,6 +43,7 @@ properties:
41
43
  - pluralName: publicKeys
42
44
  singularName: publicKey
43
45
  singularAccessor: true
46
+ compactName: publicKey
44
47
  uri: "https://w3id.org/security#publicKey"
45
48
  description: A public part of the key pair owned by this actor.
46
49
  untyped: true
@@ -50,6 +53,7 @@ properties:
50
53
  - pluralName: assertionMethods
51
54
  singularName: assertionMethod
52
55
  singularAccessor: true
56
+ compactName: assertionMethod
53
57
  uri: "https://w3id.org/security#assertionMethod"
54
58
  description: |
55
59
  Represents this actor's public keys. It serves as equivalent to
@@ -61,6 +65,7 @@ properties:
61
65
 
62
66
  - singularName: manuallyApprovesFollowers
63
67
  functional: true
68
+ compactName: manuallyApprovesFollowers
64
69
  uri: "https://www.w3.org/ns/activitystreams#manuallyApprovesFollowers"
65
70
  description: |
66
71
  When `true`, conveys that for this actor, follow requests are not usually
@@ -74,6 +79,7 @@ properties:
74
79
 
75
80
  - singularName: inbox
76
81
  functional: true
82
+ compactName: inbox
77
83
  uri: "http://www.w3.org/ns/ldp#inbox"
78
84
  description: |
79
85
  The inbox stream contains all activities received by the actor. The server
@@ -94,6 +100,7 @@ properties:
94
100
 
95
101
  - singularName: outbox
96
102
  functional: true
103
+ compactName: outbox
97
104
  uri: "https://www.w3.org/ns/activitystreams#outbox"
98
105
  description: |
99
106
  The outbox stream contains activities the user has published,
@@ -111,6 +118,7 @@ properties:
111
118
 
112
119
  - singularName: following
113
120
  functional: true
121
+ compactName: following
114
122
  uri: "https://www.w3.org/ns/activitystreams#following"
115
123
  description: |
116
124
  This is a list of everybody that the actor has followed, added as a
@@ -123,6 +131,7 @@ properties:
123
131
 
124
132
  - singularName: followers
125
133
  functional: true
134
+ compactName: followers
126
135
  uri: "https://www.w3.org/ns/activitystreams#followers"
127
136
  description: |
128
137
  This is a list of everyone who has sent a {@link Follow} activity
@@ -138,6 +147,7 @@ properties:
138
147
 
139
148
  - singularName: liked
140
149
  functional: true
150
+ compactName: liked
141
151
  uri: "https://www.w3.org/ns/activitystreams#liked"
142
152
  description: |
143
153
  This is a list of every object from all of the actor's {@link Like}
@@ -151,6 +161,7 @@ properties:
151
161
 
152
162
  - singularName: featured
153
163
  functional: true
164
+ compactName: featured
154
165
  uri: "http://joinmastodon.org/ns#featured"
155
166
  description: |
156
167
  What is known in Mastodon as "pinned statuses", or statuses that are always
@@ -162,6 +173,7 @@ properties:
162
173
 
163
174
  - singularName: featuredTags
164
175
  functional: true
176
+ compactName: featuredTags
165
177
  uri: "http://joinmastodon.org/ns#featuredTags"
166
178
  description: |
167
179
  What is known in Mastodon as "featured hashtags", hashtags that are featured
@@ -174,6 +186,7 @@ properties:
174
186
  - pluralName: streams
175
187
  singularName: stream
176
188
  singularAccessor: false
189
+ compactName: streams
177
190
  uri: "https://www.w3.org/ns/activitystreams#streams"
178
191
  description: |
179
192
  A list of supplementary Collections which may be of interest.
@@ -182,6 +195,7 @@ properties:
182
195
 
183
196
  - singularName: endpoints
184
197
  functional: true
198
+ compactName: endpoints
185
199
  uri: "https://www.w3.org/ns/activitystreams#endpoints"
186
200
  description: |
187
201
  A JSON object which maps additional (typically server/domain-wide) endpoints
@@ -193,6 +207,7 @@ properties:
193
207
 
194
208
  - singularName: discoverable
195
209
  functional: true
210
+ compactName: discoverable
196
211
  uri: "http://joinmastodon.org/ns#discoverable"
197
212
  description: |
198
213
  Allows users to opt-in or opt-out of discoverability features like
@@ -204,6 +219,7 @@ properties:
204
219
 
205
220
  - singularName: suspended
206
221
  functional: true
222
+ compactName: suspended
207
223
  uri: "http://joinmastodon.org/ns#suspended"
208
224
  description: |
209
225
  Reports whether a user was locally suspended, for better handling of
@@ -213,6 +229,7 @@ properties:
213
229
 
214
230
  - singularName: memorial
215
231
  functional: true
232
+ compactName: memorial
216
233
  uri: "http://joinmastodon.org/ns#memorial"
217
234
  description: Whether the actor is in-memorial state.
218
235
  range:
@@ -220,6 +237,7 @@ properties:
220
237
 
221
238
  - singularName: indexable
222
239
  functional: true
240
+ compactName: indexable
223
241
  uri: "http://joinmastodon.org/ns#indexable"
224
242
  description: Whether the actor allows to be indexed.
225
243
  range:
@@ -1,5 +1,6 @@
1
1
  $schema: ../codegen/schema.yaml
2
2
  name: Hashtag
3
+ compactName: Hashtag
3
4
  uri: "https://www.w3.org/ns/activitystreams#Hashtag"
4
5
  extends: "https://www.w3.org/ns/activitystreams#Link"
5
6
  entity: false