{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An end-to-end encrypted memo. The memo body is encrypted client-side for the owner only and stored inline in this record.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Client-declared timestamp when the memo was originally created.",
            "format": "datetime",
            "type": "string"
          },
          "encryptedContent": {
            "description": "Ciphertext of the memo, encrypted so that only the owner can decrypt it. Stored inline in the record (base64-encoded as {\"$bytes\": ...} in JSON).",
            "maxLength": 65536,
            "type": "bytes"
          },
          "updatedAt": {
            "description": "Client-declared timestamp when the memo was last updated. Equal to createdAt on creation.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "encryptedContent",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.afabl.atmemo.memo",
  "lexicon": 1
}
