@@ -910,6 +910,8 @@ public func FfiConverterTypeAuthRequestResponse_lower(_ value: AuthRequestRespon
910910 * user_agent: "Bitwarden Rust-SDK".to_string(),
911911 * device_type: DeviceType::SDK,
912912 * bitwarden_client_version: None,
913+ * bitwarden_package_type: None,
914+ * device_identifier: None,
913915 * };
914916 * let default = ClientSettings::default();
915917 * ```
@@ -932,9 +934,18 @@ public struct ClientSettings {
932934 */
933935 public let deviceType : DeviceType
934936 /**
935- * Bitwarden Client Version to send to Bitwarden.
937+ * Device identifier to send to Bitwarden. Optional for now in transition period.
938+ */
939+ public let deviceIdentifier : String ?
940+ /**
941+ * Bitwarden Client Version to send to Bitwarden. Optional for now in transition period.
936942 */
937943 public let bitwardenClientVersion : String ?
944+ /**
945+ * Bitwarden Package Type to send to Bitwarden. We should evaluate this field to see if it
946+ * should be optional later.
947+ */
948+ public let bitwardenPackageType : String ?
938949
939950 // Default memberwise initializers are never public by default, so we
940951 // declare one manually.
@@ -952,13 +963,22 @@ public struct ClientSettings {
952963 * Device type to send to Bitwarden. Defaults to SDK
953964 */deviceType: DeviceType ,
954965 /**
955- * Bitwarden Client Version to send to Bitwarden.
956- */bitwardenClientVersion: String ? ) {
966+ * Device identifier to send to Bitwarden. Optional for now in transition period.
967+ */deviceIdentifier: String ? ,
968+ /**
969+ * Bitwarden Client Version to send to Bitwarden. Optional for now in transition period.
970+ */bitwardenClientVersion: String ? ,
971+ /**
972+ * Bitwarden Package Type to send to Bitwarden. We should evaluate this field to see if it
973+ * should be optional later.
974+ */bitwardenPackageType: String ? ) {
957975 self . identityUrl = identityUrl
958976 self . apiUrl = apiUrl
959977 self . userAgent = userAgent
960978 self . deviceType = deviceType
979+ self . deviceIdentifier = deviceIdentifier
961980 self . bitwardenClientVersion = bitwardenClientVersion
981+ self . bitwardenPackageType = bitwardenPackageType
962982 }
963983}
964984
@@ -984,9 +1004,15 @@ extension ClientSettings: Equatable, Hashable {
9841004 if lhs. deviceType != rhs. deviceType {
9851005 return false
9861006 }
1007+ if lhs. deviceIdentifier != rhs. deviceIdentifier {
1008+ return false
1009+ }
9871010 if lhs. bitwardenClientVersion != rhs. bitwardenClientVersion {
9881011 return false
9891012 }
1013+ if lhs. bitwardenPackageType != rhs. bitwardenPackageType {
1014+ return false
1015+ }
9901016 return true
9911017 }
9921018
@@ -995,7 +1021,9 @@ extension ClientSettings: Equatable, Hashable {
9951021 hasher. combine ( apiUrl)
9961022 hasher. combine ( userAgent)
9971023 hasher. combine ( deviceType)
1024+ hasher. combine ( deviceIdentifier)
9981025 hasher. combine ( bitwardenClientVersion)
1026+ hasher. combine ( bitwardenPackageType)
9991027 }
10001028}
10011029
@@ -1012,7 +1040,9 @@ public struct FfiConverterTypeClientSettings: FfiConverterRustBuffer {
10121040 apiUrl: FfiConverterString . read ( from: & buf) ,
10131041 userAgent: FfiConverterString . read ( from: & buf) ,
10141042 deviceType: FfiConverterTypeDeviceType . read ( from: & buf) ,
1015- bitwardenClientVersion: FfiConverterOptionString . read ( from: & buf)
1043+ deviceIdentifier: FfiConverterOptionString . read ( from: & buf) ,
1044+ bitwardenClientVersion: FfiConverterOptionString . read ( from: & buf) ,
1045+ bitwardenPackageType: FfiConverterOptionString . read ( from: & buf)
10161046 )
10171047 }
10181048
@@ -1021,7 +1051,9 @@ public struct FfiConverterTypeClientSettings: FfiConverterRustBuffer {
10211051 FfiConverterString . write ( value. apiUrl, into: & buf)
10221052 FfiConverterString . write ( value. userAgent, into: & buf)
10231053 FfiConverterTypeDeviceType . write ( value. deviceType, into: & buf)
1054+ FfiConverterOptionString . write ( value. deviceIdentifier, into: & buf)
10241055 FfiConverterOptionString . write ( value. bitwardenClientVersion, into: & buf)
1056+ FfiConverterOptionString . write ( value. bitwardenPackageType, into: & buf)
10251057 }
10261058}
10271059
@@ -5429,8 +5461,8 @@ private let initializationResult: InitializationResult = {
54295461 }
54305462
54315463 uniffiCallbackInitClientManagedTokens ( )
5432- uniffiEnsureBitwardenCryptoInitialized ( )
54335464 uniffiEnsureBitwardenEncodingInitialized ( )
5465+ uniffiEnsureBitwardenCryptoInitialized ( )
54345466 return InitializationResult . ok
54355467} ( )
54365468
0 commit comments