Skip to content

Commit a099d24

Browse files
authored
FCE-2025 add audio livestream type (#44)
1 parent 90f484c commit a099d24

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

fishjam/_openapi_client/models/room_config_room_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class RoomConfigRoomType(str, Enum):
55
"""The use-case of the room. If not provided, this defaults to conference."""
66

77
AUDIO_ONLY = "audio_only"
8+
AUDIO_ONLY_LIVESTREAM = "audio_only_livestream"
89
BROADCASTER = "broadcaster"
910
CONFERENCE = "conference"
1011
FULL_FEATURE = "full_feature"

fishjam/api/_fishjam_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ class RoomOptions:
6767
webhook_url: str | None = None
6868
"""URL where Fishjam notifications will be sent"""
6969
room_type: Literal[
70-
"conference", "audio_only", "livestream", "full_feature", "broadcaster"
70+
"conference",
71+
"audio_only",
72+
"livestream",
73+
"full_feature",
74+
"broadcaster",
75+
"audio_only_livestream",
7176
] = "conference"
7277
"""The use-case of the room. If not provided, this defaults to conference."""
7378
public: bool = False

tests/test_room_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_valid(self, room_api: FishjamClient):
154154
) == room_api.get_room(room.id)
155155

156156
def test_invalid(self, room_api: FishjamClient):
157-
with pytest.raises(BadRequestError):
157+
with pytest.raises(NotFoundError):
158158
room_api.get_room("invalid_id")
159159

160160
def test_id_not_found(self, room_api):

0 commit comments

Comments
 (0)