@@ -963,7 +963,7 @@ public protocol BackupManagerProtocol: AnyObject, Sendable {
963963 * # Errors
964964 * Returns an error if HTTP client is not initialized or network/serialization fails.
965965 */
966- func sendEvent( kind: BackupReportEventKind , success: Bool , errorMessage: String ? , timestampIso8601: String ) async throws
966+ func sendEvent( kind: BackupReportEventKind , success: Bool , updatedMainFactors : [ BackupReportMainFactor ] , isBackupEnabled : Bool , errorMessage: String ? , timestampIso8601: String ) async throws
967967
968968 /**
969969 * **Client Event Streams**. Set the base report attributes for event reports.
@@ -1214,13 +1214,13 @@ open func postDeleteBackup()throws {try rustCallWithError(FfiConverterTypeBack
12141214 * # Errors
12151215 * Returns an error if HTTP client is not initialized or network/serialization fails.
12161216 */
1217- open func sendEvent( kind: BackupReportEventKind , success: Bool , errorMessage: String ? , timestampIso8601: String ) async throws {
1217+ open func sendEvent( kind: BackupReportEventKind , success: Bool , updatedMainFactors : [ BackupReportMainFactor ] , isBackupEnabled : Bool , errorMessage: String ? , timestampIso8601: String ) async throws {
12181218 return
12191219 try await uniffiRustCallAsync (
12201220 rustFutureFunc: {
12211221 uniffi_bedrock_fn_method_backupmanager_send_event (
12221222 self . uniffiClonePointer ( ) ,
1223- FfiConverterTypeBackupReportEventKind_lower ( kind) , FfiConverterBool . lower ( success) , FfiConverterOptionString . lower ( errorMessage) , FfiConverterString . lower ( timestampIso8601)
1223+ FfiConverterTypeBackupReportEventKind_lower ( kind) , FfiConverterBool . lower ( success) , FfiConverterSequenceTypeBackupReportMainFactor . lower ( updatedMainFactors ) , FfiConverterBool . lower ( isBackupEnabled ) , FfiConverterOptionString . lower ( errorMessage) , FfiConverterString . lower ( timestampIso8601)
12241224 )
12251225 } ,
12261226 pollFunc: ffi_bedrock_rust_future_poll_void,
@@ -5257,6 +5257,10 @@ public func FfiConverterTypeAddNewFactorResult_lower(_ value: AddNewFactorResult
52575257 * Inputs supplied by foreign code (native app) for fields that cannot be derived internally
52585258 */
52595259public struct BackupReportInput {
5260+ /**
5261+ * Whether backup is enabled
5262+ */
5263+ public var isBackupEnabled : Bool ?
52605264 /**
52615265 * User PKID
52625266 */
@@ -5301,6 +5305,9 @@ public struct BackupReportInput {
53015305 // Default memberwise initializers are never public by default, so we
53025306 // declare one manually.
53035307 public init (
5308+ /**
5309+ * Whether backup is enabled
5310+ */isBackupEnabled: Bool ? ,
53045311 /**
53055312 * User PKID
53065313 */userPkid: String ? ,
@@ -5331,6 +5338,7 @@ public struct BackupReportInput {
53315338 /**
53325339 * Platform (OS where the app is running)
53335340 */platform: Os ? ) {
5341+ self . isBackupEnabled = isBackupEnabled
53345342 self . userPkid = userPkid
53355343 self . orbVerifiedAfterOct25 = orbVerifiedAfterOct25
53365344 self . isUserOrbVerified = isUserOrbVerified
@@ -5351,6 +5359,9 @@ extension BackupReportInput: Sendable {}
53515359
53525360extension BackupReportInput : Equatable , Hashable {
53535361 public static func == ( lhs: BackupReportInput , rhs: BackupReportInput ) -> Bool {
5362+ if lhs. isBackupEnabled != rhs. isBackupEnabled {
5363+ return false
5364+ }
53545365 if lhs. userPkid != rhs. userPkid {
53555366 return false
53565367 }
@@ -5385,6 +5396,7 @@ extension BackupReportInput: Equatable, Hashable {
53855396 }
53865397
53875398 public func hash( into hasher: inout Hasher ) {
5399+ hasher. combine ( isBackupEnabled)
53885400 hasher. combine ( userPkid)
53895401 hasher. combine ( orbVerifiedAfterOct25)
53905402 hasher. combine ( isUserOrbVerified)
@@ -5407,6 +5419,7 @@ public struct FfiConverterTypeBackupReportInput: FfiConverterRustBuffer {
54075419 public static func read( from buf: inout ( data: Data , offset: Data . Index ) ) throws -> BackupReportInput {
54085420 return
54095421 try BackupReportInput (
5422+ isBackupEnabled: FfiConverterOptionBool . read ( from: & buf) ,
54105423 userPkid: FfiConverterOptionString . read ( from: & buf) ,
54115424 orbVerifiedAfterOct25: FfiConverterOptionBool . read ( from: & buf) ,
54125425 isUserOrbVerified: FfiConverterOptionBool . read ( from: & buf) ,
@@ -5421,6 +5434,7 @@ public struct FfiConverterTypeBackupReportInput: FfiConverterRustBuffer {
54215434 }
54225435
54235436 public static func write( _ value: BackupReportInput , into buf: inout [ UInt8 ] ) {
5437+ FfiConverterOptionBool . write ( value. isBackupEnabled, into: & buf)
54245438 FfiConverterOptionString . write ( value. userPkid, into: & buf)
54255439 FfiConverterOptionBool . write ( value. orbVerifiedAfterOct25, into: & buf)
54265440 FfiConverterOptionBool . write ( value. isUserOrbVerified, into: & buf)
@@ -7475,14 +7489,6 @@ public enum BackupReportEventKind {
74757489 * Backup sync or any backup file changes (store/remove)
74767490 */
74777491 case sync
7478- /**
7479- * Backup enabled
7480- */
7481- case enable
7482- /**
7483- * Backup disabled
7484- */
7485- case disable
74867492 /**
74877493 * Add main factor
74887494 */
@@ -7510,13 +7516,9 @@ public struct FfiConverterTypeBackupReportEventKind: FfiConverterRustBuffer {
75107516
75117517 case 1 : return . sync
75127518
7513- case 2 : return . enable
7514-
7515- case 3 : return . disable
7516-
7517- case 4 : return . addMainFactor
7519+ case 2 : return . addMainFactor
75187520
7519- case 5 : return . removeMainFactor
7521+ case 3 : return . removeMainFactor
75207522
75217523 default : throw UniffiInternalError . unexpectedEnumCase
75227524 }
@@ -7530,20 +7532,12 @@ public struct FfiConverterTypeBackupReportEventKind: FfiConverterRustBuffer {
75307532 writeInt ( & buf, Int32 ( 1 ) )
75317533
75327534
7533- case . enable:
7534- writeInt ( & buf, Int32 ( 2 ) )
7535-
7536-
7537- case . disable:
7538- writeInt ( & buf, Int32 ( 3 ) )
7539-
7540-
75417535 case . addMainFactor:
7542- writeInt ( & buf, Int32 ( 4 ) )
7536+ writeInt ( & buf, Int32 ( 2 ) )
75437537
75447538
75457539 case . removeMainFactor:
7546- writeInt ( & buf, Int32 ( 5 ) )
7540+ writeInt ( & buf, Int32 ( 3 ) )
75477541
75487542 }
75497543 }
@@ -10858,7 +10852,7 @@ private let initializationResult: InitializationResult = {
1085810852 if ( uniffi_bedrock_checksum_method_backupmanager_post_delete_backup ( ) != 63845 ) {
1085910853 return InitializationResult . apiChecksumMismatch
1086010854 }
10861- if ( uniffi_bedrock_checksum_method_backupmanager_send_event ( ) != 57515 ) {
10855+ if ( uniffi_bedrock_checksum_method_backupmanager_send_event ( ) != 2939 ) {
1086210856 return InitializationResult . apiChecksumMismatch
1086310857 }
1086410858 if ( uniffi_bedrock_checksum_method_backupmanager_set_backup_report_attributes ( ) != 12627 ) {
0 commit comments