This repository was archived by the owner on Feb 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathactivity.json
More file actions
59 lines (59 loc) · 1.67 KB
/
activity.json
File metadata and controls
59 lines (59 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"id": "http://schemas.broid.ai/activity.json",
"type": "object",
"properties": {
"@context": {
"type": "string",
"enum": ["https://www.w3.org/ns/activitystreams"]
},
"type": {
"type": "string",
"enum": ["Create", "Update", "Delete"]
},
"published": {
"type": "number",
"pattern": "(\\d+(?:\\.\\d*)?|\\.\\d+)\\s+(\\S+)"
},
"generator": {
"$ref": "http://schemas.broid.ai/embedded/generator.json"
},
"actor": {
"$ref": "http://schemas.broid.ai/embedded/actor.json",
"required": ["id", "type"]
},
"target": {
"oneOf": [{
"$ref": "http://schemas.broid.ai/embedded/actor.json",
"required": ["id", "type"]
}, {
"$ref": "http://schemas.broid.ai/embedded/group.json",
"required": ["id", "type"]
}]
},
"cc": {
"oneOf": [{
"$ref": "http://schemas.broid.ai/embedded/actor.json",
"required": ["id", "type"]
}, {
"$ref": "http://schemas.broid.ai/embedded/group.json",
"required": ["id", "type"]
}]
},
"object": {
"oneOf": [{
"$ref": "http://schemas.broid.ai/object/note.json",
"required": ["type", "id", "content"]
}, {
"$ref": "http://schemas.broid.ai/object/media.json",
"required": ["type", "id", "url"]
}, {
"$ref": "http://schemas.broid.ai/object/place.json",
"required": ["type", "id", "latitude", "longitude"]
}, {
"$ref": "http://schemas.broid.ai/object/collection.json",
"required": ["type", "items"]
}]
}
},
"required": ["type", "published", "generator", "actor", "target", "object"]
}