namespace AIStudio.Tools.ChatArchive;
///
/// The chats a backup holds, so that the user sees them before any is added.
///
public sealed record ChatArchiveManifest
{
///
/// When the backup was made.
///
public DateTimeOffset CreatedAt { get; init; }
///
/// The AI Studio version which made the backup. Informational only.
///
public string AppVersion { get; init; } = string.Empty;
///
/// All workspaces with chats in the backup.
///
public List Workspaces { get; init; } = [];
///
/// All temporary chats in the backup.
///
public List TemporaryChats { get; init; } = [];
///
/// Gets the total number of chats in the backup.
///
public int TotalChatCount => this.Workspaces.Sum(workspace => workspace.Chats.Count) + this.TemporaryChats.Count;
}