@@ -2062,6 +2062,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
20622062
20632063
20642064
2065+
2066+
20652067
20662068
20672069
@@ -2511,6 +2513,8 @@ internal interface UniffiLib : Library {
25112513 ): Long
25122514 fun uniffi_matrix_sdk_ffi_fn_method_room_has_active_room_call(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
25132515 ): Byte
2516+ fun uniffi_matrix_sdk_ffi_fn_method_room_heroes(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2517+ ): RustBuffer.ByValue
25142518 fun uniffi_matrix_sdk_ffi_fn_method_room_id(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
25152519 ): RustBuffer.ByValue
25162520 fun uniffi_matrix_sdk_ffi_fn_method_room_ignore_user(`ptr`: Pointer,`userId`: RustBuffer.ByValue,
@@ -3485,6 +3489,8 @@ internal interface UniffiLib : Library {
34853489 ): Short
34863490 fun uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call(
34873491 ): Short
3492+ fun uniffi_matrix_sdk_ffi_checksum_method_room_heroes(
3493+ ): Short
34883494 fun uniffi_matrix_sdk_ffi_checksum_method_room_id(
34893495 ): Short
34903496 fun uniffi_matrix_sdk_ffi_checksum_method_room_ignore_user(
@@ -4444,6 +4450,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
44444450 if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_has_active_room_call() != 33588.toShort()) {
44454451 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
44464452 }
4453+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_heroes() != 22313.toShort()) {
4454+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4455+ }
44474456 if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_id() != 61990.toShort()) {
44484457 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
44494458 }
@@ -11978,6 +11987,11 @@ public interface RoomInterface {
1197811987 */
1197911988 fun `hasActiveRoomCall`(): kotlin.Boolean
1198011989
11990+ /**
11991+ * Returns the room heroes for this room.
11992+ */
11993+ fun `heroes`(): List<RoomHero>
11994+
1198111995 fun `id`(): kotlin.String
1198211996
1198311997 /**
@@ -12688,6 +12702,21 @@ open class Room: Disposable, AutoCloseable, RoomInterface {
1268812702 }
1268912703
1269012704
12705+
12706+ /**
12707+ * Returns the room heroes for this room.
12708+ */override fun `heroes`(): List<RoomHero> {
12709+ return FfiConverterSequenceTypeRoomHero.lift(
12710+ callWithPointer {
12711+ uniffiRustCall() { _status ->
12712+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_heroes(
12713+ it, _status)
12714+ }
12715+ }
12716+ )
12717+ }
12718+
12719+
1269112720 override fun `id`(): kotlin.String {
1269212721 return FfiConverterString.lift(
1269312722 callWithPointer {
@@ -22322,6 +22351,51 @@ public object FfiConverterTypeRoomDirectorySearchEntriesResult: FfiConverterRust
2232222351
2232322352
2232422353
22354+ /**
22355+ * Information about a member considered to be a room hero.
22356+ */
22357+ data class RoomHero (
22358+ /**
22359+ * The user ID of the hero.
22360+ */
22361+ var `userId`: kotlin.String,
22362+ /**
22363+ * The display name of the hero.
22364+ */
22365+ var `displayName`: kotlin.String?,
22366+ /**
22367+ * The avatar URL of the hero.
22368+ */
22369+ var `avatarUrl`: kotlin.String?
22370+ ) {
22371+
22372+ companion object
22373+ }
22374+
22375+ public object FfiConverterTypeRoomHero: FfiConverterRustBuffer<RoomHero> {
22376+ override fun read(buf: ByteBuffer): RoomHero {
22377+ return RoomHero(
22378+ FfiConverterString.read(buf),
22379+ FfiConverterOptionalString.read(buf),
22380+ FfiConverterOptionalString.read(buf),
22381+ )
22382+ }
22383+
22384+ override fun allocationSize(value: RoomHero) = (
22385+ FfiConverterString.allocationSize(value.`userId`) +
22386+ FfiConverterOptionalString.allocationSize(value.`displayName`) +
22387+ FfiConverterOptionalString.allocationSize(value.`avatarUrl`)
22388+ )
22389+
22390+ override fun write(value: RoomHero, buf: ByteBuffer) {
22391+ FfiConverterString.write(value.`userId`, buf)
22392+ FfiConverterOptionalString.write(value.`displayName`, buf)
22393+ FfiConverterOptionalString.write(value.`avatarUrl`, buf)
22394+ }
22395+ }
22396+
22397+
22398+
2232522399data class RoomInfo (
2232622400 var `id`: kotlin.String,
2232722401 /**
@@ -22351,6 +22425,7 @@ data class RoomInfo (
2235122425 * store.
2235222426 */
2235322427 var `inviter`: RoomMember?,
22428+ var `heroes`: List<RoomHero>,
2235422429 var `activeMembersCount`: kotlin.ULong,
2235522430 var `invitedMembersCount`: kotlin.ULong,
2235622431 var `joinedMembersCount`: kotlin.ULong,
@@ -22401,6 +22476,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
2240122476 FfiConverterSequenceString.read(buf),
2240222477 FfiConverterTypeMembership.read(buf),
2240322478 FfiConverterOptionalTypeRoomMember.read(buf),
22479+ FfiConverterSequenceTypeRoomHero.read(buf),
2240422480 FfiConverterULong.read(buf),
2240522481 FfiConverterULong.read(buf),
2240622482 FfiConverterULong.read(buf),
@@ -22432,6 +22508,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
2243222508 FfiConverterSequenceString.allocationSize(value.`alternativeAliases`) +
2243322509 FfiConverterTypeMembership.allocationSize(value.`membership`) +
2243422510 FfiConverterOptionalTypeRoomMember.allocationSize(value.`inviter`) +
22511+ FfiConverterSequenceTypeRoomHero.allocationSize(value.`heroes`) +
2243522512 FfiConverterULong.allocationSize(value.`activeMembersCount`) +
2243622513 FfiConverterULong.allocationSize(value.`invitedMembersCount`) +
2243722514 FfiConverterULong.allocationSize(value.`joinedMembersCount`) +
@@ -22462,6 +22539,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
2246222539 FfiConverterSequenceString.write(value.`alternativeAliases`, buf)
2246322540 FfiConverterTypeMembership.write(value.`membership`, buf)
2246422541 FfiConverterOptionalTypeRoomMember.write(value.`inviter`, buf)
22542+ FfiConverterSequenceTypeRoomHero.write(value.`heroes`, buf)
2246522543 FfiConverterULong.write(value.`activeMembersCount`, buf)
2246622544 FfiConverterULong.write(value.`invitedMembersCount`, buf)
2246722545 FfiConverterULong.write(value.`joinedMembersCount`, buf)
@@ -33688,6 +33766,31 @@ public object FfiConverterSequenceTypeRoomDescription: FfiConverterRustBuffer<Li
3368833766
3368933767
3369033768
33769+ public object FfiConverterSequenceTypeRoomHero: FfiConverterRustBuffer<List<RoomHero>> {
33770+ override fun read(buf: ByteBuffer): List<RoomHero> {
33771+ val len = buf.getInt()
33772+ return List<RoomHero>(len) {
33773+ FfiConverterTypeRoomHero.read(buf)
33774+ }
33775+ }
33776+
33777+ override fun allocationSize(value: List<RoomHero>): ULong {
33778+ val sizeForLength = 4UL
33779+ val sizeForItems = value.map { FfiConverterTypeRoomHero.allocationSize(it) }.sum()
33780+ return sizeForLength + sizeForItems
33781+ }
33782+
33783+ override fun write(value: List<RoomHero>, buf: ByteBuffer) {
33784+ buf.putInt(value.size)
33785+ value.iterator().forEach {
33786+ FfiConverterTypeRoomHero.write(it, buf)
33787+ }
33788+ }
33789+ }
33790+
33791+
33792+
33793+
3369133794public object FfiConverterSequenceTypeRoomListRange: FfiConverterRustBuffer<List<RoomListRange>> {
3369233795 override fun read(buf: ByteBuffer): List<RoomListRange> {
3369333796 val len = buf.getInt()
0 commit comments