Skip to content

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

Update models (#2159)

Leendert de Borstecff15a384cd
diff --git a/apps/server/AliasVault.Api/Helpers/EmailAccessHelper.cs b/apps/server/AliasVault.Api/Helpers/EmailAccessHelper.cs
index 3b988d010..0a4506b17 100644
--- a/apps/server/AliasVault.Api/Helpers/EmailAccessHelper.cs
+++ b/apps/server/AliasVault.Api/Helpers/EmailAccessHelper.cs
@@ -65,7 +65,7 @@ public static class EmailAccessHelper
return [];
}
- // Holding any access key on the manifest is proof of access: AccountKey on a root manifest, GrantKey on a shared folder
+ // Holding any access key on the manifest is proof of access: AccountKey on a root manifest, GrantKey on a shared folder
// (owner self-grant and recipient alike).
var manifestIds = claims.Select(c => c.ManifestId).Distinct().ToList();
var keyedManifestIds = (await context.VaultManifestAccessKeys
diff --git a/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Auth/VaultKeyResponse.cs b/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Auth/VaultKeyResponse.cs
index 82fb4ed01..50a62c49f 100644
--- a/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Auth/VaultKeyResponse.cs
+++ b/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Auth/VaultKeyResponse.cs
@@ -18,6 +18,12 @@ public class VaultKeyResponse
/// <summary>Gets or sets the Account Key encrypted with the KEK derived from the unlock method.</summary>
public required string EncryptedAccountKey { get; set; }
+ /// <summary>Gets or sets the account private key encrypted with the Account Key.</summary>
+ public string? EncryptedAccountPrivateKey { get; set; }
+
+ /// <summary>Gets or sets the account public key.</summary>
+ public string? AccountPublicKey { get; set; }
+
/// <summary>
/// Gets or sets the encrypted VEK.
/// </summary>