{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bodyPart": {
      "description": "A subset of JMAP EmailBodyPart: enough to find the part in the raw message.",
      "properties": {
        "cid": {
          "description": "Content-Id, without angle brackets.",
          "maxLength": 998,
          "type": "string"
        },
        "disposition": {
          "knownValues": [
            "attachment",
            "inline"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "name": {
          "description": "Decoded file name.",
          "maxGraphemes": 256,
          "maxLength": 1024,
          "type": "string"
        },
        "partId": {
          "description": "JMAP partId, unique within the message.",
          "maxLength": 64,
          "type": "string"
        },
        "size": {
          "description": "Decoded size in octets.",
          "minimum": 0,
          "type": "integer"
        },
        "type": {
          "description": "Media type, lowercased (e.g. application/pdf).",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "emailAddress": {
      "description": "JMAP EmailAddress.",
      "properties": {
        "email": {
          "description": "The addr-spec as written in the header; not validated.",
          "maxLength": 998,
          "type": "string"
        },
        "name": {
          "description": "Decoded display name.",
          "maxGraphemes": 256,
          "maxLength": 1024,
          "type": "string"
        }
      },
      "required": [
        "email"
      ],
      "type": "object"
    },
    "emailSource": {
      "description": "Identifiers in the sovrn mailbox the message was copied from. Valid only there: they can change if the mailbox is rebuilt.",
      "properties": {
        "blobId": {
          "description": "JMAP blobId of the raw message.",
          "maxLength": 255,
          "type": "string"
        },
        "emailId": {
          "description": "JMAP Email id.",
          "maxLength": 255,
          "type": "string"
        },
        "threadId": {
          "description": "JMAP threadId.",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "emailId"
      ],
      "type": "object"
    },
    "mailboxSource": {
      "description": "Identifiers in the sovrn mailbox the folder was copied from. Valid only there.",
      "properties": {
        "mailboxId": {
          "description": "JMAP Mailbox id.",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "mailboxId"
      ],
      "type": "object"
    }
  },
  "description": "Shared types of the mail records sovrn copies to a person's Atmosphere account (at.sovrn.mail.email, at.sovrn.mail.mailbox).",
  "id": "at.sovrn.mail.defs",
  "lexicon": 1
}
