using System.Text.Json.Serialization;
namespace AIStudio.Tools;
///
/// The response of the update check.
///
/// True if an update is available.
/// The new version, when available.
/// The changelog of the new version, when available.
public readonly record struct UpdateResponse(
[property:JsonPropertyName("update_is_available")] bool UpdateIsAvailable,
[property:JsonPropertyName("error")] bool Error,
[property:JsonPropertyName("new_version")] string NewVersion,
string Changelog
);