ping-openmls-sdk-react-native-macos 0.7.14 → 0.7.15
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 +98 -0
- package/ios/pingFFI.h +11 -0
- package/package.json +1 -1
package/Frameworks/libping_ffi.a
CHANGED
|
Binary file
|
package/ios/Generated.swift
CHANGED
|
@@ -752,6 +752,8 @@ public protocol MessagingClientProtocol: AnyObject {
|
|
|
752
752
|
|
|
753
753
|
func listDevices() -> [DeviceInfo]
|
|
754
754
|
|
|
755
|
+
func members(conversationId: ConversationId) -> [MemberInfo]
|
|
756
|
+
|
|
755
757
|
func processEnvelope(envelope: MessageEnvelope, nowMs: UInt64) async throws -> IncomingMessage?
|
|
756
758
|
|
|
757
759
|
func removeMembers(conversationId: ConversationId, leafIndexes: [UInt32], nowMs: UInt64) async throws
|
|
@@ -998,6 +1000,13 @@ open class MessagingClient:
|
|
|
998
1000
|
})
|
|
999
1001
|
}
|
|
1000
1002
|
|
|
1003
|
+
open func members(conversationId: ConversationId) -> [MemberInfo] {
|
|
1004
|
+
return try! FfiConverterSequenceTypeMemberInfo.lift(try! rustCall {
|
|
1005
|
+
uniffi_ping_ffi_fn_method_messagingclient_members(self.uniffiClonePointer(),
|
|
1006
|
+
FfiConverterTypeConversationId.lower(conversationId), $0)
|
|
1007
|
+
})
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1001
1010
|
open func processEnvelope(envelope: MessageEnvelope, nowMs: UInt64) async throws -> IncomingMessage? {
|
|
1002
1011
|
return
|
|
1003
1012
|
try await uniffiRustCallAsync(
|
|
@@ -3014,6 +3023,67 @@ public func FfiConverterTypeLinkingTicket_lower(_ value: LinkingTicket) -> RustB
|
|
|
3014
3023
|
return FfiConverterTypeLinkingTicket.lower(value)
|
|
3015
3024
|
}
|
|
3016
3025
|
|
|
3026
|
+
public struct MemberInfo {
|
|
3027
|
+
public var userId: UserId
|
|
3028
|
+
public var leafIndex: UInt32
|
|
3029
|
+
|
|
3030
|
+
/// Default memberwise initializers are never public by default, so we
|
|
3031
|
+
/// declare one manually.
|
|
3032
|
+
public init(userId: UserId, leafIndex: UInt32) {
|
|
3033
|
+
self.userId = userId
|
|
3034
|
+
self.leafIndex = leafIndex
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
extension MemberInfo: Equatable, Hashable {
|
|
3039
|
+
public static func == (lhs: MemberInfo, rhs: MemberInfo) -> Bool {
|
|
3040
|
+
if lhs.userId != rhs.userId {
|
|
3041
|
+
return false
|
|
3042
|
+
}
|
|
3043
|
+
if lhs.leafIndex != rhs.leafIndex {
|
|
3044
|
+
return false
|
|
3045
|
+
}
|
|
3046
|
+
return true
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
public func hash(into hasher: inout Hasher) {
|
|
3050
|
+
hasher.combine(userId)
|
|
3051
|
+
hasher.combine(leafIndex)
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
#if swift(>=5.8)
|
|
3056
|
+
@_documentation(visibility: private)
|
|
3057
|
+
#endif
|
|
3058
|
+
public struct FfiConverterTypeMemberInfo: FfiConverterRustBuffer {
|
|
3059
|
+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> MemberInfo {
|
|
3060
|
+
return
|
|
3061
|
+
try MemberInfo(
|
|
3062
|
+
userId: FfiConverterTypeUserId.read(from: &buf),
|
|
3063
|
+
leafIndex: FfiConverterUInt32.read(from: &buf)
|
|
3064
|
+
)
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
public static func write(_ value: MemberInfo, into buf: inout [UInt8]) {
|
|
3068
|
+
FfiConverterTypeUserId.write(value.userId, into: &buf)
|
|
3069
|
+
FfiConverterUInt32.write(value.leafIndex, into: &buf)
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
#if swift(>=5.8)
|
|
3074
|
+
@_documentation(visibility: private)
|
|
3075
|
+
#endif
|
|
3076
|
+
public func FfiConverterTypeMemberInfo_lift(_ buf: RustBuffer) throws -> MemberInfo {
|
|
3077
|
+
return try FfiConverterTypeMemberInfo.lift(buf)
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
#if swift(>=5.8)
|
|
3081
|
+
@_documentation(visibility: private)
|
|
3082
|
+
#endif
|
|
3083
|
+
public func FfiConverterTypeMemberInfo_lower(_ value: MemberInfo) -> RustBuffer {
|
|
3084
|
+
return FfiConverterTypeMemberInfo.lower(value)
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3017
3087
|
public struct MessageEnvelope {
|
|
3018
3088
|
public var v: UInt8
|
|
3019
3089
|
public var conversationId: ConversationId
|
|
@@ -3947,6 +4017,31 @@ private struct FfiConverterSequenceTypeKeyPackageEntry: FfiConverterRustBuffer {
|
|
|
3947
4017
|
}
|
|
3948
4018
|
}
|
|
3949
4019
|
|
|
4020
|
+
#if swift(>=5.8)
|
|
4021
|
+
@_documentation(visibility: private)
|
|
4022
|
+
#endif
|
|
4023
|
+
private struct FfiConverterSequenceTypeMemberInfo: FfiConverterRustBuffer {
|
|
4024
|
+
typealias SwiftType = [MemberInfo]
|
|
4025
|
+
|
|
4026
|
+
static func write(_ value: [MemberInfo], into buf: inout [UInt8]) {
|
|
4027
|
+
let len = Int32(value.count)
|
|
4028
|
+
writeInt(&buf, len)
|
|
4029
|
+
for item in value {
|
|
4030
|
+
FfiConverterTypeMemberInfo.write(item, into: &buf)
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> [MemberInfo] {
|
|
4035
|
+
let len: Int32 = try readInt(&buf)
|
|
4036
|
+
var seq = [MemberInfo]()
|
|
4037
|
+
seq.reserveCapacity(Int(len))
|
|
4038
|
+
for _ in 0 ..< len {
|
|
4039
|
+
try seq.append(FfiConverterTypeMemberInfo.read(from: &buf))
|
|
4040
|
+
}
|
|
4041
|
+
return seq
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
|
|
3950
4045
|
#if swift(>=5.8)
|
|
3951
4046
|
@_documentation(visibility: private)
|
|
3952
4047
|
#endif
|
|
@@ -4318,6 +4413,9 @@ private var initializationResult: InitializationResult = {
|
|
|
4318
4413
|
if uniffi_ping_ffi_checksum_method_messagingclient_list_devices() != 10141 {
|
|
4319
4414
|
return InitializationResult.apiChecksumMismatch
|
|
4320
4415
|
}
|
|
4416
|
+
if uniffi_ping_ffi_checksum_method_messagingclient_members() != 51351 {
|
|
4417
|
+
return InitializationResult.apiChecksumMismatch
|
|
4418
|
+
}
|
|
4321
4419
|
if uniffi_ping_ffi_checksum_method_messagingclient_process_envelope() != 11247 {
|
|
4322
4420
|
return InitializationResult.apiChecksumMismatch
|
|
4323
4421
|
}
|
package/ios/pingFFI.h
CHANGED
|
@@ -447,6 +447,11 @@ RustBuffer uniffi_ping_ffi_fn_method_messagingclient_list_conversations(void*_No
|
|
|
447
447
|
RustBuffer uniffi_ping_ffi_fn_method_messagingclient_list_devices(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
|
|
448
448
|
);
|
|
449
449
|
#endif
|
|
450
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_MEMBERS
|
|
451
|
+
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_MEMBERS
|
|
452
|
+
RustBuffer uniffi_ping_ffi_fn_method_messagingclient_members(void*_Nonnull ptr, RustBuffer conversation_id, RustCallStatus *_Nonnull out_status
|
|
453
|
+
);
|
|
454
|
+
#endif
|
|
450
455
|
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_PROCESS_ENVELOPE
|
|
451
456
|
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_FN_METHOD_MESSAGINGCLIENT_PROCESS_ENVELOPE
|
|
452
457
|
uint64_t uniffi_ping_ffi_fn_method_messagingclient_process_envelope(void*_Nonnull ptr, RustBuffer envelope, uint64_t now_ms
|
|
@@ -1055,6 +1060,12 @@ uint16_t uniffi_ping_ffi_checksum_method_messagingclient_list_conversations(void
|
|
|
1055
1060
|
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_LIST_DEVICES
|
|
1056
1061
|
uint16_t uniffi_ping_ffi_checksum_method_messagingclient_list_devices(void
|
|
1057
1062
|
|
|
1063
|
+
);
|
|
1064
|
+
#endif
|
|
1065
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_MEMBERS
|
|
1066
|
+
#define UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_MEMBERS
|
|
1067
|
+
uint16_t uniffi_ping_ffi_checksum_method_messagingclient_members(void
|
|
1068
|
+
|
|
1058
1069
|
);
|
|
1059
1070
|
#endif
|
|
1060
1071
|
#ifndef UNIFFI_FFIDEF_UNIFFI_PING_FFI_CHECKSUM_METHOD_MESSAGINGCLIENT_PROCESS_ENVELOPE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ping-openmls-sdk-react-native-macos",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.15",
|
|
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",
|