Add GetArtists RPC with artist monitor state (monitored/unmonitored/excluded)

This commit is contained in:
Alexander
2026-05-08 22:27:56 +02:00
parent 60c94935b2
commit e49cc25372
6 changed files with 125 additions and 247 deletions
@@ -4,6 +4,7 @@ option go_package = "homelab.lan/music-agregator/gen/music_agregator/v1/";
service MusicAgregatorService {
rpc MonitorAlbum(MonitorAlbumRequest) returns (MonitorAlbumResponse) {}
rpc GetArtists(GetArtistsRequest) returns (GetArtistsResponse) {}
}
message MonitorAlbumRequest {
@@ -26,6 +27,30 @@ message MonitorAlbumResponse {
MonitoredRelease release = 1;
}
message GetArtistsRequest {}
message GetArtistsResponse {
repeated ArtistSummary artists = 1;
}
enum ArtistMonitorState {
ARTIST_MONITOR_STATE_UNSPECIFIED = 0;
ARTIST_MONITOR_STATE_MONITORED = 1;
ARTIST_MONITOR_STATE_UNMONITORED = 2;
ARTIST_MONITOR_STATE_EXCLUDED = 3;
}
message ArtistSummary {
string id = 1;
string external_id = 2;
string name = 3;
string artist_type = 4;
string country = 5;
repeated string genres = 6;
string image_url = 7;
ArtistMonitorState monitor_state = 8;
}
message MonitoredRelease {
string info_hash = 1;
string artist = 2;