ping-openmls-sdk-react-native-macos 0.8.3 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/libping_ffi.a +0 -0
- package/ios/Generated.swift +20 -1
- package/ios/pingFFI.h +11 -0
- package/package.json +1 -1
package/Frameworks/libping_ffi.a
CHANGED
|
Binary file
|
package/ios/Generated.swift
CHANGED
|
@@ -742,6 +742,8 @@ public protocol MessagingClientProtocol: AnyObject {
|
|
|
742
742
|
|
|
743
743
|
func exportConversationStateSnapshot(conversationId: ConversationId, nowMs: UInt64) throws -> Data
|
|
744
744
|
|
|
745
|
+
func exportIdentity() -> Data
|
|
746
|
+
|
|
745
747
|
func freshKeyPackage() async throws -> Data
|
|
746
748
|
|
|
747
749
|
func importStateSnapshot(snapshotBytes: Data, nowMs: UInt64) async throws -> ConversationId
|
|
@@ -948,6 +950,12 @@ open class MessagingClient:
|
|
|
948
950
|
})
|
|
949
951
|
}
|
|
950
952
|
|
|
953
|
+
open func exportIdentity() -> Data {
|
|
954
|
+
return try! FfiConverterData.lift(try! rustCall {
|
|
955
|
+
uniffi_ping_ffi_fn_method_messagingclient_export_identity(self.uniffiClonePointer(), $0)
|
|
956
|
+
})
|
|
957
|
+
}
|
|
958
|
+
|
|
951
959
|
open func freshKeyPackage() async throws -> Data {
|
|
952
960
|
return
|
|
953
961
|
try await uniffiRustCallAsync(
|
|
@@ -2781,6 +2789,7 @@ public func FfiConverterTypeHlc_lower(_ value: Hlc) -> RustBuffer {
|
|
|
2781
2789
|
public struct IncomingMessage {
|
|
2782
2790
|
public var conversationId: ConversationId
|
|
2783
2791
|
public var senderDevice: DeviceId
|
|
2792
|
+
public var senderUserId: UserId
|
|
2784
2793
|
public var epoch: UInt64
|
|
2785
2794
|
public var hlc: Hlc
|
|
2786
2795
|
public var plaintext: Data
|
|
@@ -2788,9 +2797,10 @@ public struct IncomingMessage {
|
|
|
2788
2797
|
|
|
2789
2798
|
/// Default memberwise initializers are never public by default, so we
|
|
2790
2799
|
/// declare one manually.
|
|
2791
|
-
public init(conversationId: ConversationId, senderDevice: DeviceId, epoch: UInt64, hlc: Hlc, plaintext: Data, contentHash: Data) {
|
|
2800
|
+
public init(conversationId: ConversationId, senderDevice: DeviceId, senderUserId: UserId, epoch: UInt64, hlc: Hlc, plaintext: Data, contentHash: Data) {
|
|
2792
2801
|
self.conversationId = conversationId
|
|
2793
2802
|
self.senderDevice = senderDevice
|
|
2803
|
+
self.senderUserId = senderUserId
|
|
2794
2804
|
self.epoch = epoch
|
|
2795
2805
|
self.hlc = hlc
|
|
2796
2806
|
self.plaintext = plaintext
|
|
@@ -2806,6 +2816,9 @@ extension IncomingMessage: Equatable, Hashable {
|
|
|
2806
2816
|
if lhs.senderDevice != rhs.senderDevice {
|
|
2807
2817
|
return false
|
|
2808
2818
|
}
|
|
2819
|
+
if lhs.senderUserId != rhs.senderUserId {
|
|
2820
|
+
return false
|
|
2821
|
+
}
|
|
2809
2822
|
if lhs.epoch != rhs.epoch {
|
|
2810
2823
|
return false
|
|
2811
2824
|
}
|
|
@@ -2824,6 +2837,7 @@ extension IncomingMessage: Equatable, Hashable {
|
|
|
2824
2837
|
public func hash(into hasher: inout Hasher) {
|
|
2825
2838
|
hasher.combine(conversationId)
|
|
2826
2839
|
hasher.combine(senderDevice)
|
|
2840
|
+
hasher.combine(senderUserId)
|
|
2827
2841
|
hasher.combine(epoch)
|
|
2828
2842
|
hasher.combine(hlc)
|
|
2829
2843
|
hasher.combine(plaintext)
|
|
@@ -2840,6 +2854,7 @@ public struct FfiConverterTypeIncomingMessage: FfiConverterRustBuffer {
|
|
|
2840
2854
|
try IncomingMessage(
|
|
2841
2855
|
conversationId: FfiConverterTypeConversationId.read(from: &buf),
|
|
2842
2856
|
senderDevice: FfiConverterTypeDeviceId.read(from: &buf),
|
|
2857
|
+
senderUserId: FfiConverterTypeUserId.read(from: &buf),
|
|
2843
2858
|
epoch: FfiConverterUInt64.read(from: &buf),
|
|
2844
2859
|
hlc: FfiConverterTypeHlc.read(from: &buf),
|
|
2845
2860
|
plaintext: FfiConverterData.read(from: &buf),
|
|
@@ -2850,6 +2865,7 @@ public struct FfiConverterTypeIncomingMessage: FfiConverterRustBuffer {
|
|
|
2850
2865
|
public static func write(_ value: IncomingMessage, into buf: inout [UInt8]) {
|
|
2851
2866
|
FfiConverterTypeConversationId.write(value.conversationId, into: &buf)
|
|
2852
2867
|
FfiConverterTypeDeviceId.write(value.senderDevice, into: &buf)
|
|
2868
|
+
FfiConverterTypeUserId.write(value.senderUserId, into: &buf)
|
|
2853
2869
|
FfiConverterUInt64.write(value.epoch, into: &buf)
|
|
2854
2870
|
FfiConverterTypeHlc.write(value.hlc, into: &buf)
|
|
2855
2871
|
FfiConverterData.write(value.plaintext, into: &buf)
|
|
@@ -4408,6 +4424,9 @@ private var initializationResult: InitializationResult = {
|
|
|
4408
4424
|
if uniffi_ping_ffi_checksum_method_messagingclient_export_conversation_state_snapshot() != 48273 {
|
|
4409
4425
|
return InitializationResult.apiChecksumMismatch
|
|
4410
4426
|
}
|
|
4427
|
+
if uniffi_ping_ffi_checksum_method_messagingclient_export_identity() != 2782 {
|
|
4428
|
+
return InitializationResult.apiChecksumMismatch
|
|
4429
|
+
}
|
|
4411
4430
|
if uniffi_ping_ffi_checksum_method_messagingclient_fresh_key_package() != 14039 {
|
|
4412
4431
|
return InitializationResult.apiChecksumMismatch
|
|
4413
4432
|
}
|
package/ios/pingFFI.h
CHANGED
|
@@ -422,6 +422,11 @@ RustBuffer uniffi_ping_ffi_fn_method_messagingclient_export_conversation_secret(
|
|
|
422
422
|
RustBuffer uniffi_ping_ffi_fn_method_messagingclient_export_conversation_state_snapshot(void*_Nonnull ptr, RustBuffer conversation_id, uint64_t now_ms, RustCallStatus *_Nonnull out_status
|
|
423
423
|
);
|
|
424
424
|
#endif
|
|
425
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_EXPORT_IDENTITY
|
|
426
|
+
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_EXPORT_IDENTITY
|
|
427
|
+
RustBuffer uniffi_ping_ffi_fn_method_messagingclient_export_identity(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
428
|
+
);
|
|
429
|
+
#endif
|
|
425
430
|
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_FRESH_KEY_PACKAGE
|
|
426
431
|
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_FRESH_KEY_PACKAGE
|
|
427
432
|
uint64_t uniffi_ping_ffi_fn_method_messagingclient_fresh_key_package(void*_Nonnull ptr
|
|
@@ -1030,6 +1035,12 @@ uint16_t uniffi_ping_ffi_checksum_method_messagingclient_export_conversation_sec
|
|
|
1030
1035
|
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_EXPORT_CONVERSATION_STATE_SNAPSHOT
|
|
1031
1036
|
uint16_t uniffi_ping_ffi_checksum_method_messagingclient_export_conversation_state_snapshot(void
|
|
1032
1037
|
|
|
1038
|
+
);
|
|
1039
|
+
#endif
|
|
1040
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_EXPORT_IDENTITY
|
|
1041
|
+
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_EXPORT_IDENTITY
|
|
1042
|
+
uint16_t uniffi_ping_ffi_checksum_method_messagingclient_export_identity(void
|
|
1043
|
+
|
|
1033
1044
|
);
|
|
1034
1045
|
#endif
|
|
1035
1046
|
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_FRESH_KEY_PACKAGE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ping-openmls-sdk-react-native-macos",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "Real MLS for React Native macOS apps — wraps the ping-openmls-sdk Rust core via UniFFI.",
|
|
5
5
|
"homepage": "https://github.com/AMP-Media-Development/ping-openmls-sdk",
|
|
6
6
|
"license": "Apache-2.0",
|