using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace StellaOps.Scanner.Sbomer.BuildXPlugin.Descriptor;

/// <summary>
/// Represents an OCI artifact descriptor emitted by the BuildX generator.
/// </summary>
public sealed record DescriptorArtifact(
    [property: JsonPropertyName("mediaType")] string MediaType,
    [property: JsonPropertyName("digest")] string Digest,
    [property: JsonPropertyName("size")] long Size,
    [property: JsonPropertyName("annotations")] IReadOnlyDictionary<string, string> Annotations);
