using System.Text.Json.Serialization; namespace StellaOps.Policy.Engine.Orchestration; internal sealed record WorkerResultItem( [property: JsonPropertyName("component_purl")] string ComponentPurl, [property: JsonPropertyName("advisory_id")] string AdvisoryId, [property: JsonPropertyName("status")] string Status, [property: JsonPropertyName("trace_ref")] string TraceRef); internal sealed record WorkerRunResult( [property: JsonPropertyName("job_id")] string JobId, [property: JsonPropertyName("worker_id")] string WorkerId, [property: JsonPropertyName("started_at")] DateTimeOffset StartedAt, [property: JsonPropertyName("completed_at")] DateTimeOffset CompletedAt, [property: JsonPropertyName("results")] IReadOnlyList Results, [property: JsonPropertyName("result_hash")] string ResultHash); internal sealed record WorkerRunRequest( [property: JsonPropertyName("job_id")] string JobId, [property: JsonPropertyName("worker_id")] string? WorkerId = null);