{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "admin": {
      "properties": {
        "avatar": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "main": {
      "description": "A space's public face in the space directory (D50): the community identity's record in the default pair's content space, keyed by the space's own key (its pair's TID), so a space has at most one. A space is listed exactly when its profile exists; deleting it unlists the space. Records by anyone else, elsewhere, or under a key that is not a registered pair's are ignored.",
      "key": "any",
      "record": {
        "properties": {
          "admin": {
            "description": "The people to ask about joining, in order. Clients show their current profiles and use these copies only for an account that does not resolve.",
            "items": {
              "ref": "#admin",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "avatar": {
            "accept": [
              "image/*"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "description": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "minLength": 1,
            "type": "string"
          },
          "displayName": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          },
          "facets": {
            "description": "Mentions and links in the description.",
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            },
            "type": "array"
          },
          "header": {
            "accept": [
              "image/*"
            ],
            "description": "Shown as a 3:1 band, cropped by the client.",
            "maxSize": 1000000,
            "type": "blob"
          }
        },
        "required": [
          "displayName",
          "description",
          "avatar",
          "header"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.off-the-clock.community.spaceProfile",
  "lexicon": 1
}
