diff --git a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Bindings b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Bindings index 7deb2af8763d521a3722d63dcf5dac757fffdd64..528df5fe985f3cf811249d0fe523f999a90b7f5a 100644 Binary files a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Bindings and b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Bindings differ diff --git a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Headers/Bindings.objc.h index a41d44bfe177944db130580f0f6312789b5aedf9..31a22fa5f38ab6e18e6f5e71a5417163f2bb746f 100644 --- a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Headers/Bindings.objc.h @@ -13,6 +13,7 @@ @class BindingsAuthenticatedConnection; @class BindingsBackup; +@class BindingsBackupReport; @class BindingsBroadcastMessage; @class BindingsBroadcastReport; @class BindingsChannel; @@ -231,6 +232,29 @@ storage. To enable backups again, call InitializeBackup. - (BOOL)stopBackup:(NSError* _Nullable* _Nullable)error; @end +/** + * BackupReport is the bindings' representation of the return values of +NewCmixFromBackup. + +Example BackupReport: +{"BackupIdListJson":"WyJPRHRRTTA4ZERpV3lXaE0wWUhjanRHWnZQcHRSa1JOZ1pHR2FkTG10dE9BRCJd","BackupParams":""} + */ +@interface BindingsBackupReport : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * The JSON encoded list of E2E partner IDs + */ +@property (nonatomic) NSData* _Nullable backupIdListJson; +/** + * The backup parameters found within the backup file + */ +@property (nonatomic) NSData* _Nullable backupParams; +@end + /** * BroadcastMessage is the bindings representation of a broadcast message. @@ -1516,6 +1540,23 @@ Users of this function should delete the storage directory on error. */ FOUNDATION_EXPORT BOOL BindingsNewCmix(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable password, NSString* _Nullable registrationCode, NSError* _Nullable* _Nullable error); +/** + * NewCmixFromBackup initializes a new e2e storage from an encrypted +backup. Users of this function should delete the storage directory on error. +Users of this function should call LoadCmix as normal once this call succeeds. + +Params + - ndfJSON - JSON of the NDF. + - storageDir - directory for the storage files. + - sessionPassword - password to decrypt the data in the storageDir. + - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. + - backupFileContents - the file contents of the backup. + +Returns: + - []byte - the JSON marshalled bytes of the BackupReport object. + */ +FOUNDATION_EXPORT NSData* _Nullable BindingsNewCmixFromBackup(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable sessionPassword, NSData* _Nullable backupPassphrase, NSData* _Nullable backupFileContents, NSError* _Nullable* _Nullable error); + /** * NewUdManagerFromBackup builds a new user discover manager from a backup. It will construct a manager that is already registered and restore already diff --git a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Bindings b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Bindings index 7deb2af8763d521a3722d63dcf5dac757fffdd64..528df5fe985f3cf811249d0fe523f999a90b7f5a 100644 Binary files a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Bindings and b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Bindings differ diff --git a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Headers/Bindings.objc.h index a41d44bfe177944db130580f0f6312789b5aedf9..31a22fa5f38ab6e18e6f5e71a5417163f2bb746f 100644 --- a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/A/Headers/Bindings.objc.h @@ -13,6 +13,7 @@ @class BindingsAuthenticatedConnection; @class BindingsBackup; +@class BindingsBackupReport; @class BindingsBroadcastMessage; @class BindingsBroadcastReport; @class BindingsChannel; @@ -231,6 +232,29 @@ storage. To enable backups again, call InitializeBackup. - (BOOL)stopBackup:(NSError* _Nullable* _Nullable)error; @end +/** + * BackupReport is the bindings' representation of the return values of +NewCmixFromBackup. + +Example BackupReport: +{"BackupIdListJson":"WyJPRHRRTTA4ZERpV3lXaE0wWUhjanRHWnZQcHRSa1JOZ1pHR2FkTG10dE9BRCJd","BackupParams":""} + */ +@interface BindingsBackupReport : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * The JSON encoded list of E2E partner IDs + */ +@property (nonatomic) NSData* _Nullable backupIdListJson; +/** + * The backup parameters found within the backup file + */ +@property (nonatomic) NSData* _Nullable backupParams; +@end + /** * BroadcastMessage is the bindings representation of a broadcast message. @@ -1516,6 +1540,23 @@ Users of this function should delete the storage directory on error. */ FOUNDATION_EXPORT BOOL BindingsNewCmix(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable password, NSString* _Nullable registrationCode, NSError* _Nullable* _Nullable error); +/** + * NewCmixFromBackup initializes a new e2e storage from an encrypted +backup. Users of this function should delete the storage directory on error. +Users of this function should call LoadCmix as normal once this call succeeds. + +Params + - ndfJSON - JSON of the NDF. + - storageDir - directory for the storage files. + - sessionPassword - password to decrypt the data in the storageDir. + - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. + - backupFileContents - the file contents of the backup. + +Returns: + - []byte - the JSON marshalled bytes of the BackupReport object. + */ +FOUNDATION_EXPORT NSData* _Nullable BindingsNewCmixFromBackup(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable sessionPassword, NSData* _Nullable backupPassphrase, NSData* _Nullable backupFileContents, NSError* _Nullable* _Nullable error); + /** * NewUdManagerFromBackup builds a new user discover manager from a backup. It will construct a manager that is already registered and restore already diff --git a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Bindings b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Bindings index 7deb2af8763d521a3722d63dcf5dac757fffdd64..528df5fe985f3cf811249d0fe523f999a90b7f5a 100644 Binary files a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Bindings and b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Bindings differ diff --git a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Headers/Bindings.objc.h index a41d44bfe177944db130580f0f6312789b5aedf9..31a22fa5f38ab6e18e6f5e71a5417163f2bb746f 100644 --- a/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/ios-arm64/Bindings.framework/Versions/Current/Headers/Bindings.objc.h @@ -13,6 +13,7 @@ @class BindingsAuthenticatedConnection; @class BindingsBackup; +@class BindingsBackupReport; @class BindingsBroadcastMessage; @class BindingsBroadcastReport; @class BindingsChannel; @@ -231,6 +232,29 @@ storage. To enable backups again, call InitializeBackup. - (BOOL)stopBackup:(NSError* _Nullable* _Nullable)error; @end +/** + * BackupReport is the bindings' representation of the return values of +NewCmixFromBackup. + +Example BackupReport: +{"BackupIdListJson":"WyJPRHRRTTA4ZERpV3lXaE0wWUhjanRHWnZQcHRSa1JOZ1pHR2FkTG10dE9BRCJd","BackupParams":""} + */ +@interface BindingsBackupReport : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * The JSON encoded list of E2E partner IDs + */ +@property (nonatomic) NSData* _Nullable backupIdListJson; +/** + * The backup parameters found within the backup file + */ +@property (nonatomic) NSData* _Nullable backupParams; +@end + /** * BroadcastMessage is the bindings representation of a broadcast message. @@ -1516,6 +1540,23 @@ Users of this function should delete the storage directory on error. */ FOUNDATION_EXPORT BOOL BindingsNewCmix(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable password, NSString* _Nullable registrationCode, NSError* _Nullable* _Nullable error); +/** + * NewCmixFromBackup initializes a new e2e storage from an encrypted +backup. Users of this function should delete the storage directory on error. +Users of this function should call LoadCmix as normal once this call succeeds. + +Params + - ndfJSON - JSON of the NDF. + - storageDir - directory for the storage files. + - sessionPassword - password to decrypt the data in the storageDir. + - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. + - backupFileContents - the file contents of the backup. + +Returns: + - []byte - the JSON marshalled bytes of the BackupReport object. + */ +FOUNDATION_EXPORT NSData* _Nullable BindingsNewCmixFromBackup(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable sessionPassword, NSData* _Nullable backupPassphrase, NSData* _Nullable backupFileContents, NSError* _Nullable* _Nullable error); + /** * NewUdManagerFromBackup builds a new user discover manager from a backup. It will construct a manager that is already registered and restore already diff --git a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Bindings b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Bindings index 52b9c735dfdf8199066c1b37a8c4c7215edd6358..f7ce222ffba175522c761fca3b7a412511ac4ed9 100644 Binary files a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Bindings and b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Bindings differ diff --git a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Headers/Bindings.objc.h index a41d44bfe177944db130580f0f6312789b5aedf9..31a22fa5f38ab6e18e6f5e71a5417163f2bb746f 100644 --- a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Headers/Bindings.objc.h @@ -13,6 +13,7 @@ @class BindingsAuthenticatedConnection; @class BindingsBackup; +@class BindingsBackupReport; @class BindingsBroadcastMessage; @class BindingsBroadcastReport; @class BindingsChannel; @@ -231,6 +232,29 @@ storage. To enable backups again, call InitializeBackup. - (BOOL)stopBackup:(NSError* _Nullable* _Nullable)error; @end +/** + * BackupReport is the bindings' representation of the return values of +NewCmixFromBackup. + +Example BackupReport: +{"BackupIdListJson":"WyJPRHRRTTA4ZERpV3lXaE0wWUhjanRHWnZQcHRSa1JOZ1pHR2FkTG10dE9BRCJd","BackupParams":""} + */ +@interface BindingsBackupReport : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * The JSON encoded list of E2E partner IDs + */ +@property (nonatomic) NSData* _Nullable backupIdListJson; +/** + * The backup parameters found within the backup file + */ +@property (nonatomic) NSData* _Nullable backupParams; +@end + /** * BroadcastMessage is the bindings representation of a broadcast message. @@ -1516,6 +1540,23 @@ Users of this function should delete the storage directory on error. */ FOUNDATION_EXPORT BOOL BindingsNewCmix(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable password, NSString* _Nullable registrationCode, NSError* _Nullable* _Nullable error); +/** + * NewCmixFromBackup initializes a new e2e storage from an encrypted +backup. Users of this function should delete the storage directory on error. +Users of this function should call LoadCmix as normal once this call succeeds. + +Params + - ndfJSON - JSON of the NDF. + - storageDir - directory for the storage files. + - sessionPassword - password to decrypt the data in the storageDir. + - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. + - backupFileContents - the file contents of the backup. + +Returns: + - []byte - the JSON marshalled bytes of the BackupReport object. + */ +FOUNDATION_EXPORT NSData* _Nullable BindingsNewCmixFromBackup(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable sessionPassword, NSData* _Nullable backupPassphrase, NSData* _Nullable backupFileContents, NSError* _Nullable* _Nullable error); + /** * NewUdManagerFromBackup builds a new user discover manager from a backup. It will construct a manager that is already registered and restore already diff --git a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Bindings b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Bindings index 52b9c735dfdf8199066c1b37a8c4c7215edd6358..f7ce222ffba175522c761fca3b7a412511ac4ed9 100644 Binary files a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Bindings and b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Bindings differ diff --git a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Headers/Bindings.objc.h index a41d44bfe177944db130580f0f6312789b5aedf9..31a22fa5f38ab6e18e6f5e71a5417163f2bb746f 100644 --- a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/A/Headers/Bindings.objc.h @@ -13,6 +13,7 @@ @class BindingsAuthenticatedConnection; @class BindingsBackup; +@class BindingsBackupReport; @class BindingsBroadcastMessage; @class BindingsBroadcastReport; @class BindingsChannel; @@ -231,6 +232,29 @@ storage. To enable backups again, call InitializeBackup. - (BOOL)stopBackup:(NSError* _Nullable* _Nullable)error; @end +/** + * BackupReport is the bindings' representation of the return values of +NewCmixFromBackup. + +Example BackupReport: +{"BackupIdListJson":"WyJPRHRRTTA4ZERpV3lXaE0wWUhjanRHWnZQcHRSa1JOZ1pHR2FkTG10dE9BRCJd","BackupParams":""} + */ +@interface BindingsBackupReport : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * The JSON encoded list of E2E partner IDs + */ +@property (nonatomic) NSData* _Nullable backupIdListJson; +/** + * The backup parameters found within the backup file + */ +@property (nonatomic) NSData* _Nullable backupParams; +@end + /** * BroadcastMessage is the bindings representation of a broadcast message. @@ -1516,6 +1540,23 @@ Users of this function should delete the storage directory on error. */ FOUNDATION_EXPORT BOOL BindingsNewCmix(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable password, NSString* _Nullable registrationCode, NSError* _Nullable* _Nullable error); +/** + * NewCmixFromBackup initializes a new e2e storage from an encrypted +backup. Users of this function should delete the storage directory on error. +Users of this function should call LoadCmix as normal once this call succeeds. + +Params + - ndfJSON - JSON of the NDF. + - storageDir - directory for the storage files. + - sessionPassword - password to decrypt the data in the storageDir. + - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. + - backupFileContents - the file contents of the backup. + +Returns: + - []byte - the JSON marshalled bytes of the BackupReport object. + */ +FOUNDATION_EXPORT NSData* _Nullable BindingsNewCmixFromBackup(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable sessionPassword, NSData* _Nullable backupPassphrase, NSData* _Nullable backupFileContents, NSError* _Nullable* _Nullable error); + /** * NewUdManagerFromBackup builds a new user discover manager from a backup. It will construct a manager that is already registered and restore already diff --git a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Bindings b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Bindings index 52b9c735dfdf8199066c1b37a8c4c7215edd6358..f7ce222ffba175522c761fca3b7a412511ac4ed9 100644 Binary files a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Bindings and b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Bindings differ diff --git a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Headers/Bindings.objc.h index a41d44bfe177944db130580f0f6312789b5aedf9..31a22fa5f38ab6e18e6f5e71a5417163f2bb746f 100644 --- a/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/ios-arm64_x86_64-simulator/Bindings.framework/Versions/Current/Headers/Bindings.objc.h @@ -13,6 +13,7 @@ @class BindingsAuthenticatedConnection; @class BindingsBackup; +@class BindingsBackupReport; @class BindingsBroadcastMessage; @class BindingsBroadcastReport; @class BindingsChannel; @@ -231,6 +232,29 @@ storage. To enable backups again, call InitializeBackup. - (BOOL)stopBackup:(NSError* _Nullable* _Nullable)error; @end +/** + * BackupReport is the bindings' representation of the return values of +NewCmixFromBackup. + +Example BackupReport: +{"BackupIdListJson":"WyJPRHRRTTA4ZERpV3lXaE0wWUhjanRHWnZQcHRSa1JOZ1pHR2FkTG10dE9BRCJd","BackupParams":""} + */ +@interface BindingsBackupReport : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * The JSON encoded list of E2E partner IDs + */ +@property (nonatomic) NSData* _Nullable backupIdListJson; +/** + * The backup parameters found within the backup file + */ +@property (nonatomic) NSData* _Nullable backupParams; +@end + /** * BroadcastMessage is the bindings representation of a broadcast message. @@ -1516,6 +1540,23 @@ Users of this function should delete the storage directory on error. */ FOUNDATION_EXPORT BOOL BindingsNewCmix(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable password, NSString* _Nullable registrationCode, NSError* _Nullable* _Nullable error); +/** + * NewCmixFromBackup initializes a new e2e storage from an encrypted +backup. Users of this function should delete the storage directory on error. +Users of this function should call LoadCmix as normal once this call succeeds. + +Params + - ndfJSON - JSON of the NDF. + - storageDir - directory for the storage files. + - sessionPassword - password to decrypt the data in the storageDir. + - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. + - backupFileContents - the file contents of the backup. + +Returns: + - []byte - the JSON marshalled bytes of the BackupReport object. + */ +FOUNDATION_EXPORT NSData* _Nullable BindingsNewCmixFromBackup(NSString* _Nullable ndfJSON, NSString* _Nullable storageDir, NSData* _Nullable sessionPassword, NSData* _Nullable backupPassphrase, NSData* _Nullable backupFileContents, NSError* _Nullable* _Nullable error); + /** * NewUdManagerFromBackup builds a new user discover manager from a backup. It will construct a manager that is already registered and restore already