@@ -16,6 +16,8 @@ class RoomConfig:
1616
1717 max_peers : Union [Unset , None , int ] = UNSET
1818 """Maximum amount of peers allowed into the room"""
19+ public : Union [Unset , bool ] = False
20+ """True if livestream viewers can omit specifying a token."""
1921 room_type : Union [Unset , RoomConfigRoomType ] = RoomConfigRoomType .CONFERENCE
2022 """The use-case of the room. If not provided, this defaults to conference."""
2123 video_codec : Union [Unset , None , RoomConfigVideoCodec ] = UNSET
@@ -28,6 +30,7 @@ class RoomConfig:
2830 def to_dict (self ) -> Dict [str , Any ]:
2931 """@private"""
3032 max_peers = self .max_peers
33+ public = self .public
3134 room_type : Union [Unset , str ] = UNSET
3235 if not isinstance (self .room_type , Unset ):
3336 room_type = self .room_type .value
@@ -43,6 +46,8 @@ def to_dict(self) -> Dict[str, Any]:
4346 field_dict .update ({})
4447 if max_peers is not UNSET :
4548 field_dict ["maxPeers" ] = max_peers
49+ if public is not UNSET :
50+ field_dict ["public" ] = public
4651 if room_type is not UNSET :
4752 field_dict ["roomType" ] = room_type
4853 if video_codec is not UNSET :
@@ -58,6 +63,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
5863 d = src_dict .copy ()
5964 max_peers = d .pop ("maxPeers" , UNSET )
6065
66+ public = d .pop ("public" , UNSET )
67+
6168 _room_type = d .pop ("roomType" , UNSET )
6269 room_type : Union [Unset , RoomConfigRoomType ]
6370 if isinstance (_room_type , Unset ):
@@ -78,6 +85,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
7885
7986 room_config = cls (
8087 max_peers = max_peers ,
88+ public = public ,
8189 room_type = room_type ,
8290 video_codec = video_codec ,
8391 webhook_url = webhook_url ,
0 commit comments