forked from
rocksky.app/rocksky
A decentralized music tracking and discovery platform built on AT Protocol 馃幍
1{
2 "lexicon": 1,
3 "id": "app.rocksky.song.createSong",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Create a new song",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "title",
14 "artist",
15 "album",
16 "albumArtist"
17 ],
18 "properties": {
19 "title": {
20 "type": "string",
21 "description": "The title of the song"
22 },
23 "artist": {
24 "type": "string",
25 "description": "The artist of the song"
26 },
27 "albumArtist": {
28 "type": "string",
29 "description": "The album artist of the song, if different from the main artist"
30 },
31 "album": {
32 "type": "string",
33 "description": "The album of the song, if applicable"
34 },
35 "duration": {
36 "type": "integer",
37 "description": "The duration of the song in seconds"
38 },
39 "mbId": {
40 "type": "string",
41 "description": "The MusicBrainz ID of the song, if available"
42 },
43 "albumArt": {
44 "type": "string",
45 "description": "The URL of the album art for the song",
46 "format": "uri"
47 },
48 "trackNumber": {
49 "type": "integer",
50 "description": "The track number of the song in the album, if applicable"
51 },
52 "releaseDate": {
53 "type": "string",
54 "description": "The release date of the song, formatted as YYYY-MM-DD"
55 },
56 "year": {
57 "type": "integer",
58 "description": "The year the song was released"
59 },
60 "discNumber": {
61 "type": "integer",
62 "description": "The disc number of the song in the album, if applicable"
63 },
64 "lyrics": {
65 "type": "string",
66 "description": "The lyrics of the song, if available"
67 }
68 }
69 }
70 },
71 "output": {
72 "encoding": "application/json",
73 "schema": {
74 "type": "ref",
75 "ref": "app.rocksky.song.defs#songViewDetailed"
76 }
77 }
78 }
79 }
80}