Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

1.4 KB
Raw Blame
//-----------------------------------------------------------------------
// <copyright file="EmailClaimTransferRequest.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>
/// Moves an email alias from its current owning manifest to another manifest, signed by the caller.
/// </summary>
public class EmailClaimTransferRequest
{
    /// <summary>Gets or sets the full email address of the alias.</summary>
    public required string Address { get; set; }

    /// <summary>Gets or sets the manifest that owns the alias before the move.</summary>
    public required Guid SourceManifestId { get; set; }

    /// <summary>Gets or sets the manifest that becomes the new owner of the alias.</summary>
    public required Guid TargetManifestId { get; set; }

    /// <summary>Gets or sets the claim version the client was served, which the signature covers.</summary>
    public required long ClaimVersion { get; set; }

    /// <summary>Gets or sets the caller's Ed25519 signature over the transfer (see <c>Signing.EmailClaimTransferMessage</c>).</summary>
    public required string Signature { get; set; }
}