{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Update the authenticated user's profile",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "avatarBlob": {
              "description": "Base64-encoded avatar image data (png, jpeg, or webp; decoded size limit 1MB)",
              "maxLength": 1400000,
              "type": "string"
            },
            "avatarMimeType": {
              "description": "MIME type of the avatar image (image/png, image/jpeg, image/webp)",
              "maxLength": 128,
              "type": "string"
            },
            "bannerBlob": {
              "description": "Base64-encoded banner image data (png, jpeg, or webp; decoded size limit 2MB)",
              "maxLength": 2800000,
              "type": "string"
            },
            "bannerMimeType": {
              "description": "MIME type of the banner image (image/png, image/jpeg, image/webp)",
              "maxLength": 128,
              "type": "string"
            },
            "bio": {
              "description": "User bio. Stored as the `description` field of the social.coves.actor.profile record.",
              "maxGraphemes": 256,
              "maxLength": 2560,
              "type": "string"
            },
            "displayName": {
              "description": "Optional display name",
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "description": "CID of the updated profile record",
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "description": "AT-URI of the updated profile record",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.coves.actor.updateProfile",
  "lexicon": 1
}
