Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
//-----------------------------------------------------------------------
// <copyright file="ManifestRevision.cs" company="aliasvault">
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
// </copyright>
//-----------------------------------------------------------------------
namespace AliasVault.Shared.Models.WebApi.V2.Vault;
/// <summary>
/// The current revision of a single logical manifest. Used in lightweight payloads (the status response) that report
/// per-manifest revisions without carrying the encrypted blobs. Mirrors <see cref="BucketRevision"/>.
/// </summary>
public class ManifestRevision
{
/// <summary>Gets or sets the stable identifier of the logical manifest.</summary>
public required Guid ManifestId { get; set; }
/// <summary>Gets or sets the current (latest) revision number for this manifest.</summary>
public required long Revision { get; set; }
/// <summary>Gets or sets the name of a shared manifest, encrypted with the manifest's own key (base64).</summary>
public string? EncryptedName { get; set; }
/// <summary>Gets or sets the generation of the VEK the current revision is encrypted with.</summary>
public int KeyVersion { get; set; }
}