{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An author's byline.pub profile, signed by and stored in the author's own repository. The repo's DID is the author identity; this record is the byline.pub-specific public profile that extends it, independent of any venue's own profile record. One record per repo (key 'self').",
      "key": "literal:self",
      "record": {
        "properties": {
          "avatar": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "Profile image, stored as a blob in the author's own repository.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "bio": {
            "description": "Author biography for the byline.pub page. Optional and byline-specific.",
            "maxGraphemes": 2560,
            "maxLength": 10000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "displayName": {
            "description": "Public display name for the author's byline.pub page. Optional and byline-specific; not synced from any venue profile. Falls back to the repo handle if unset.",
            "maxGraphemes": 64,
            "maxLength": 256,
            "type": "string"
          },
          "genres": {
            "description": "Genres or categories this author writes in. Freeform, used for directory browse/filter.",
            "items": {
              "maxGraphemes": 128,
              "maxLength": 128,
              "type": "string"
            },
            "type": "array"
          },
          "links": {
            "description": "Author-level links: website, social, retailer profile, etc.",
            "items": {
              "ref": "lex:pub.byline.defs#link",
              "type": "ref"
            },
            "type": "array"
          },
          "penNames": {
            "description": "Other names the author publishes under. A book directory may list one person under several bylines.",
            "items": {
              "maxGraphemes": 256,
              "maxLength": 256,
              "type": "string"
            },
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "pub.byline.profile",
  "lexicon": 1
}
