@@ -23296,11 +23296,6 @@ public object FfiConverterTypeOidcConfiguration: FfiConverterRustBuffer<OidcConf
2329623296
2329723297
2329823298data class OidcCrossSigningResetInfo (
23299- /**
23300- * The error message we received from the homeserver after we attempted to
23301- * reset the cross-signing keys.
23302- */
23303- var `error`: kotlin.String,
2330423299 /**
2330523300 * The URL where the user can approve the reset of the cross-signing keys.
2330623301 */
@@ -23314,17 +23309,14 @@ public object FfiConverterTypeOidcCrossSigningResetInfo: FfiConverterRustBuffer<
2331423309 override fun read(buf: ByteBuffer): OidcCrossSigningResetInfo {
2331523310 return OidcCrossSigningResetInfo(
2331623311 FfiConverterString.read(buf),
23317- FfiConverterString.read(buf),
2331823312 )
2331923313 }
2332023314
2332123315 override fun allocationSize(value: OidcCrossSigningResetInfo) = (
23322- FfiConverterString.allocationSize(value.`error`) +
2332323316 FfiConverterString.allocationSize(value.`approvalUrl`)
2332423317 )
2332523318
2332623319 override fun write(value: OidcCrossSigningResetInfo, buf: ByteBuffer) {
23327- FfiConverterString.write(value.`error`, buf)
2332823320 FfiConverterString.write(value.`approvalUrl`, buf)
2332923321 }
2333023322}
@@ -26228,7 +26220,8 @@ sealed class EventSendState {
2622826220 *
2622926221 * Happens only when the room key recipient strategy (as set by
2623026222 * [`ClientBuilder::room_key_recipient_strategy`]) has
26231- * [`error_on_verified_user_problem`](CollectStrategy::DeviceBasedStrategy::error_on_verified_user_problem) set.
26223+ * [`error_on_verified_user_problem`](CollectStrategy::DeviceBasedStrategy::error_on_verified_user_problem)
26224+ * set, or when using [`CollectStrategy::IdentityBasedStrategy`].
2623226225 */
2623326226 data class VerifiedUserChangedIdentity(
2623426227 /**
@@ -26238,6 +26231,20 @@ sealed class EventSendState {
2623826231 companion object
2623926232 }
2624026233
26234+ /**
26235+ * The user does not have cross-signing set up, but
26236+ * [`CollectStrategy::IdentityBasedStrategy`] was used.
26237+ */
26238+ object CrossSigningNotSetup : EventSendState()
26239+
26240+
26241+ /**
26242+ * The current device is not verified, but
26243+ * [`CollectStrategy::IdentityBasedStrategy`] was used.
26244+ */
26245+ object SendingFromUnverifiedDevice : EventSendState()
26246+
26247+
2624126248 /**
2624226249 * The local event has been sent to the server, but unsuccessfully: The
2624326250 * sending has failed.
@@ -26281,11 +26288,13 @@ public object FfiConverterTypeEventSendState : FfiConverterRustBuffer<EventSendS
2628126288 3 -> EventSendState.VerifiedUserChangedIdentity(
2628226289 FfiConverterSequenceString.read(buf),
2628326290 )
26284- 4 -> EventSendState.SendingFailed(
26291+ 4 -> EventSendState.CrossSigningNotSetup
26292+ 5 -> EventSendState.SendingFromUnverifiedDevice
26293+ 6 -> EventSendState.SendingFailed(
2628526294 FfiConverterString.read(buf),
2628626295 FfiConverterBoolean.read(buf),
2628726296 )
26288- 5 -> EventSendState.Sent(
26297+ 7 -> EventSendState.Sent(
2628926298 FfiConverterString.read(buf),
2629026299 )
2629126300 else -> throw RuntimeException("invalid enum value, something is very wrong!!")
@@ -26313,6 +26322,18 @@ public object FfiConverterTypeEventSendState : FfiConverterRustBuffer<EventSendS
2631326322 + FfiConverterSequenceString.allocationSize(value.`users`)
2631426323 )
2631526324 }
26325+ is EventSendState.CrossSigningNotSetup -> {
26326+ // Add the size for the Int that specifies the variant plus the size needed for all fields
26327+ (
26328+ 4UL
26329+ )
26330+ }
26331+ is EventSendState.SendingFromUnverifiedDevice -> {
26332+ // Add the size for the Int that specifies the variant plus the size needed for all fields
26333+ (
26334+ 4UL
26335+ )
26336+ }
2631626337 is EventSendState.SendingFailed -> {
2631726338 // Add the size for the Int that specifies the variant plus the size needed for all fields
2631826339 (
@@ -26346,14 +26367,22 @@ public object FfiConverterTypeEventSendState : FfiConverterRustBuffer<EventSendS
2634626367 FfiConverterSequenceString.write(value.`users`, buf)
2634726368 Unit
2634826369 }
26349- is EventSendState.SendingFailed -> {
26370+ is EventSendState.CrossSigningNotSetup -> {
2635026371 buf.putInt(4)
26372+ Unit
26373+ }
26374+ is EventSendState.SendingFromUnverifiedDevice -> {
26375+ buf.putInt(5)
26376+ Unit
26377+ }
26378+ is EventSendState.SendingFailed -> {
26379+ buf.putInt(6)
2635126380 FfiConverterString.write(value.`error`, buf)
2635226381 FfiConverterBoolean.write(value.`isRecoverable`, buf)
2635326382 Unit
2635426383 }
2635526384 is EventSendState.Sent -> {
26356- buf.putInt(5 )
26385+ buf.putInt(7 )
2635726386 FfiConverterString.write(value.`eventId`, buf)
2635826387 Unit
2635926388 }
0 commit comments