{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "externalUrl": {
      "properties": {
        "type": {
          "description": "MusicBrainz URL relation type (e.g. 'streaming', 'free streaming', 'youtube music video').",
          "type": "string"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "type",
        "url"
      ],
      "type": "object"
    },
    "genreTag": {
      "properties": {
        "count": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "main": {
      "description": "A Last.fm scrobble play record written by Linkname.",
      "key": "tid",
      "record": {
        "properties": {
          "artistMbId": {
            "description": "MusicBrainz ID for the artist.",
            "type": "string"
          },
          "artistNames": {
            "description": "Artist name(s).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "coverArtUrl": {
            "description": "URL to the album cover art.",
            "type": "string"
          },
          "createdAt": {
            "description": "When this record was created.",
            "format": "datetime",
            "type": "string"
          },
          "duration": {
            "description": "Track duration in milliseconds, from MusicBrainz.",
            "type": "integer"
          },
          "externalUrls": {
            "description": "External URL relations for the recording, from MusicBrainz.",
            "items": {
              "ref": "#externalUrl",
              "type": "ref"
            },
            "type": "array"
          },
          "genres": {
            "description": "Community-voted genres for the recording, from MusicBrainz.",
            "items": {
              "ref": "#genreTag",
              "type": "ref"
            },
            "type": "array"
          },
          "isrcs": {
            "description": "ISRC codes for the recording, from MusicBrainz.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "originUrl": {
            "description": "URL to the track on Last.fm.",
            "format": "uri",
            "type": "string"
          },
          "playedTime": {
            "description": "When the track was played on Last.fm.",
            "format": "datetime",
            "type": "string"
          },
          "releaseMbId": {
            "description": "MusicBrainz ID for the release/album.",
            "type": "string"
          },
          "releaseName": {
            "description": "Album/release name.",
            "type": "string"
          },
          "tags": {
            "description": "Community-voted tags for the recording, from MusicBrainz.",
            "items": {
              "ref": "#genreTag",
              "type": "ref"
            },
            "type": "array"
          },
          "trackMbId": {
            "description": "MusicBrainz ID for the track.",
            "type": "string"
          },
          "trackName": {
            "description": "Track/song name.",
            "type": "string"
          }
        },
        "required": [
          "trackName",
          "artistNames",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "me.linkna.lastfm",
  "lexicon": 1
}
