Skip to content

Commit b1b4ad2

Browse files
Update openapi
1 parent d11c0d9 commit b1b4ad2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

fishjam/_openapi_client/models/room_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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, None, bool] = UNSET
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,

tests/test_room_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def test_valid(self, room_api: FishjamClient):
154154
video_codec=None,
155155
webhook_url=None,
156156
room_type=RoomConfigRoomType(CONFERENCE),
157+
public=False,
157158
)
158159
config.__setitem__("roomId", room.config.__getitem__("roomId"))
159160
config.__setitem__(

0 commit comments

Comments
 (0)