From c8434b04df2103d9d44af7b68fb0dbef0460c8f4 Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Wed, 1 Oct 2025 16:44:57 +0200 Subject: [PATCH 1/4] add audio livestream type --- fishjam/_openapi_client/models/room_config_room_type.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fishjam/_openapi_client/models/room_config_room_type.py b/fishjam/_openapi_client/models/room_config_room_type.py index 1eff10c..2465e6b 100644 --- a/fishjam/_openapi_client/models/room_config_room_type.py +++ b/fishjam/_openapi_client/models/room_config_room_type.py @@ -5,6 +5,7 @@ class RoomConfigRoomType(str, Enum): """The use-case of the room. If not provided, this defaults to conference.""" AUDIO_ONLY = "audio_only" + AUDIO_ONLY_LIVESTREAM = "audio_only_livestream" BROADCASTER = "broadcaster" CONFERENCE = "conference" FULL_FEATURE = "full_feature" From d5280d33724bfdad345e6ae9d39e3ca45862b1c4 Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Wed, 1 Oct 2025 16:48:32 +0200 Subject: [PATCH 2/4] add the type to allowed type list --- fishjam/api/_fishjam_client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fishjam/api/_fishjam_client.py b/fishjam/api/_fishjam_client.py index 5791a72..9ce0914 100644 --- a/fishjam/api/_fishjam_client.py +++ b/fishjam/api/_fishjam_client.py @@ -67,7 +67,12 @@ class RoomOptions: webhook_url: str | None = None """URL where Fishjam notifications will be sent""" room_type: Literal[ - "conference", "audio_only", "livestream", "full_feature", "broadcaster" + "conference", + "audio_only", + "livestream", + "full_feature", + "broadcaster", + "audio_only_livestream", ] = "conference" """The use-case of the room. If not provided, this defaults to conference.""" public: bool = False From 343a3188a4118a57f245d2a7d3cb326fd1d40adc Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Wed, 1 Oct 2025 16:59:15 +0200 Subject: [PATCH 3/4] test --- tests/test_room_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_room_api.py b/tests/test_room_api.py index aac2ce9..a7ae31d 100644 --- a/tests/test_room_api.py +++ b/tests/test_room_api.py @@ -144,7 +144,7 @@ def test_valid(self, room_api: FishjamClient): config = RoomConfig( max_peers=None, webhook_url=None, - room_type=RoomConfigRoomType(CONFERENCE), + room_type=RoomConfigRoomType.CONFERENCE, ) assert Room( From 125acbfbc5ed5d16bf7ecac2e92366bade35a6f9 Mon Sep 17 00:00:00 2001 From: Adrian Czerwiec Date: Wed, 1 Oct 2025 17:04:53 +0200 Subject: [PATCH 4/4] change bad request error to not found error --- tests/test_room_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_room_api.py b/tests/test_room_api.py index a7ae31d..0da0c7c 100644 --- a/tests/test_room_api.py +++ b/tests/test_room_api.py @@ -144,7 +144,7 @@ def test_valid(self, room_api: FishjamClient): config = RoomConfig( max_peers=None, webhook_url=None, - room_type=RoomConfigRoomType.CONFERENCE, + room_type=RoomConfigRoomType(CONFERENCE), ) assert Room( @@ -154,7 +154,7 @@ def test_valid(self, room_api: FishjamClient): ) == room_api.get_room(room.id) def test_invalid(self, room_api: FishjamClient): - with pytest.raises(BadRequestError): + with pytest.raises(NotFoundError): room_api.get_room("invalid_id") def test_id_not_found(self, room_api):