@@ -1739,6 +1739,7 @@ pub enum DisconnectReason {
17391739 /// SIP protocol failure or unexpected response
17401740 SipTrunkFailure = 13 ,
17411741 ConnectionTimeout = 14 ,
1742+ MediaFailure = 15 ,
17421743}
17431744impl DisconnectReason {
17441745 /// String value of the enum field names used in the ProtoBuf definition.
@@ -1762,6 +1763,7 @@ impl DisconnectReason {
17621763 DisconnectReason :: UserRejected => "USER_REJECTED" ,
17631764 DisconnectReason :: SipTrunkFailure => "SIP_TRUNK_FAILURE" ,
17641765 DisconnectReason :: ConnectionTimeout => "CONNECTION_TIMEOUT" ,
1766+ DisconnectReason :: MediaFailure => "MEDIA_FAILURE" ,
17651767 }
17661768 }
17671769 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -1782,6 +1784,7 @@ impl DisconnectReason {
17821784 "USER_REJECTED" => Some ( Self :: UserRejected ) ,
17831785 "SIP_TRUNK_FAILURE" => Some ( Self :: SipTrunkFailure ) ,
17841786 "CONNECTION_TIMEOUT" => Some ( Self :: ConnectionTimeout ) ,
1787+ "MEDIA_FAILURE" => Some ( Self :: MediaFailure ) ,
17851788 _ => None ,
17861789 }
17871790 }
@@ -3329,7 +3332,7 @@ pub struct OwnedBuffer {
33293332pub struct RoomEvent {
33303333 #[ prost( uint64, required, tag="1" ) ]
33313334 pub room_handle : u64 ,
3332- #[ prost( oneof="room_event::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35" ) ]
3335+ #[ prost( oneof="room_event::Message" , tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38 " ) ]
33333336 pub message : :: core:: option:: Option < room_event:: Message > ,
33343337}
33353338/// Nested message and enum types in `RoomEvent`.
@@ -3409,6 +3412,15 @@ pub mod room_event {
34093412 ByteStreamOpened ( super :: ByteStreamOpened ) ,
34103413 #[ prost( message, tag="35" ) ]
34113414 TextStreamOpened ( super :: TextStreamOpened ) ,
3415+ /// Room info updated
3416+ #[ prost( message, tag="36" ) ]
3417+ RoomUpdated ( super :: RoomInfo ) ,
3418+ /// Participant moved to new room
3419+ #[ prost( message, tag="37" ) ]
3420+ Moved ( super :: RoomInfo ) ,
3421+ /// carry over all participant info updates, including sid
3422+ #[ prost( message, tag="38" ) ]
3423+ ParticipantsUpdated ( super :: ParticipantsUpdated ) ,
34123424 }
34133425}
34143426#[ allow( clippy:: derive_partial_eq_without_eq) ]
@@ -3424,6 +3436,20 @@ pub struct RoomInfo {
34243436 pub lossy_dc_buffered_amount_low_threshold : u64 ,
34253437 #[ prost( uint64, required, tag="5" ) ]
34263438 pub reliable_dc_buffered_amount_low_threshold : u64 ,
3439+ #[ prost( uint32, required, tag="6" ) ]
3440+ pub empty_timeout : u32 ,
3441+ #[ prost( uint32, required, tag="7" ) ]
3442+ pub departure_timeout : u32 ,
3443+ #[ prost( uint32, required, tag="8" ) ]
3444+ pub max_participants : u32 ,
3445+ #[ prost( int64, required, tag="9" ) ]
3446+ pub creation_time : i64 ,
3447+ #[ prost( uint32, required, tag="10" ) ]
3448+ pub num_participants : u32 ,
3449+ #[ prost( uint32, required, tag="11" ) ]
3450+ pub num_publishers : u32 ,
3451+ #[ prost( bool , required, tag="12" ) ]
3452+ pub active_recording : bool ,
34273453}
34283454#[ allow( clippy:: derive_partial_eq_without_eq) ]
34293455#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -3435,6 +3461,12 @@ pub struct OwnedRoom {
34353461}
34363462#[ allow( clippy:: derive_partial_eq_without_eq) ]
34373463#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3464+ pub struct ParticipantsUpdated {
3465+ #[ prost( message, repeated, tag="1" ) ]
3466+ pub participants : :: prost:: alloc:: vec:: Vec < ParticipantInfo > ,
3467+ }
3468+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
3469+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
34383470pub struct ParticipantConnected {
34393471 #[ prost( message, required, tag="1" ) ]
34403472 pub info : OwnedParticipant ,
0 commit comments