Add caption job plugin models

This commit is contained in:
Sleeps
2026-10-07 11:42:46 +01:00
parent 6865eb6e47
commit 9b1583e340
@@ -97,3 +97,76 @@ public sealed class SceneSearchIndexStatus
[JsonPropertyName("pruned")]
public int? Pruned { get; set; }
}
public sealed class SceneSearchCaptionRequest
{
[JsonPropertyName("library_ids")]
public List<string> LibraryIds { get; set; } = [];
[JsonPropertyName("force")]
public bool Force { get; set; }
}
public sealed class SceneSearchCaptionStatus
{
[JsonPropertyName("running")]
public bool Running { get; set; }
[JsonPropertyName("stage")]
public string Stage { get; set; } = "idle";
[JsonPropertyName("started_at")]
public string? StartedAt { get; set; }
[JsonPropertyName("finished_at")]
public string? FinishedAt { get; set; }
[JsonPropertyName("error")]
public string? Error { get; set; }
[JsonPropertyName("title")]
public string? Title { get; set; }
[JsonPropertyName("timestamp_ms")]
public long? TimestampMs { get; set; }
[JsonPropertyName("model")]
public string? Model { get; set; }
[JsonPropertyName("route")]
public string? Route { get; set; }
[JsonPropertyName("indexed_frames")]
public int? IndexedFrames { get; set; }
[JsonPropertyName("already_captioned")]
public int? AlreadyCaptioned { get; set; }
[JsonPropertyName("frames_selected")]
public int? FramesSelected { get; set; }
[JsonPropertyName("frames_total")]
public int? FramesTotal { get; set; }
[JsonPropertyName("frames_completed")]
public int? FramesCompleted { get; set; }
[JsonPropertyName("failed")]
public int? Failed { get; set; }
[JsonPropertyName("retained")]
public int? Retained { get; set; }
[JsonPropertyName("general_total")]
public int? GeneralTotal { get; set; }
[JsonPropertyName("specialist_total")]
public int? SpecialistTotal { get; set; }
[JsonPropertyName("documents_processed")]
public int? DocumentsProcessed { get; set; }
[JsonPropertyName("percent")]
public double? Percent { get; set; }
}