@@ -169,6 +169,13 @@ pub enum ErrorKind {
169169 /// The desired user name is not valid.
170170 InvalidUsername ,
171171
172+ /// `M_INVITE_BLOCKED`
173+ ///
174+ /// The invite was interdicted by moderation tools or configured access controls without having
175+ /// been witnessed by the invitee.
176+ #[ cfg( feature = "unstable-msc4380" ) ]
177+ InviteBlocked ,
178+
172179 /// `M_LIMIT_EXCEEDED`
173180 ///
174181 /// The request has been refused due to [rate limiting]: too many requests have been sent in a
@@ -453,6 +460,8 @@ impl ErrorKind {
453460 ErrorKind :: InvalidParam => ErrorCode :: InvalidParam ,
454461 ErrorKind :: InvalidRoomState => ErrorCode :: InvalidRoomState ,
455462 ErrorKind :: InvalidUsername => ErrorCode :: InvalidUsername ,
463+ #[ cfg( feature = "unstable-msc4380" ) ]
464+ ErrorKind :: InviteBlocked => ErrorCode :: InviteBlocked ,
456465 ErrorKind :: LimitExceeded { .. } => ErrorCode :: LimitExceeded ,
457466 ErrorKind :: MissingParam => ErrorCode :: MissingParam ,
458467 ErrorKind :: MissingToken => ErrorCode :: MissingToken ,
@@ -633,6 +642,16 @@ pub enum ErrorCode {
633642 /// The desired user name is not valid.
634643 InvalidUsername ,
635644
645+ /// `M_INVITE_BLOCKED`
646+ ///
647+ /// The invite was interdicted by moderation tools or configured access controls without having
648+ /// been witnessed by the invitee.
649+ ///
650+ /// Unstable prefix intentionally shared with MSC4155 for compatibility.
651+ #[ cfg( feature = "unstable-msc4380" ) ]
652+ #[ ruma_enum( rename = "ORG.MATRIX.MSC4155.INVITE_BLOCKED" ) ]
653+ InviteBlocked ,
654+
636655 /// `M_LIMIT_EXCEEDED`
637656 ///
638657 /// The request has been refused due to [rate limiting]: too many requests have been sent in a
0 commit comments