@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/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright 2024–2026 Hong Minhee
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/deno.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fedify/vocab",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./src/mod.ts"
|
|
7
|
+
},
|
|
8
|
+
"description": "Vocabularies library for @fedify/fedify",
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Hong Minhee",
|
|
11
|
+
"email": "hong@minhee.org",
|
|
12
|
+
"url": "https://hongminhee.org/"
|
|
13
|
+
},
|
|
14
|
+
"imports": {
|
|
15
|
+
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
|
|
16
|
+
"fast-check": "npm:fast-check@^3.22.0",
|
|
17
|
+
"fetch-mock": "npm:fetch-mock@^12.5.2",
|
|
18
|
+
"jsonld": "npm:jsonld@^9.0.0"
|
|
19
|
+
},
|
|
20
|
+
"exclude": [
|
|
21
|
+
"dist/",
|
|
22
|
+
"node_modules/",
|
|
23
|
+
"src/*.yaml",
|
|
24
|
+
"!src/vocab.ts"
|
|
25
|
+
],
|
|
26
|
+
"tasks": {
|
|
27
|
+
"check": "deno fmt --check && deno lint && deno check src/*.ts",
|
|
28
|
+
"compile": "deno run --allow-read --allow-write --allow-env --check scripts/codegen.ts && deno fmt src/vocab.ts && deno cache src/vocab.ts && deno check src/vocab.ts",
|
|
29
|
+
"test": "deno test --allow-read --allow-write --allow-env --unstable-kv --trace-leaks --parallel"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/dist/accept.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: Accept
|
|
3
|
+
compactName: Accept
|
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Accept"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Activity"
|
|
6
|
+
entity: true
|
|
7
|
+
description: |
|
|
8
|
+
Indicates that the `actor` accepts the `object`. The `target` property can be
|
|
9
|
+
used in certain circumstances to indicate the context into which the `object`
|
|
10
|
+
has been accepted.
|
|
11
|
+
defaultContext:
|
|
12
|
+
- "https://w3id.org/identity/v1"
|
|
13
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
14
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
15
|
+
properties: []
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
$schema: ../../vocab-tools/schema.yaml
|
|
2
|
+
name: Activity
|
|
3
|
+
compactName: Activity
|
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Activity"
|
|
5
|
+
extends: "https://www.w3.org/ns/activitystreams#Object"
|
|
6
|
+
entity: true
|
|
7
|
+
description: |
|
|
8
|
+
An Activity is a subtype of {@link Object} that describes some form of action
|
|
9
|
+
that may happen, is currently happening, or has already happened.
|
|
10
|
+
The {@link Activity} type itself serves as an abstract base type for all types
|
|
11
|
+
of activities. It is important to note that the {@link Activity} type itself
|
|
12
|
+
does not carry any specific semantics about the kind of action being taken.
|
|
13
|
+
defaultContext:
|
|
14
|
+
- "https://w3id.org/identity/v1"
|
|
15
|
+
- "https://www.w3.org/ns/activitystreams"
|
|
16
|
+
- "https://w3id.org/security/v1"
|
|
17
|
+
- "https://w3id.org/security/data-integrity/v1"
|
|
18
|
+
|
|
19
|
+
properties:
|
|
20
|
+
- pluralName: actors
|
|
21
|
+
singularName: actor
|
|
22
|
+
singularAccessor: true
|
|
23
|
+
compactName: actor
|
|
24
|
+
uri: "https://www.w3.org/ns/activitystreams#actor"
|
|
25
|
+
subpropertyOf: "https://www.w3.org/ns/activitystreams#attributedTo"
|
|
26
|
+
description: |
|
|
27
|
+
Describes one or more entities that either performed or are expected to
|
|
28
|
+
perform the activity. Any single activity can have multiple actors.
|
|
29
|
+
The actor MAY be specified using an indirect {@link Link}.
|
|
30
|
+
range:
|
|
31
|
+
- "https://www.w3.org/ns/activitystreams#Application"
|
|
32
|
+
- "https://www.w3.org/ns/activitystreams#Group"
|
|
33
|
+
- "https://www.w3.org/ns/activitystreams#Organization"
|
|
34
|
+
- "https://www.w3.org/ns/activitystreams#Person"
|
|
35
|
+
- "https://www.w3.org/ns/activitystreams#Service"
|
|
36
|
+
|
|
37
|
+
- pluralName: objects
|
|
38
|
+
singularName: object
|
|
39
|
+
singularAccessor: true
|
|
40
|
+
compactName: object
|
|
41
|
+
uri: "https://www.w3.org/ns/activitystreams#object"
|
|
42
|
+
description: |
|
|
43
|
+
When used within an {@link Activity}, describes the direct object of
|
|
44
|
+
the activity. For instance, in the activity "John added a movie to his
|
|
45
|
+
wishlist", the object of the activity is the movie added.
|
|
46
|
+
range:
|
|
47
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
48
|
+
|
|
49
|
+
- pluralName: targets
|
|
50
|
+
singularName: target
|
|
51
|
+
singularAccessor: true
|
|
52
|
+
compactName: target
|
|
53
|
+
uri: "https://www.w3.org/ns/activitystreams#target"
|
|
54
|
+
description: |
|
|
55
|
+
Describes the indirect object, or target, of the activity. The precise
|
|
56
|
+
meaning of the target is largely dependent on the type of action being
|
|
57
|
+
described but will often be the object of the English preposition "to".
|
|
58
|
+
For instance, in the activity "John added a movie to his wishlist",
|
|
59
|
+
the target of the activity is John's wishlist. An activity can have more
|
|
60
|
+
than one target.
|
|
61
|
+
range:
|
|
62
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
63
|
+
|
|
64
|
+
- pluralName: results
|
|
65
|
+
singularName: result
|
|
66
|
+
singularAccessor: true
|
|
67
|
+
compactName: result
|
|
68
|
+
uri: "https://www.w3.org/ns/activitystreams#result"
|
|
69
|
+
description: |
|
|
70
|
+
Describes the result of the activity. For instance, if a particular action
|
|
71
|
+
results in the creation of a new resource, the result property can be used
|
|
72
|
+
to describe that new resource.
|
|
73
|
+
range:
|
|
74
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
75
|
+
|
|
76
|
+
- pluralName: origins
|
|
77
|
+
singularName: origin
|
|
78
|
+
singularAccessor: true
|
|
79
|
+
compactName: origin
|
|
80
|
+
uri: "https://www.w3.org/ns/activitystreams#origin"
|
|
81
|
+
description: |
|
|
82
|
+
Describes an indirect object of the activity from which the activity is
|
|
83
|
+
directed. The precise meaning of the origin is the object of the English
|
|
84
|
+
preposition "from". For instance, in the activity "John moved an item to
|
|
85
|
+
List B from List A", the origin of the activity is "List A".
|
|
86
|
+
range:
|
|
87
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|
|
88
|
+
|
|
89
|
+
- pluralName: instruments
|
|
90
|
+
singularName: instrument
|
|
91
|
+
singularAccessor: true
|
|
92
|
+
compactName: instrument
|
|
93
|
+
uri: "https://www.w3.org/ns/activitystreams#instrument"
|
|
94
|
+
description: |
|
|
95
|
+
Identifies one or more objects used (or to be used) in the completion of
|
|
96
|
+
an {@link Activity}.
|
|
97
|
+
range:
|
|
98
|
+
- "https://www.w3.org/ns/activitystreams#Object"
|