wiki.lichen.noteRevision
Schema Diff
+1 -1
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": "A revision to a note. It holds either a diff from the previous revision or the complete new body, depending on diffFormat.",
6
6
"key": "tid",
7
7
"record": {
8
8
"properties": {
9
9
"blobs": {
10
-
"description": "Blobs the content references. Each is identified by the uploading repo's DID and the blob CID, which lichen serves at /blob/<did>/<cid>, and content points at one with . Listing the ref here keeps the blob alive in the PDS.",
10
+
"description": "Blobs the content references. Each is identified by the uploading repo's DID and the blob CID. Content points at one with , the path lichen serves it from. Listing the ref here keeps the blob alive in the PDS.",
11
11
"items": {
12
12
"accept": [
13
13
"image/jpeg",
14
14
"image/png",
15
15
"image/gif",
16
16
"image/webp"
17
17
],
18
18
"maxSize": 2097152,
19
19
"type": "blob"
20
20
},
21
21
"type": "array"
22
22
},
23
23
"createdAt": {
24
24
"description": "When this revision was created.",
25
25
"format": "datetime",
26
26
"type": "string"
27
27
},
28
28
"diff": {
29
29
"description": "The revision payload. With \"diff-match-patch\" it is a patch against parentRevision. With \"full-text\" it is the note's whole new body, and it is only accepted when parentRevision is the current head.",
30
30
"maxLength": 1000000,
31
31
"type": "string"
32
32
},
33
33
"diffFormat": {
34
34
"description": "How to read the diff field. \"diff-match-patch\" means a patch against parentRevision. \"full-text\" means the whole note body.",
35
35
"knownValues": [
36
36
"diff-match-patch",
37
37
"full-text"
38
38
],
39
39
"maxLength": 32,
40
40
"type": "string"
41
41
},
42
42
"message": {
43
43
"description": "Optional commit message describing this revision.",
44
44
"maxGraphemes": 1024,
45
45
"maxLength": 10240,
46
46
"type": "string"
47
47
},
48
48
"noteRef": {
49
49
"description": "AT-URI of the parent note record.",
50
50
"format": "at-uri",
51
51
"type": "string"
52
52
},
53
53
"parentRevision": {
54
54
"description": "AT-URI of the previous revision. Omitted for the first revision of a note.",
55
55
"format": "at-uri",
56
56
"type": "string"
57
57
}
58
58
},
59
59
"required": [
60
60
"noteRef",
61
61
"diff",
62
62
"diffFormat",
63
63
"createdAt"
64
64
],
65
65
"type": "object"
66
66
},
67
67
"type": "record"
68
68
}
69
69
},
70
70
"id": "wiki.lichen.noteRevision",
71
71
"lexicon": 1
72
72
}