namespace NexusReader.Application.DTOs.Media;
// Note: These DTOs are registered in AppJsonContext.cs for JSON source generation.
///
/// Request DTO for chapter validation/sanitization.
///
public record ValidateChapterRequest(string Content);
///
/// Response DTO containing sanitized chapter content.
///
public record ValidateChapterResponse(string SanitizedContent);
///
/// Response DTO containing the uploaded media file URL.
///
public record UploadResultDto(string Url);
///
/// Represents a structured JSON backup envelope stored in LocalStorage.
///
public class LocalBackupEnvelope
{
public Guid ChapterId { get; set; }
public DateTime Timestamp { get; set; }
public string MarkdownContent { get; set; } = string.Empty;
}
///
/// Request DTO for chapter autosaving.
///
public record AutosaveChapterRequest(string MarkdownContent);