mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-07-25 01:53:32 +00:00
Update API response, crates and GHA (#7470)
- Updated API response to more closely match v2026.6.0+ server versions. - Updated all the crates - Updated Rust to v1.97.1 - Updated the web-vault to v2026.6.4 - Updated GitHub Actions Signed-off-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5040bcb7c0
commit
a6a88e7929
+15
-7
@@ -42,13 +42,15 @@ pub struct Cipher {
|
||||
|
||||
pub key: Option<String>,
|
||||
|
||||
/*
|
||||
Login = 1,
|
||||
SecureNote = 2,
|
||||
Card = 3,
|
||||
Identity = 4,
|
||||
SshKey = 5
|
||||
*/
|
||||
// See (v2026.7.0): https://github.com/bitwarden/server/blob/5d4461aa42cadbacfef8fe2166c5453a5c52773a/src/Core/Vault/Enums/CipherType.cs
|
||||
// Login = 1,
|
||||
// SecureNote = 2,
|
||||
// Card = 3,
|
||||
// Identity = 4,
|
||||
// SSHKey = 5
|
||||
// BankAccount = 6,
|
||||
// DriversLicense = 7,
|
||||
// Passport = 8,
|
||||
pub atype: i32,
|
||||
pub name: String,
|
||||
pub notes: Option<String>,
|
||||
@@ -353,6 +355,9 @@ impl Cipher {
|
||||
"card": null,
|
||||
"identity": null,
|
||||
"sshKey": null,
|
||||
"bankAccount": null,
|
||||
"driversLicense": null,
|
||||
"passport": null,
|
||||
});
|
||||
|
||||
// These values are only needed for user/default syncs
|
||||
@@ -392,6 +397,9 @@ impl Cipher {
|
||||
3 => "card",
|
||||
4 => "identity",
|
||||
5 => "sshKey",
|
||||
6 => "bankAccount",
|
||||
7 => "driversLicense",
|
||||
8 => "passport",
|
||||
_ => err!(format!("Cipher {} has an invalid type {}", self.uuid, self.atype)),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user