Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
//-----------------------------------------------------------------------
// <copyright file="VaultStatus.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.V1.Vault;
/// <summary>
/// LEGACY (v1 API only): status of a vault get/update, serialized as an int. V2 uses VaultWriteStatus.
/// Remove together with the v1 vault endpoints once v1 API login is no longer supported.
/// </summary>
public enum VaultStatus
{
/// <summary>
/// The vault was retrieved or updated successfully.
/// </summary>
Ok = 0,
/// <summary>
/// The local vault is outdated and the client should fetch the latest vault from the server before saving can continue.
/// Client should: 1) fetch latest vault, 2) merge locally with its pending changes, 3) upload merged result.
/// </summary>
Outdated = 2,
}