{
"id": "at.eptss.trackLink",
"defs": {
"main": {
"key": "any",
"type": "record",
"record": {
"type": "object",
"required": [
"track",
"url",
"createdAt"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Raw, exactly as encountered — query string and all. Stripping is a guess, and a guess in a record is permanent; normalize in the index, which is the only part that can be re-run."
},
"track": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "The at.eptss.track this link locates."
},
"service": {
"type": "string",
"maxLength": 253,
"description": "Base domain the url belongs to — 'open.spotify.com', 'music.apple.com', 'bandcamp.com'. A domain and never an enum: a new service must cost zero schema changes."
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
},
"description": "An assertion that a track plays at a URL, written by anyone, about any track, and never editing the track it is about. There is at least one of these per platform per song, which is exactly why the URL cannot live on the track itself. Prefer a deterministic rkey so re-running an importer upserts instead of piling up."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}