Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
//-----------------------------------------------------------------------
// <copyright file="ClaimedEmailAddress.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;
using System.ComponentModel.DataAnnotations;
/// <summary>
/// An email alias the client claims, together with the manifest holding the item it belongs to.
/// </summary>
public class ClaimedEmailAddress
{
/// <summary>Gets or sets the full email address.</summary>
[StringLength(255, MinimumLength = 3)]
public required string Address { get; set; }
/// <summary>Gets or sets the manifest whose key encrypts mail for this address.</summary>
public required Guid ManifestId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the user switched this alias off for this manifest.
/// </summary>
public bool Paused { get; set; }
}