feat(package,daemon): yank releases from the CLI; report workspace and lockfile in info
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 12s

This commit is contained in:
faumaray committed 2026-12-04 08:21:15 +03:00
1 parent f5eb489e79
commit 1a4c062021
11 files changed
+249 -20

No files matched your search

@@ -49,6 +49,12 @@ struct TokenInfo {
[[nodiscard]] Void::Result::Result<std::vector<TokenInfo>, Void::Result::Error>
fetch_tokens(std::string_view registry_url, const RegistryAuth &auth = {});
// Marks a release yanked or unyanked via POST .../<version>/yank (bearer tokens are exempt
// from CSRF; owner or admin authority required). Returns the resulting yank state.
[[nodiscard]] Void::Result::Result<bool, Void::Result::Error>
set_release_yanked(std::string_view registry_url, std::string_view package_name,
std::string_view version, bool yanked, const RegistryAuth &auth = {});
// Revokes one API token via DELETE /api/v1/tokens/<token_id> (owner or admin only).
[[nodiscard]] Void::Result::Result<void, Void::Result::Error>
revoke_token(std::string_view registry_url, std::string_view token_id,