{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "link": {
      "properties": {
        "name": {
          "maxGraphemes": 100,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "main": {
      "key": "literal:self",
      "record": {
        "properties": {
          "avatarCid": {
            "description": "CID of the avatar blob uploaded via com.atproto.repo.uploadBlob.",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 256,
            "maxLength": 256,
            "type": "string"
          },
          "displayName": {
            "maxGraphemes": 640,
            "maxLength": 640,
            "type": "string"
          },
          "links": {
            "description": "Links the reader shows on their profile. A Bookshop.org link renders as their store: the host decides, not a separate field.",
            "items": {
              "ref": "#link",
              "type": "ref"
            },
            "maxLength": 5,
            "type": "array"
          },
          "privateShelving": {
            "default": false,
            "description": "When true, a book the reader shelves without choosing otherwise is kept in their reading space instead of their public repo.",
            "type": "boolean"
          },
          "publishAnnotations": {
            "default": false,
            "description": "When true, new and edited notes are mirrored to the reader's repo as readingProgress annotation records.",
            "type": "boolean"
          },
          "readingPresence": {
            "default": "off",
            "description": "Who may see that this reader is reading a book right now. Absent means off. `connections` = readers who share a companion read, a reading list or club, or a mutual follow; `public` = any opted-in reader of the same book.",
            "knownValues": [
              "off",
              "connections",
              "public"
            ],
            "type": "string"
          },
          "shareWeeklyReport": {
            "default": false,
            "description": "When true, each weekly report and its card are published at /weekly/<did>/<start>; absent means private.",
            "type": "boolean"
          },
          "skinTone": {
            "description": "Preferred emoji skin-tone modifier for reactions this account writes. Absent means none. It travels with the profile so the choice reaches every device; records hold the toned emoji, while counts group on the base emoji.",
            "knownValues": [
              "none",
              "light",
              "medium-light",
              "medium",
              "medium-dark",
              "dark"
            ],
            "type": "string"
          },
          "timeZone": {
            "description": "IANA time zone used to bucket reading days. Absent means UTC.",
            "maxLength": 64,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "weekStartsOn": {
            "description": "First day of the reader's week: 0 = Sunday … 6 = Saturday. Absent means 1 (Monday).",
            "maximum": 6,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "User profile record stored on the user's PDS at rkey 'self'.",
  "id": "com.livtet.actor.profile",
  "lexicon": 1
}
