{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "link": {
      "properties": {
        "description": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "label": {
          "description": "The handle or address to display.",
          "maxGraphemes": 128,
          "maxLength": 1280,
          "type": "string"
        },
        "platform": {
          "description": "Lowercase name of the service, such as email or github.",
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "platform",
        "label",
        "url"
      ],
      "type": "object"
    },
    "main": {
      "description": "The account owner's contact points and profiles elsewhere, in display order.",
      "key": "literal:self",
      "record": {
        "properties": {
          "links": {
            "items": {
              "ref": "#link",
              "type": "ref"
            },
            "maxLength": 64,
            "type": "array"
          },
          "pgpKey": {
            "description": "ASCII-armored OpenPGP public key for encrypted contact.",
            "maxLength": 20000,
            "type": "string"
          }
        },
        "required": [
          "links"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "dev.kualta.links",
  "lexicon": 1
}
