@fedify/vocab 2.0.0-dev.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.
- package/LICENSE +20 -0
- package/deno.json +31 -0
- package/dist/accept.yaml +15 -0
- package/dist/activity.yaml +98 -0
- package/dist/actor.test.d.ts +2 -0
- package/dist/actor.test.js +6095 -0
- package/dist/add.yaml +16 -0
- package/dist/announce.yaml +30 -0
- package/dist/application.yaml +324 -0
- package/dist/arrive.yaml +15 -0
- package/dist/article.yaml +46 -0
- package/dist/audio.yaml +11 -0
- package/dist/block.yaml +16 -0
- package/dist/chatmessage.yaml +50 -0
- package/dist/collection.yaml +154 -0
- package/dist/collectionpage.yaml +55 -0
- package/dist/create.yaml +28 -0
- package/dist/dataintegrityproof.yaml +56 -0
- package/dist/delete.yaml +27 -0
- package/dist/deno-B-ypIMwF.js +1282 -0
- package/dist/didservice.yaml +22 -0
- package/dist/dislike.yaml +14 -0
- package/dist/document.yaml +31 -0
- package/dist/emoji.yaml +12 -0
- package/dist/emojireact.yaml +17 -0
- package/dist/endpoints.yaml +85 -0
- package/dist/event.yaml +11 -0
- package/dist/export.yaml +9 -0
- package/dist/flag.yaml +15 -0
- package/dist/follow.yaml +19 -0
- package/dist/group.yaml +324 -0
- package/dist/hashtag.yaml +14 -0
- package/dist/ignore.yaml +14 -0
- package/dist/image.yaml +9 -0
- package/dist/intransitiveactivity.yaml +15 -0
- package/dist/invite.yaml +14 -0
- package/dist/join.yaml +14 -0
- package/dist/key.yaml +28 -0
- package/dist/leave.yaml +14 -0
- package/dist/like.yaml +16 -0
- package/dist/link.yaml +101 -0
- package/dist/listen.yaml +12 -0
- package/dist/lookup.test.d.ts +2 -0
- package/dist/lookup.test.js +690 -0
- package/dist/mention.yaml +9 -0
- package/dist/mod.cjs +42036 -0
- package/dist/mod.d.cts +15329 -0
- package/dist/mod.d.ts +15330 -0
- package/dist/mod.js +41936 -0
- package/dist/move.yaml +15 -0
- package/dist/multikey.yaml +36 -0
- package/dist/note.yaml +48 -0
- package/dist/object.yaml +404 -0
- package/dist/offer.yaml +15 -0
- package/dist/orderedcollection.yaml +39 -0
- package/dist/orderedcollectionpage.yaml +50 -0
- package/dist/organization.yaml +324 -0
- package/dist/page.yaml +11 -0
- package/dist/person.yaml +324 -0
- package/dist/place.yaml +75 -0
- package/dist/profile.yaml +26 -0
- package/dist/propertyvalue.yaml +32 -0
- package/dist/question.yaml +103 -0
- package/dist/read.yaml +13 -0
- package/dist/reject.yaml +14 -0
- package/dist/relationship.yaml +52 -0
- package/dist/remove.yaml +14 -0
- package/dist/service.yaml +324 -0
- package/dist/source.yaml +26 -0
- package/dist/tentativeaccept.yaml +14 -0
- package/dist/tentativereject.yaml +14 -0
- package/dist/tombstone.yaml +24 -0
- package/dist/travel.yaml +16 -0
- package/dist/type-CNuABalk.js +13 -0
- package/dist/type.test.d.ts +2 -0
- package/dist/type.test.js +24 -0
- package/dist/undo.yaml +26 -0
- package/dist/update.yaml +58 -0
- package/dist/utils-BSWXlrig.js +13 -0
- package/dist/video.yaml +11 -0
- package/dist/view.yaml +13 -0
- package/dist/vocab-DBispxj5.js +41603 -0
- package/dist/vocab.test.d.ts +2 -0
- package/dist/vocab.test.js +1304 -0
- package/package.json +79 -0
- package/scripts/codegen.ts +20 -0
- package/src/__snapshots__/vocab.test.ts.snap +7903 -0
- package/src/accept.yaml +15 -0
- package/src/activity.yaml +98 -0
- package/src/actor.test.ts +263 -0
- package/src/actor.ts +293 -0
- package/src/add.yaml +16 -0
- package/src/announce.yaml +30 -0
- package/src/application.yaml +324 -0
- package/src/arrive.yaml +15 -0
- package/src/article.yaml +46 -0
- package/src/audio.yaml +11 -0
- package/src/block.yaml +16 -0
- package/src/chatmessage.yaml +50 -0
- package/src/collection.yaml +154 -0
- package/src/collectionpage.yaml +55 -0
- package/src/constants.ts +11 -0
- package/src/create.yaml +28 -0
- package/src/dataintegrityproof.yaml +56 -0
- package/src/delete.yaml +27 -0
- package/src/didservice.yaml +22 -0
- package/src/dislike.yaml +14 -0
- package/src/document.yaml +31 -0
- package/src/emoji.yaml +12 -0
- package/src/emojireact.yaml +17 -0
- package/src/endpoints.yaml +85 -0
- package/src/event.yaml +11 -0
- package/src/export.yaml +9 -0
- package/src/flag.yaml +15 -0
- package/src/follow.yaml +19 -0
- package/src/group.yaml +324 -0
- package/src/handle.ts +104 -0
- package/src/hashtag.yaml +14 -0
- package/src/ignore.yaml +14 -0
- package/src/image.yaml +9 -0
- package/src/intransitiveactivity.yaml +15 -0
- package/src/invite.yaml +14 -0
- package/src/join.yaml +14 -0
- package/src/key.yaml +28 -0
- package/src/keys.ts +50 -0
- package/src/leave.yaml +14 -0
- package/src/like.yaml +16 -0
- package/src/link.yaml +101 -0
- package/src/listen.yaml +12 -0
- package/src/lookup.test.ts +681 -0
- package/src/lookup.ts +318 -0
- package/src/mention.yaml +9 -0
- package/src/mod.ts +57 -0
- package/src/move.yaml +15 -0
- package/src/multikey.yaml +36 -0
- package/src/note.yaml +48 -0
- package/src/object.yaml +404 -0
- package/src/offer.yaml +15 -0
- package/src/orderedcollection.yaml +39 -0
- package/src/orderedcollectionpage.yaml +50 -0
- package/src/organization.yaml +324 -0
- package/src/page.yaml +11 -0
- package/src/person.yaml +324 -0
- package/src/place.yaml +75 -0
- package/src/profile.yaml +26 -0
- package/src/propertyvalue.yaml +32 -0
- package/src/question.yaml +103 -0
- package/src/read.yaml +13 -0
- package/src/reject.yaml +14 -0
- package/src/relationship.yaml +52 -0
- package/src/remove.yaml +14 -0
- package/src/service.yaml +324 -0
- package/src/source.yaml +26 -0
- package/src/tentativeaccept.yaml +14 -0
- package/src/tentativereject.yaml +14 -0
- package/src/tombstone.yaml +24 -0
- package/src/travel.yaml +16 -0
- package/src/type.test.ts +20 -0
- package/src/type.ts +102 -0
- package/src/undo.yaml +26 -0
- package/src/update.yaml +58 -0
- package/src/utils.ts +9 -0
- package/src/video.yaml +11 -0
- package/src/view.yaml +13 -0
- package/src/vocab.bench.ts +204 -0
- package/src/vocab.test.ts +2014 -0
- package/tsdown.config.ts +65 -0
package/dist/key.yaml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: CryptographicKey
|
|
3
|
+
compactName: CryptographicKey
|
|
4
|
+
uri: "https://w3id.org/security#Key"
|
|
5
|
+
entity: true
|
|
6
|
+
description: A key owned by an actor.
|
|
7
|
+
defaultContext: "https://w3id.org/security/v1"
|
|
8
|
+
|
|
9
|
+
properties:
|
|
10
|
+
- singularName: owner
|
|
11
|
+
functional: true
|
|
12
|
+
compactName: owner
|
|
13
|
+
uri: "https://w3id.org/security#owner"
|
|
14
|
+
description: An actor who owns this key.
|
|
15
|
+
range:
|
|
16
|
+
- "https://www.w3.org/ns/activitystreams#Application"
|
|
17
|
+
- "https://www.w3.org/ns/activitystreams#Group"
|
|
18
|
+
- "https://www.w3.org/ns/activitystreams#Organization"
|
|
19
|
+
- "https://www.w3.org/ns/activitystreams#Person"
|
|
20
|
+
- "https://www.w3.org/ns/activitystreams#Service"
|
|
21
|
+
|
|
22
|
+
- singularName: publicKey
|
|
23
|
+
functional: true
|
|
24
|
+
compactName: publicKeyPem
|
|
25
|
+
uri: "https://w3id.org/security#publicKeyPem"
|
|
26
|
+
description: A PEM-encoded public key.
|
|
27
|
+
range:
|
|
28
|
+
- "fedify:publicKey"
|
package/dist/leave.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: Leave
|
|
3
|
+
compactName: Leave
|
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Leave"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Activity"
|
|
6
|
+
entity: true
|
|
7
|
+
description: |
|
|
8
|
+
Indicates that the `actor` has left the `object`.
|
|
9
|
+
The `target` and `origin` typically have no meaning.
|
|
10
|
+
defaultContext:
|
|
11
|
+
- "https://w3id.org/identity/v1"
|
|
12
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
13
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
14
|
+
properties: []
|
package/dist/like.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: Like
|
|
3
|
+
compactName: Like
|
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Like"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Activity"
|
|
6
|
+
entity: true
|
|
7
|
+
description: |
|
|
8
|
+
Indicates that the `actor` likes, recommends or endorses the `object`.
|
|
9
|
+
The `target` and `origin` typically have no defined meaning.
|
|
10
|
+
defaultContext:
|
|
11
|
+
- "https://w3id.org/identity/v1"
|
|
12
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
13
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
14
|
+
- toot: "http://joinmastodon.org/ns#"
|
|
15
|
+
Emoji: "toot:Emoji"
|
|
16
|
+
properties: []
|
package/dist/link.yaml
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: Link
|
|
3
|
+
compactName: Link
|
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Link"
|
|
5
|
+
entity: false
|
|
6
|
+
description: |
|
|
7
|
+
A Link is an indirect, qualified reference to a resource identified by a URL.
|
|
8
|
+
The fundamental model for links is established by RFC 5988. Many of the
|
|
9
|
+
properties defined by the Activity Vocabulary allow values that are either
|
|
10
|
+
instances of {@link Object} or {@link Link}. When a {@link Link} is used,
|
|
11
|
+
it establishes a qualified relation connecting the subject (the containing
|
|
12
|
+
object) to the resource identified by the `href`. Properties of
|
|
13
|
+
the {@link Link} are properties of the reference as opposed to properties of
|
|
14
|
+
the resource.
|
|
15
|
+
defaultContext: "https://www.w3.org/ns/activitystreams"
|
|
16
|
+
|
|
17
|
+
properties:
|
|
18
|
+
- singularName: href
|
|
19
|
+
functional: true
|
|
20
|
+
compactName: href
|
|
21
|
+
uri: "https://www.w3.org/ns/activitystreams#href"
|
|
22
|
+
description: "The target resource pointed to by a {@link Link}."
|
|
23
|
+
range:
|
|
24
|
+
- "http://www.w3.org/2001/XMLSchema#anyURI"
|
|
25
|
+
|
|
26
|
+
- pluralName: rels
|
|
27
|
+
singularName: rel
|
|
28
|
+
singularAccessor: true
|
|
29
|
+
compactName: rel
|
|
30
|
+
uri: "https://www.w3.org/ns/activitystreams#rel"
|
|
31
|
+
description: |
|
|
32
|
+
A link relation associated with a {@link Link}. The value MUST conform to
|
|
33
|
+
both the HTML5 and RFC 5988 "link relation" definitions.
|
|
34
|
+
|
|
35
|
+
In the HTML5, any string not containing the space (U+0020), tab (U+0009),
|
|
36
|
+
LF (U+000A), FF (U+000C), CR (U+000D) or comma (U+002C) characters can
|
|
37
|
+
be used as a valid link relation.
|
|
38
|
+
range:
|
|
39
|
+
- "http://www.w3.org/2001/XMLSchema#string"
|
|
40
|
+
|
|
41
|
+
- singularName: mediaType
|
|
42
|
+
functional: true
|
|
43
|
+
compactName: mediaType
|
|
44
|
+
uri: "https://www.w3.org/ns/activitystreams#mediaType"
|
|
45
|
+
description: |
|
|
46
|
+
When used on a {@link Link}, identifies the MIME media type of the
|
|
47
|
+
referenced resource.
|
|
48
|
+
range:
|
|
49
|
+
- "http://www.w3.org/2001/XMLSchema#string"
|
|
50
|
+
|
|
51
|
+
- pluralName: names
|
|
52
|
+
singularName: name
|
|
53
|
+
singularAccessor: true
|
|
54
|
+
compactName: name
|
|
55
|
+
uri: "https://www.w3.org/ns/activitystreams#name"
|
|
56
|
+
description: |
|
|
57
|
+
A simple, human-readable, plain-text name for the object. HTML markup MUST
|
|
58
|
+
NOT be included. The name MAY be expressed using multiple language-tagged
|
|
59
|
+
values.
|
|
60
|
+
range:
|
|
61
|
+
- "http://www.w3.org/2001/XMLSchema#string"
|
|
62
|
+
- "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"
|
|
63
|
+
|
|
64
|
+
- singularName: language
|
|
65
|
+
functional: true
|
|
66
|
+
compactName: hreflang
|
|
67
|
+
uri: "https://www.w3.org/ns/activitystreams#hreflang"
|
|
68
|
+
description: |
|
|
69
|
+
Hints as to the language used by the target resource.
|
|
70
|
+
Value MUST be a BCP 47 Language-Tag.
|
|
71
|
+
range:
|
|
72
|
+
- "fedify:langTag"
|
|
73
|
+
|
|
74
|
+
- singularName: height
|
|
75
|
+
functional: true
|
|
76
|
+
compactName: height
|
|
77
|
+
uri: "https://www.w3.org/ns/activitystreams#height"
|
|
78
|
+
description: |
|
|
79
|
+
On a {@link Link}, specifies a hint as to the rendering height in
|
|
80
|
+
device-independent pixels of the linked resource.
|
|
81
|
+
range:
|
|
82
|
+
- "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
|
83
|
+
|
|
84
|
+
- singularName: width
|
|
85
|
+
functional: true
|
|
86
|
+
compactName: width
|
|
87
|
+
uri: "https://www.w3.org/ns/activitystreams#width"
|
|
88
|
+
description: |
|
|
89
|
+
On a {@link Link}, specifies a hint as to the rendering width in
|
|
90
|
+
device-independent pixels of the linked resource.
|
|
91
|
+
range:
|
|
92
|
+
- "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
|
|
93
|
+
|
|
94
|
+
- pluralName: previews
|
|
95
|
+
singularName: preview
|
|
96
|
+
compactName: preview
|
|
97
|
+
uri: "https://www.w3.org/ns/activitystreams#preview"
|
|
98
|
+
description: "Identifies an entity that provides a preview of this object."
|
|
99
|
+
range:
|
|
100
|
+
- "https://www.w3.org/ns/activitystreams#Link"
|
|
101
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
package/dist/listen.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: Listen
|
|
3
|
+
compactName: Listen
|
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Listen"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Activity"
|
|
6
|
+
entity: true
|
|
7
|
+
description: Indicates that the `actor` has listened to the `object`.
|
|
8
|
+
defaultContext:
|
|
9
|
+
- "https://w3id.org/identity/v1"
|
|
10
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
11
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
12
|
+
properties: []
|