@@ -417,6 +417,8 @@ internal interface _UniFFILib : Library {
417
417
): RustBuffer .ByValue
418
418
fun uniffi_xmtpv3_fn_method_ffigroup_group_metadata (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
419
419
): Pointer
420
+ fun uniffi_xmtpv3_fn_method_ffigroup_group_name (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
421
+ ): RustBuffer .ByValue
420
422
fun uniffi_xmtpv3_fn_method_ffigroup_id (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
421
423
): RustBuffer .ByValue
422
424
fun uniffi_xmtpv3_fn_method_ffigroup_is_active (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
@@ -433,6 +435,8 @@ internal interface _UniFFILib : Library {
433
435
): Pointer
434
436
fun uniffi_xmtpv3_fn_method_ffigroup_sync (`ptr`: Pointer ,
435
437
): Pointer
438
+ fun uniffi_xmtpv3_fn_method_ffigroup_update_group_name (`ptr`: Pointer ,`groupName`: RustBuffer .ByValue ,
439
+ ): Pointer
436
440
fun uniffi_xmtpv3_fn_free_ffigroupmetadata (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
437
441
): Unit
438
442
fun uniffi_xmtpv3_fn_method_ffigroupmetadata_conversation_type (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
@@ -679,6 +683,8 @@ internal interface _UniFFILib : Library {
679
683
): Short
680
684
fun uniffi_xmtpv3_checksum_method_ffigroup_group_metadata (
681
685
): Short
686
+ fun uniffi_xmtpv3_checksum_method_ffigroup_group_name (
687
+ ): Short
682
688
fun uniffi_xmtpv3_checksum_method_ffigroup_id (
683
689
): Short
684
690
fun uniffi_xmtpv3_checksum_method_ffigroup_is_active (
@@ -695,6 +701,8 @@ internal interface _UniFFILib : Library {
695
701
): Short
696
702
fun uniffi_xmtpv3_checksum_method_ffigroup_sync (
697
703
): Short
704
+ fun uniffi_xmtpv3_checksum_method_ffigroup_update_group_name (
705
+ ): Short
698
706
fun uniffi_xmtpv3_checksum_method_ffigroupmetadata_conversation_type (
699
707
): Short
700
708
fun uniffi_xmtpv3_checksum_method_ffigroupmetadata_creator_account_address (
@@ -832,6 +840,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
832
840
if (lib.uniffi_xmtpv3_checksum_method_ffigroup_group_metadata() != 3690 .toShort()) {
833
841
throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
834
842
}
843
+ if (lib.uniffi_xmtpv3_checksum_method_ffigroup_group_name() != 3391 .toShort()) {
844
+ throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
845
+ }
835
846
if (lib.uniffi_xmtpv3_checksum_method_ffigroup_id() != 35243 .toShort()) {
836
847
throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
837
848
}
@@ -856,6 +867,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
856
867
if (lib.uniffi_xmtpv3_checksum_method_ffigroup_sync() != 9422 .toShort()) {
857
868
throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
858
869
}
870
+ if (lib.uniffi_xmtpv3_checksum_method_ffigroup_update_group_name() != 29940 .toShort()) {
871
+ throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
872
+ }
859
873
if (lib.uniffi_xmtpv3_checksum_method_ffigroupmetadata_conversation_type() != 37015 .toShort()) {
860
874
throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
861
875
}
@@ -1491,15 +1505,17 @@ public interface FfiGroupInterface {
1491
1505
suspend fun `addMembers` (`accountAddresses`: List <String >)
1492
1506
fun `createdAtNs` (): Long @Throws (GenericException ::class)
1493
1507
fun `findMessages` (`opts`: FfiListMessagesOptions ): List <FfiMessage >@Throws (GenericException ::class)
1494
- fun `groupMetadata` (): FfiGroupMetadata
1508
+ fun `groupMetadata` (): FfiGroupMetadata @Throws (GenericException ::class)
1509
+ fun `groupName` (): String
1495
1510
fun `id` (): ByteArray @Throws (GenericException ::class)
1496
1511
fun `isActive` (): Boolean @Throws (GenericException ::class)
1497
1512
fun `listMembers` (): List <FfiGroupMember >@Throws (GenericException ::class)
1498
1513
suspend fun `processStreamedGroupMessage` (`envelopeBytes`: ByteArray ): FfiMessage @Throws (GenericException ::class)
1499
1514
suspend fun `removeMembers` (`accountAddresses`: List <String >)@Throws(GenericException : :class)
1500
1515
suspend fun `send` (`contentBytes`: ByteArray )@Throws(GenericException : :class)
1501
1516
suspend fun `stream` (`messageCallback`: FfiMessageCallback ): FfiStreamCloser @Throws (GenericException ::class)
1502
- suspend fun `sync` ()
1517
+ suspend fun `sync` ()@Throws(GenericException : :class)
1518
+ suspend fun `updateGroupName` (`groupName`: String )
1503
1519
companion object
1504
1520
}
1505
1521
@@ -1577,6 +1593,18 @@ class FfiGroup(
1577
1593
FfiConverterTypeFfiGroupMetadata .lift(it)
1578
1594
}
1579
1595
1596
+
1597
+ @Throws(GenericException ::class )override fun `groupName` (): String =
1598
+ callWithPointer {
1599
+ rustCallWithError(GenericException ) { _status ->
1600
+ _UniFFILib .INSTANCE .uniffi_xmtpv3_fn_method_ffigroup_group_name(it,
1601
+
1602
+ _status )
1603
+ }
1604
+ }.let {
1605
+ FfiConverterString .lift(it)
1606
+ }
1607
+
1580
1608
override fun `id` (): ByteArray =
1581
1609
callWithPointer {
1582
1610
rustCall() { _status ->
@@ -1716,6 +1744,27 @@ class FfiGroup(
1716
1744
)
1717
1745
}
1718
1746
1747
+ @Throws(GenericException ::class )
1748
+ @Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
1749
+ override suspend fun `updateGroupName` (`groupName`: String ) {
1750
+ return uniffiRustCallAsync(
1751
+ callWithPointer { thisPtr ->
1752
+ _UniFFILib .INSTANCE .uniffi_xmtpv3_fn_method_ffigroup_update_group_name(
1753
+ thisPtr,
1754
+ FfiConverterString .lower(`groupName`),
1755
+ )
1756
+ },
1757
+ { future, continuation -> _UniFFILib .INSTANCE .ffi_xmtpv3_rust_future_poll_void(future, continuation) },
1758
+ { future, continuation -> _UniFFILib .INSTANCE .ffi_xmtpv3_rust_future_complete_void(future, continuation) },
1759
+ { future -> _UniFFILib .INSTANCE .ffi_xmtpv3_rust_future_free_void(future) },
1760
+ // lift function
1761
+ { Unit },
1762
+
1763
+ // Error FFI converter
1764
+ GenericException .ErrorHandler ,
1765
+ )
1766
+ }
1767
+
1719
1768
1720
1769
1721
1770
companion object
0 commit comments