{
"id": "fyi.filed.prosebox.letter",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"box",
"body",
"createdAt"
],
"properties": {
"box": {
"type": "string",
"format": "did",
"maxLength": 2048,
"description": "DID of the recipient. Delivery is indexing: an inbox is letters whose box is one's own DID."
},
"body": {
"type": "string",
"maxLength": 100000,
"description": "Letter body in the CommonMark subset defined by the ATProsebox presentation contract."
},
"replyTo": {
"type": "string",
"format": "at-uri",
"maxLength": 8192,
"description": "AT-URI of the letter this one replies to."
},
"subject": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 256
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"deliverAt": {
"type": "string",
"format": "datetime",
"description": "Optional delayed-arrival timestamp. Renderers should not display the letter in the recipient's inbox before this time."
}
}
},
"description": "A correspondence letter."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"description": "A letter of correspondence addressed to a specific DID. Letters are immutable once sent; corrections are new letters."
}