using System.Text.Json.Serialization;
namespace StellaOps.Provcache;
///
/// Chunk included in the bundle with base64-encoded blob.
///
public sealed record BundleChunk
{
///
/// Zero-based chunk index.
///
[JsonPropertyName("index")]
public required int Index { get; init; }
///
/// SHA256 hash for verification.
///
[JsonPropertyName("hash")]
public required string Hash { get; init; }
///
/// Size in bytes.
///
[JsonPropertyName("size")]
public required int Size { get; init; }
///
/// MIME type.
///
[JsonPropertyName("contentType")]
public required string ContentType { get; init; }
///
/// Base64-encoded chunk data.
///
[JsonPropertyName("data")]
public required string Data { get; init; }
}