# app.rocksky.song

> Published by [rocksky.app](https://lexicon.garden/identity/did:plc:vegqomyce4ssoqs7zwqvgqty)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.song)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.song/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vegqomyce4ssoqs7zwqvgqty/app.rocksky.song/examples)

## Definitions

### `app.rocksky.song`

**Type**: `record`

A declaration of a song.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `isrc` | `string` | No | The International Standard Recording Code (ISRC) of the song. |
| `mbid` | `string` | No | The MusicBrainz ID of the song. |
| `tags` | `array` | No | The tags of the song. |
| `wiki` | `string` | No | Informations about the song |
| `year` | `integer` | No | The year the song was released. |
| `album` | `string` | Yes | The album of the song. |
| `genre` | `string` | No | The genre of the song. |
| `label` | `string` | No | The label of the song. |
| `title` | `string` | Yes | The title of the song. |
| `artist` | `string` | Yes | The artist of the song. |
| `lyrics` | `string` | No | The lyrics of the song. |
| `artists` | `array` | No | The artists of the song with MusicBrainz IDs. |
| `albumArt` | `blob` | No | The album art of the song. |
| `composer` | `string` | No | The composer of the song. |
| `duration` | `integer` | Yes | The duration of the song in milliseconds. |
| `createdAt` | `string` (datetime) | Yes | The date when the song was created. |
| `tidalLink` | `string` (uri) | No | The Tidal link of the song. |
| `discNumber` | `integer` | No | The disc number of the song in the album. |
| `albumArtUrl` | `string` (uri) | No | The URL of the album art of the song. |
| `albumArtist` | `string` | Yes | The album artist of the song. |
| `releaseDate` | `string` (datetime) | No | The release date of the song. |
| `spotifyLink` | `string` (uri) | No | The Spotify link of the song. |
| `trackNumber` | `integer` | No | The track number of the song in the album. |
| `youtubeLink` | `string` (uri) | No | The YouTube link of the song. |
| `appleMusicLink` | `string` (uri) | No | The Apple Music link of the song. |
| `copyrightMessage` | `string` | No | The copyright message of the song. |

## Raw Schema

```json
{
  "id": "app.rocksky.song",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "artist",
          "album",
          "albumArtist",
          "duration",
          "createdAt"
        ],
        "properties": {
          "isrc": {
            "type": "string",
            "maxLength": 32,
            "description": "The International Standard Recording Code (ISRC) of the song."
          },
          "mbid": {
            "type": "string",
            "description": "The MusicBrainz ID of the song."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 256,
              "minLength": 1
            },
            "description": "The tags of the song."
          },
          "wiki": {
            "type": "string",
            "maxLength": 10000,
            "description": "Informations about the song"
          },
          "year": {
            "type": "integer",
            "description": "The year the song was released."
          },
          "album": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "description": "The album of the song."
          },
          "genre": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "description": "The genre of the song."
          },
          "label": {
            "type": "string",
            "maxLength": 256,
            "description": "The label of the song."
          },
          "title": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "description": "The title of the song."
          },
          "artist": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "description": "The artist of the song."
          },
          "lyrics": {
            "type": "string",
            "maxLength": 10000,
            "description": "The lyrics of the song."
          },
          "artists": {
            "type": "array",
            "items": {
              "ref": "app.rocksky.artist.defs#artistMbid",
              "type": "ref"
            },
            "description": "The artists of the song with MusicBrainz IDs."
          },
          "albumArt": {
            "type": "blob",
            "accept": [
              "image/png",
              "image/jpeg"
            ],
            "maxSize": 2000000,
            "description": "The album art of the song."
          },
          "composer": {
            "type": "string",
            "maxLength": 256,
            "description": "The composer of the song."
          },
          "duration": {
            "type": "integer",
            "minimum": 1,
            "description": "The duration of the song in milliseconds."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "The date when the song was created."
          },
          "tidalLink": {
            "type": "string",
            "format": "uri",
            "description": "The Tidal link of the song."
          },
          "discNumber": {
            "type": "integer",
            "minimum": 1,
            "description": "The disc number of the song in the album."
          },
          "albumArtUrl": {
            "type": "string",
            "format": "uri",
            "description": "The URL of the album art of the song."
          },
          "albumArtist": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "description": "The album artist of the song."
          },
          "releaseDate": {
            "type": "string",
            "format": "datetime",
            "description": "The release date of the song."
          },
          "spotifyLink": {
            "type": "string",
            "format": "uri",
            "description": "The Spotify link of the song."
          },
          "trackNumber": {
            "type": "integer",
            "minimum": 1,
            "description": "The track number of the song in the album."
          },
          "youtubeLink": {
            "type": "string",
            "format": "uri",
            "description": "The YouTube link of the song."
          },
          "appleMusicLink": {
            "type": "string",
            "format": "uri",
            "description": "The Apple Music link of the song."
          },
          "copyrightMessage": {
            "type": "string",
            "maxLength": 256,
            "description": "The copyright message of the song."
          }
        }
      },
      "description": "A declaration of a song."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
