From 64c56411f6a16ac4466c12199587101566cf7efa Mon Sep 17 00:00:00 2001 From: "Berk D. Demir" <11135+bdd@users.noreply.github.com> Date: Fri, 18 Sep 2026 07:53:27 -0700 Subject: [PATCH] Add `pm-32009-new-item-types` feature flag (#7478) Introduced in 2026.4.0 for all clients, enables new item types bank account, driver's license, and passport. --- .env.template | 1 + src/api/core/ciphers.rs | 9 +++++++++ src/config.rs | 2 ++ 3 files changed, 12 insertions(+) diff --git a/.env.template b/.env.template index 73226055..8ed6c5c2 100644 --- a/.env.template +++ b/.env.template @@ -402,6 +402,7 @@ ## - "cxp-import-mobile": Enable the import via CXP on iOS (Clients >= 2025.9.2) ## - "cxp-export-mobile": Enable the export via CXP on iOS (Clients >= 2025.9.2) ## - "pm-30529-webauthn-related-origins": +## - "pm-32009-new-item-types": Enable new item types: Bank Account, Driver's License, and Passport (Clients >= 2026.4.0) ## - "desktop-ui-migration-milestone-1": Special feature flag for desktop UI (Desktop >= 2026.2.0) ## - "desktop-ui-migration-milestone-2": Special feature flag for desktop UI (Desktop >= 2026.2.0) ## - "desktop-ui-migration-milestone-3": Special feature flag for desktop UI (Desktop >= 2026.2.0) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index af79a9ca..a5b7e58b 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -279,6 +279,9 @@ pub struct CipherData { Card = 3, Identity = 4, SshKey = 5 + BankAccount = 6 + DriversLicense = 7 + Passport = 8 */ pub r#type: i32, pub name: String, @@ -291,6 +294,9 @@ pub struct CipherData { card: Option, identity: Option, ssh_key: Option, + bank_account: Option, + drivers_license: Option, + passport: Option, favorite: Option, reprompt: Option, @@ -538,6 +544,9 @@ pub async fn update_cipher_from_data( 3 => data.card, 4 => data.identity, 5 => data.ssh_key, + 6 => data.bank_account, + 7 => data.drivers_license, + 8 => data.passport, _ => err!("Invalid type"), }; diff --git a/src/config.rs b/src/config.rs index 18cc6504..0bb22f7f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1442,6 +1442,8 @@ pub const SUPPORTED_FEATURE_FLAGS: &[&str] = &[ "cxp-export-mobile", // Platform Team "pm-30529-webauthn-related-origins", + // Vault Team + "pm-32009-new-item-types", ]; impl Config {