atproto blogging
at main 49 lines 1.2 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.edit.diff", 4 "defs": { 5 "main": { 6 "type": "record", 7 "description": "An edit record for a notebook.", 8 "key": "tid", 9 "record": { 10 "type": "object", 11 "required": [ 12 "root", 13 "doc" 14 ], 15 "properties": { 16 "createdAt": { 17 "type": "string", 18 "format": "datetime" 19 }, 20 "doc": { 21 "type": "ref", 22 "ref": "sh.weaver.edit.defs#docRef" 23 }, 24 "inlineDiff": { 25 "type": "bytes", 26 "description": "An inline diff for for small edit batches. Either this or snapshot must be present to be valid", 27 "maxLength": 8192 28 }, 29 "prev": { 30 "type": "ref", 31 "ref": "com.atproto.repo.strongRef" 32 }, 33 "root": { 34 "type": "ref", 35 "ref": "com.atproto.repo.strongRef" 36 }, 37 "snapshot": { 38 "type": "blob", 39 "description": "Diff from previous diff. Either this or inlineDiff must be present to be valid", 40 "accept": [ 41 "*/*" 42 ], 43 "maxSize": 3000000 44 } 45 } 46 } 47 } 48 } 49}