{"openapi":"3.1.0","info":{"title":"Piotr Music API","description":"Twój prywatny katalog muzyki, oryginalne pliki i synchronizacja szkiców FreshTunes. Użyj tokenu Bearer z `pmusic token`. Migracja nie wysyła wydania do dystrybucji.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["Status"],"summary":"Sprawdź działanie usługi","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/session":{"post":{"tags":["Sesja"],"summary":"Zaloguj przeglądarkę tokenem instancji","operationId":"login_session_api_v1_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["Sesja"],"summary":"Wyloguj przeglądarkę","operationId":"logout_session_api_v1_session_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/settings":{"get":{"tags":["Status"],"summary":"Settings","operationId":"settings_api_v1_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/imports/audio":{"post":{"tags":["Import"],"summary":"Importuj audio bez powielania wydań","description":"Ponowienie z tymi samymi oryginałami zwraca istniejące wydanie bez zmiany metadanych. MP3/WAV mogą stanowić jawne alternatywy jednego nagrania. Niejednoznaczne powiązania zwracają IMPORT_CONFLICT409.","operationId":"import_audio_api_v1_imports_audio_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioImportInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioImportResult"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/releases/{release_id}/files":{"get":{"tags":["Pliki"],"summary":"Pokaż zachowane oryginały i alternatywne formaty wydania","operationId":"release_files_api_v1_releases__release_id__files_get","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilePage"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/releases":{"get":{"tags":["Wydania"],"summary":"Przeglądaj i wyszukuj wydania","operationId":"list_releases_api_v1_releases_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":255,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"category","in":"query","required":false,"schema":{"enum":["all","local","linked","conflict","liked"],"type":"string","default":"all","title":"Category"}},{"name":"genre","in":"query","required":false,"schema":{"type":"string","maxLength":255,"default":"","title":"Genre"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","oldest","title","artist"],"type":"string","default":"newest","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["Wydania"],"summary":"Dodaj lokalne wydanie","operationId":"create_release_api_v1_releases_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/library":{"get":{"tags":["Wydania"],"summary":"Przeglądaj gatunki i liczby wydań w bibliotece","operationId":"library_api_v1_library_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibrarySummary"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/releases/{release_id}":{"get":{"tags":["Wydania"],"summary":"Odczytaj wydanie","operationId":"get_release_api_v1_releases__release_id__get","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["Wydania"],"summary":"Zmień wydanie z kontrolą wersji","operationId":"edit_release_api_v1_releases__release_id__patch","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/releases/{release_id}/like":{"put":{"tags":["Wydania"],"summary":"Polub wydanie lub cofnij lokalne polubienie","description":"Ustaw liked na true albo false. Powtórzenie tego samego żądania jest bezpieczne. Nie zmienia metadanych ani danych FreshTunes.","operationId":"like_release_api_v1_releases__release_id__like_put","parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","title":"Release Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LikeInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LikeState"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/assets":{"post":{"tags":["Pliki"],"summary":"Dodaj oryginalny plik jako strumień","operationId":"upload_asset_api_v1_assets_post","parameters":[{"name":"kind","in":"query","required":true,"schema":{"enum":["artwork","audio"],"type":"string","title":"Kind"}},{"name":"filename","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Filename"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/assets/{asset_id}":{"get":{"tags":["Pliki"],"summary":"Odczytaj parametry pliku","operationId":"asset_metadata_api_v1_assets__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/assets/{asset_id}/content":{"get":{"tags":["Pliki"],"summary":"Pobierz okładkę lub odtwórz audio","operationId":"asset_content_api_v1_assets__asset_id__content_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Oryginalny plik; Content-Type odpowiada zweryfikowanemu formatowi obrazu lub audio.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/freshtunes/status":{"get":{"tags":["FreshTunes"],"summary":"Sprawdź sesję FreshTunes","operationId":"ft_status_api_v1_freshtunes_status_get","parameters":[{"name":"verify","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Verify"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshTunesStatus"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/freshtunes/challenge":{"post":{"tags":["FreshTunes"],"summary":"Pobierz CAPTCHA do logowania","operationId":"ft_challenge_api_v1_freshtunes_challenge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaChallenge"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/freshtunes/login":{"post":{"tags":["FreshTunes"],"summary":"Połącz konto bez zapisywania hasła","operationId":"ft_login_api_v1_freshtunes_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshTunesStatus"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/freshtunes/catalogues":{"get":{"tags":["FreshTunes"],"summary":"Pobierz gatunki, style i artystów","operationId":"ft_catalogues_api_v1_freshtunes_catalogues_get","parameters":[{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/freshtunes/verify":{"post":{"tags":["FreshTunes"],"summary":"Sprawdź wymagania konta przed pierwszą migracją","operationId":"ft_verify_api_v1_freshtunes_verify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/freshtunes/pull":{"post":{"tags":["FreshTunes"],"summary":"Pobierz i połącz zdalny katalog","operationId":"ft_pull_api_v1_freshtunes_pull_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PullResult"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/sync/plans":{"post":{"tags":["Synchronizacja"],"summary":"Przygotuj podgląd migracji bez zdalnego zapisu","operationId":"sync_plan_api_v1_sync_plans_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPlan"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/sync/apply":{"post":{"tags":["Synchronizacja"],"summary":"Migruj szkic na podstawie aktualnego podglądu","operationId":"sync_apply_api_v1_sync_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/sync/resolve":{"post":{"tags":["Synchronizacja"],"summary":"Wybierz wersję dla pokazanych konfliktów","operationId":"sync_resolve_api_v1_sync_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/sync/reconcile":{"post":{"tags":["Synchronizacja"],"summary":"Odzyskaj wynik niepewnego zapisu przez dokładny ID szkicu","operationId":"sync_reconcile_api_v1_sync_reconcile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/operations":{"get":{"tags":["Synchronizacja"],"summary":"Sprawdź wyniki i postęp migracji","operationId":"operations_api_v1_operations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationPage"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/operations/{operation_id}":{"get":{"tags":["Synchronizacja"],"summary":"Odczytaj jedną operację po ID","operationId":"operation_api_v1_operations__operation_id__get","parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Operation"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/sync/plans/{plan_id}":{"get":{"tags":["Synchronizacja"],"summary":"Odczytaj zapisany podgląd","operationId":"get_plan_api_v1_sync_plans__plan_id__get","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPlan"}}}},"400":{"description":"Nieprawidłowe żądanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Wymagane logowanie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Niedozwolony host lub Origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nie znaleziono","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Konflikt lub niepewna operacja","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Przekroczony limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Dane wymagają poprawy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Limit FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Błąd usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Brak poprawnego potwierdzenia FreshTunes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Brak wymaganej lokalnej usługi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"BearerAuth":[]}]}}},"components":{"schemas":{"ApplyInput":{"properties":{"plan_id":{"type":"string","title":"Plan Id"}},"additionalProperties":false,"type":"object","required":["plan_id"],"title":"ApplyInput"},"Asset":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"kind":{"type":"string","enum":["artwork","audio"],"title":"Kind"},"mime":{"type":"string","title":"Mime"},"size":{"type":"integer","title":"Size"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"channels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Channels"},"codec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Codec"},"created_at":{"type":"string","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","filename","kind","mime","size"],"title":"Asset"},"AudioImportInput":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"artist":{"type":"string","maxLength":255,"title":"Artist","default":"KRAM"},"genre":{"type":"string","maxLength":255,"title":"Genre","default":""},"subgenre":{"type":"string","maxLength":255,"title":"Subgenre","default":""},"audio_ids":{"items":{"type":"string","pattern":"^[a-f0-9]{64}$"},"type":"array","maxItems":20,"minItems":1,"title":"Audio Ids"},"artwork_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Artwork Id"}},"additionalProperties":false,"type":"object","required":["title","audio_ids"],"title":"AudioImportInput"},"AudioImportResult":{"properties":{"release":{"$ref":"#/components/schemas/Release"},"created":{"type":"boolean","title":"Created"},"added_sources":{"type":"integer","title":"Added Sources"}},"additionalProperties":false,"type":"object","required":["release","created","added_sources"],"title":"AudioImportResult"},"CaptchaChallenge":{"properties":{"id":{"type":"string","title":"Id"},"image":{"type":"string","title":"Image","description":"Obraz data URI; przepisz kod do logowania. ID jest ważne przez expires_in sekund."},"expires_in":{"type":"integer","title":"Expires In"}},"additionalProperties":false,"type":"object","required":["id","image","expires_in"],"title":"CaptchaChallenge"},"Difference":{"properties":{"field":{"type":"string","title":"Field"},"local":{"title":"Local"},"remote":{"title":"Remote"}},"additionalProperties":false,"type":"object","required":["field","local","remote"],"title":"Difference"},"EditInput":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"changes":{"$ref":"#/components/schemas/ReleaseUpdate"}},"additionalProperties":false,"type":"object","required":["version","changes"],"title":"EditInput"},"ErrorDetails":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"title":"Details"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"ErrorDetails"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetails"}},"additionalProperties":false,"type":"object","required":["error"],"title":"ErrorEnvelope"},"FilePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Asset"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"FilePage"},"FreshTunesStatus":{"properties":{"connected":{"type":"boolean","title":"Connected"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified At"},"verified_live":{"type":"boolean","title":"Verified Live"},"contract_verified":{"type":"boolean","title":"Contract Verified"},"integration":{"type":"string","title":"Integration"}},"additionalProperties":false,"type":"object","required":["connected","verified_live","contract_verified","integration"],"title":"FreshTunesStatus"},"GenreCount":{"properties":{"name":{"type":"string","title":"Name"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["name","count"],"title":"GenreCount"},"LibrarySummary":{"properties":{"total":{"type":"integer","title":"Total"},"genres":{"items":{"$ref":"#/components/schemas/GenreCount"},"type":"array","title":"Genres"},"categories":{"additionalProperties":{"type":"integer"},"type":"object","title":"Categories"}},"additionalProperties":false,"type":"object","required":["total","genres","categories"],"title":"LibrarySummary"},"LikeInput":{"properties":{"liked":{"type":"boolean","title":"Liked"}},"additionalProperties":false,"type":"object","required":["liked"],"title":"LikeInput"},"LikeState":{"properties":{"release_id":{"type":"string","title":"Release Id"},"liked":{"type":"boolean","title":"Liked"}},"additionalProperties":false,"type":"object","required":["release_id","liked"],"title":"LikeState"},"LoginInput":{"properties":{"username":{"type":"string","maxLength":255,"minLength":1,"title":"Username"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true},"answer":{"type":"string","maxLength":20,"minLength":1,"title":"Answer"},"challenge_id":{"type":"string","maxLength":100,"minLength":1,"title":"Challenge Id"},"client_secret":{"type":"string","format":"password","title":"Client Secret","default":"","writeOnly":true}},"additionalProperties":false,"type":"object","required":["username","password","answer","challenge_id"],"title":"LoginInput"},"Operation":{"properties":{"id":{"type":"string","title":"Id"},"plan_id":{"type":"string","title":"Plan Id"},"release_id":{"type":"string","title":"Release Id"},"account":{"type":"string","title":"Account"},"action":{"type":"string","title":"Action","default":"update"},"title":{"type":"string","title":"Title"},"state":{"type":"string","enum":["running","uncertain","verification_failed","failed","complete"],"title":"State"},"phase":{"type":"string","title":"Phase"},"remote_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified At"},"message":{"type":"string","title":"Message","default":""},"differences":{"items":{"type":"string"},"type":"array","title":"Differences"}},"type":"object","required":["id","plan_id","release_id","account","title","state","phase","remote_id","created_at","updated_at"],"title":"Operation"},"OperationPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Operation"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"OperationPage"},"Page":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Release"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"additionalProperties":false,"type":"object","required":["items","total","limit","offset"],"title":"Page"},"PlanInput":{"properties":{"release_id":{"type":"string","title":"Release Id"}},"additionalProperties":false,"type":"object","required":["release_id"],"title":"PlanInput"},"PullResult":{"properties":{"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"conflicts":{"type":"integer","title":"Conflicts"},"missing":{"type":"integer","title":"Missing"},"total":{"type":"integer","title":"Total"},"asset_warnings":{"type":"integer","title":"Asset Warnings"}},"additionalProperties":false,"type":"object","required":["created","updated","conflicts","missing","total","asset_warnings"],"title":"PullResult"},"ReconcileInput":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"remote_id":{"type":"string","pattern":"^[0-9]+$","title":"Remote Id"}},"additionalProperties":false,"type":"object","required":["operation_id","remote_id"],"title":"ReconcileInput"},"Release":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"artist":{"type":"string","title":"Artist"},"genre":{"type":"string","title":"Genre","default":""},"subgenre":{"type":"string","title":"Subgenre","default":""},"copyright":{"type":"string","title":"Copyright","default":"2026 KRAM"},"artwork_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artwork Id"},"tracks":{"items":{"$ref":"#/components/schemas/Track"},"type":"array","title":"Tracks"},"notes":{"type":"string","title":"Notes","default":""},"liked":{"type":"boolean","title":"Liked","description":"Lokalne polubienie w Piotr Music; nie jest synchronizowane do FreshTunes.","default":false},"version":{"type":"integer","title":"Version","default":1},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"remote_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Id"},"remote_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Url"},"remote_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Status"},"sync_status":{"type":"string","title":"Sync Status","default":"local"},"conflicts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Conflicts"},"asset_warnings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Asset Warnings"}},"additionalProperties":false,"type":"object","required":["id","title","artist","created_at","updated_at"],"title":"Release"},"ReleaseCreate":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"artist":{"type":"string","maxLength":255,"title":"Artist","default":"KRAM"},"genre":{"type":"string","maxLength":255,"title":"Genre","default":""},"subgenre":{"type":"string","maxLength":255,"title":"Subgenre","default":""},"copyright":{"type":"string","const":"2026 KRAM","title":"Copyright","default":"2026 KRAM"},"artwork_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Artwork Id"},"tracks":{"items":{"$ref":"#/components/schemas/Track"},"type":"array","maxItems":100,"title":"Tracks"},"notes":{"type":"string","maxLength":10000,"title":"Notes","default":""}},"additionalProperties":false,"type":"object","required":["title"],"title":"ReleaseCreate"},"ReleaseUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Title"},"artist":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Artist"},"genre":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Genre"},"subgenre":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Subgenre"},"artwork_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Artwork Id"},"tracks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Track"},"type":"array","maxItems":100},{"type":"null"}],"title":"Tracks"},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","title":"ReleaseUpdate"},"ResolveInput":{"properties":{"release_id":{"type":"string","title":"Release Id"},"choice":{"type":"string","enum":["local","remote"],"title":"Choice"},"version":{"type":"integer","minimum":1.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["release_id","choice","version"],"title":"ResolveInput"},"SessionInput":{"properties":{"token":{"type":"string","format":"password","title":"Token","writeOnly":true}},"additionalProperties":false,"type":"object","required":["token"],"title":"SessionInput"},"SyncIssue":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"SyncIssue"},"SyncPlan":{"properties":{"id":{"type":"string","title":"Id"},"release_id":{"type":"string","title":"Release Id"},"account":{"type":"string","title":"Account"},"version":{"type":"integer","title":"Version"},"remote_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Id"},"remote_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Digest"},"action":{"type":"string","enum":["create","update","pull","noop"],"title":"Action"},"differences":{"items":{"$ref":"#/components/schemas/Difference"},"type":"array","title":"Differences"},"issues":{"items":{"$ref":"#/components/schemas/SyncIssue"},"type":"array","title":"Issues"},"can_apply":{"type":"boolean","title":"Can Apply"},"created_at":{"type":"string","title":"Created At"},"notice":{"type":"string","title":"Notice"}},"additionalProperties":false,"type":"object","required":["id","release_id","account","version","remote_id","remote_digest","action","differences","issues","can_apply","created_at","notice"],"title":"SyncPlan"},"Track":{"properties":{"id":{"type":"string","maxLength":100,"title":"Id"},"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"audio_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Audio Id"},"isrc":{"type":"string","maxLength":12,"pattern":"^(?:[A-Z]{2}[A-Z0-9]{3}[0-9]{7})?$","title":"Isrc","default":""},"explicit":{"type":"string","enum":["not_explicit","explicit","clean"],"title":"Explicit","default":"not_explicit"}},"additionalProperties":false,"type":"object","required":["title"],"title":"Track"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Token z pmusic token; przeglądarka może też używać prywatnej sesji HttpOnly."}}}}