diff --git a/Frameworks/Bindings.txt b/Frameworks/Bindings.txt index 827d2144f2f25551d697c3f86ce201b1d998c0e4..f419aae26b68fa13d5009d2ebb8b7af1038baf92 100644 --- a/Frameworks/Bindings.txt +++ b/Frameworks/Bindings.txt @@ -1,4 +1,4 @@ -https://git.xx.network/elixxir/client/-/commit/6011849a8bbd54218f28e82afa5139b2ea529859 +https://git.xx.network/elixxir/client/-/commit/b67054452c865d2fa101e39c7ed85cbd69a99a93 go version go1.17.13 darwin/arm64 Xcode 14.0 Build version 14A309 gomobile bind target: ios,iossimulator,macos 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 498568650d32fba6f77f0bfc2d340ea37a405052..137ad1861f2e96ea04558855aea0d46b1880db75 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 bcfdd5d849bc6350d895e8219f70780aa633588c..75e661bc7b2b7fe085392edaa986953ade073942 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 @@ -29,6 +29,7 @@ @class BindingsFileTransfer; @class BindingsGroup; @class BindingsGroupChat; +@class BindingsGroupChatMessage; @class BindingsGroupReport; @class BindingsGroupSendReport; @class BindingsMessage; @@ -1349,6 +1350,47 @@ Returns: - (NSData* _Nullable)send:(NSData* _Nullable)groupId message:(NSData* _Nullable)message tag:(NSString* _Nullable)tag error:(NSError* _Nullable* _Nullable)error; @end +/** + * GroupChatMessage is the bindings layer representation of the +[groupChat.MessageReceive]. + +GroupChatMessage Example JSON: + { + "GroupId": "AAAAAAAJlasAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE", + "SenderId": "AAAAAAAAB8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD", + "MessageId": "Zm9ydHkgZml2ZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Payload": "Zm9ydHkgZml2ZQ==", + "Timestamp": 1663009269474079000 + } + */ +@interface BindingsGroupChatMessage : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * GroupId is the ID of the group that this message was sent on. + */ +@property (nonatomic) NSData* _Nullable groupId; +/** + * SenderId is the ID of the sender of this message. + */ +@property (nonatomic) NSData* _Nullable senderId; +/** + * MessageId is the ID of this group message. + */ +@property (nonatomic) NSData* _Nullable messageId; +/** + * Payload is the content of the message. + */ +@property (nonatomic) NSData* _Nullable payload; +/** + * Timestamp is the time this message was sent on. + */ +@property (nonatomic) int64_t timestamp; +@end + /** * GroupReport is returned when creating a new group and contains the ID of the group, a list of rounds that the group requests were sent on, and the @@ -2501,6 +2543,7 @@ Parameters: /** * GroupChatProcessor manages the handling of received group chat messages. +The decryptedMessage field will be a JSON marshalled GroupChatMessage. */ @interface BindingsGroupChatProcessor : NSObject <goSeqRefInterface, BindingsGroupChatProcessor> { } 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 1a7fda0206eb4c3501c5a61596306a99026504e2..989df75ac0f6314f2bd0ce85dc6d3bc9e16db562 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 bcfdd5d849bc6350d895e8219f70780aa633588c..75e661bc7b2b7fe085392edaa986953ade073942 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 @@ -29,6 +29,7 @@ @class BindingsFileTransfer; @class BindingsGroup; @class BindingsGroupChat; +@class BindingsGroupChatMessage; @class BindingsGroupReport; @class BindingsGroupSendReport; @class BindingsMessage; @@ -1349,6 +1350,47 @@ Returns: - (NSData* _Nullable)send:(NSData* _Nullable)groupId message:(NSData* _Nullable)message tag:(NSString* _Nullable)tag error:(NSError* _Nullable* _Nullable)error; @end +/** + * GroupChatMessage is the bindings layer representation of the +[groupChat.MessageReceive]. + +GroupChatMessage Example JSON: + { + "GroupId": "AAAAAAAJlasAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE", + "SenderId": "AAAAAAAAB8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD", + "MessageId": "Zm9ydHkgZml2ZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Payload": "Zm9ydHkgZml2ZQ==", + "Timestamp": 1663009269474079000 + } + */ +@interface BindingsGroupChatMessage : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * GroupId is the ID of the group that this message was sent on. + */ +@property (nonatomic) NSData* _Nullable groupId; +/** + * SenderId is the ID of the sender of this message. + */ +@property (nonatomic) NSData* _Nullable senderId; +/** + * MessageId is the ID of this group message. + */ +@property (nonatomic) NSData* _Nullable messageId; +/** + * Payload is the content of the message. + */ +@property (nonatomic) NSData* _Nullable payload; +/** + * Timestamp is the time this message was sent on. + */ +@property (nonatomic) int64_t timestamp; +@end + /** * GroupReport is returned when creating a new group and contains the ID of the group, a list of rounds that the group requests were sent on, and the @@ -2501,6 +2543,7 @@ Parameters: /** * GroupChatProcessor manages the handling of received group chat messages. +The decryptedMessage field will be a JSON marshalled GroupChatMessage. */ @interface BindingsGroupChatProcessor : NSObject <goSeqRefInterface, BindingsGroupChatProcessor> { } diff --git a/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Bindings b/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Bindings index 2fca34f5940ad5b67a566f4df3a4b19616c8b52d..9546147463d929ca162bac115eb326e62efd3bbc 100644 Binary files a/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Bindings and b/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Bindings differ diff --git a/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Headers/Bindings.objc.h b/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Headers/Bindings.objc.h index bcfdd5d849bc6350d895e8219f70780aa633588c..75e661bc7b2b7fe085392edaa986953ade073942 100644 --- a/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Headers/Bindings.objc.h +++ b/Frameworks/Bindings.xcframework/macos-arm64_x86_64/Bindings.framework/Versions/A/Headers/Bindings.objc.h @@ -29,6 +29,7 @@ @class BindingsFileTransfer; @class BindingsGroup; @class BindingsGroupChat; +@class BindingsGroupChatMessage; @class BindingsGroupReport; @class BindingsGroupSendReport; @class BindingsMessage; @@ -1349,6 +1350,47 @@ Returns: - (NSData* _Nullable)send:(NSData* _Nullable)groupId message:(NSData* _Nullable)message tag:(NSString* _Nullable)tag error:(NSError* _Nullable* _Nullable)error; @end +/** + * GroupChatMessage is the bindings layer representation of the +[groupChat.MessageReceive]. + +GroupChatMessage Example JSON: + { + "GroupId": "AAAAAAAJlasAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE", + "SenderId": "AAAAAAAAB8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD", + "MessageId": "Zm9ydHkgZml2ZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Payload": "Zm9ydHkgZml2ZQ==", + "Timestamp": 1663009269474079000 + } + */ +@interface BindingsGroupChatMessage : NSObject <goSeqRefInterface> { +} +@property(strong, readonly) _Nonnull id _ref; + +- (nonnull instancetype)initWithRef:(_Nonnull id)ref; +- (nonnull instancetype)init; +/** + * GroupId is the ID of the group that this message was sent on. + */ +@property (nonatomic) NSData* _Nullable groupId; +/** + * SenderId is the ID of the sender of this message. + */ +@property (nonatomic) NSData* _Nullable senderId; +/** + * MessageId is the ID of this group message. + */ +@property (nonatomic) NSData* _Nullable messageId; +/** + * Payload is the content of the message. + */ +@property (nonatomic) NSData* _Nullable payload; +/** + * Timestamp is the time this message was sent on. + */ +@property (nonatomic) int64_t timestamp; +@end + /** * GroupReport is returned when creating a new group and contains the ID of the group, a list of rounds that the group requests were sent on, and the @@ -2501,6 +2543,7 @@ Parameters: /** * GroupChatProcessor manages the handling of received group chat messages. +The decryptedMessage field will be a JSON marshalled GroupChatMessage. */ @interface BindingsGroupChatProcessor : NSObject <goSeqRefInterface, BindingsGroupChatProcessor> { }