{
  "lexicon": 1,
  "id": "sh.tangled.actor.profile",
  "defs": {
    "main": {
      "type": "record",
      "description": "A declaration of a Tangled account profile.",
      "key": "literal:self",
      "record": {
        "type": "object",
        "required": ["bluesky"],
        "properties": {
          "avatar": {
            "type": "blob",
            "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'",
            "accept": ["image/png", "image/jpeg"],
            "maxSize": 1000000
          },
          "description": {
            "type": "string",
            "description": "Free-form profile description text.",
            "maxGraphemes": 256,
            "maxLength": 2560
          },
          "links": {
            "type": "array",
            "minLength": 0,
            "maxLength": 5,
            "items": {
              "type": "string",
              "description": "Any URI, intended for social profiles or websites, can be used to link DIDs/AT-URIs too.",
              "format": "uri"
            }
          },
          "stats": {
            "type": "array",
            "minLength": 0,
            "maxLength": 2,
            "items": {
              "type": "string",
              "description": "Vanity stats.",
              "enum": [
                "merged-pull-request-count",
                "closed-pull-request-count",
                "open-pull-request-count",
                "open-issue-count",
                "closed-issue-count",
                "repository-count",
                "star-count"
              ]
            }
          },
          "bluesky": {
            "type": "boolean",
            "description": "Include link to this account on Bluesky."
          },
          "location": {
            "type": "string",
            "description": "Free-form location text.",
            "maxGraphemes": 40,
            "maxLength": 400
          },
          "pinnedRepositories": {
            "type": "array",
            "description": "Pinned repositories. Values are repo DIDs for repos that have them, or AT-URIs for legacy repos.",
            "minLength": 0,
            "maxLength": 6,
            "items": {
              "type": "string"
            }
          },
          "pronouns": {
            "type": "string",
            "description": "Preferred gender pronouns.",
            "maxLength": 40
          },
          "preferredHandle": {
            "type": "string",
            "description": "A handle the user prefers to be displayed as.",
            "format": "handle",
            "maxLength": 253
          }
        }
      }
    }
  }
}
