app.bivri.feed.createComment
Schema Diff
+8 -0
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"main": {
5
5
"description": "Bivri refuses content longer than 200 graphemes, which is stricter than the 1000 the record schema permits: the record admits what any client may write, this method admits what this service accepts. A refusal is InvalidComment and nothing is written.",
6
6
"errors": [
7
7
{
8
+
"description": "The authenticated member has not confirmed age and accepted the Terms and Privacy Policy.",
9
+
"name": "ConsentRequired"
10
+
},
11
+
{
8
12
"description": "Nobody is authenticated, so there is no repository to write to.",
9
13
"name": "Unauthenticated"
10
14
},
11
15
{
12
16
"description": "The comment is not one this service accepts — longer than 200 graphemes, or otherwise refused by the write boundary. Nothing was written.",
13
17
"name": "InvalidComment"
18
+
},
19
+
{
20
+
"description": "The commenter and the Artwork's author, or the author of the comment being replied to, have a block between them in either direction. Nothing was written.",
21
+
"name": "Blocked"
14
22
}
15
23
],
16
24
"input": {
17
25
"encoding": "application/json",
18
26
"schema": {
19
27
"properties": {
20
28
"content": {
21
29
"description": "Comment text.",
22
30
"maxGraphemes": 1000,
23
31
"maxLength": 10000,
24
32
"type": "string"
25
33
},
26
34
"parent": {
27
35
"description": "Strong reference to the comment being replied to. Omit for a top-level comment.",
28
36
"ref": "com.atproto.repo.strongRef",
29
37
"type": "ref"
30
38
},
31
39
"subject": {
32
40
"description": "Strong reference to the artwork to comment on.",
33
41
"ref": "com.atproto.repo.strongRef",
34
42
"type": "ref"
35
43
}
36
44
},
37
45
"required": [
38
46
"subject",
39
47
"content"
40
48
],
41
49
"type": "object"
42
50
}
43
51
},
44
52
"output": {
45
53
"encoding": "application/json",
46
54
"schema": {
47
55
"properties": {
48
56
"cid": {
49
57
"description": "CID of the comment record that was written.",
50
58
"format": "cid",
51
59
"type": "string"
52
60
},
53
61
"uri": {
54
62
"description": "AT URI of the comment record that was written.",
55
63
"format": "at-uri",
56
64
"type": "string"
57
65
}
58
66
},
59
67
"required": [
60
68
"uri",
61
69
"cid"
62
70
],
63
71
"type": "object"
64
72
}
65
73
},
66
74
"type": "procedure"
67
75
}
68
76
},
69
77
"description": "Post a comment from the authenticated member's repository.",
70
78
"id": "app.bivri.feed.createComment",
71
79
"lexicon": 1
72
80
}