diff --git a/fishjam/events/_protos/fishjam/__init__.py b/fishjam/events/_protos/fishjam/__init__.py index 480efa8..3d97433 100644 --- a/fishjam/events/_protos/fishjam/__init__.py +++ b/fishjam/events/_protos/fishjam/__init__.py @@ -2,7 +2,7 @@ # sources: fishjam/agent_notifications.proto, fishjam/server_notifications.proto # plugin: python-betterproto # This file has been @generated - +import warnings from dataclasses import dataclass import betterproto @@ -197,6 +197,23 @@ class ServerMessage(betterproto.Message): viewer_disconnected: "ServerMessageViewerDisconnected" = betterproto.message_field( 25, group="content" ) + streamer_connected: "ServerMessageStreamerConnected" = betterproto.message_field( + 26, group="content" + ) + streamer_disconnected: "ServerMessageStreamerDisconnected" = ( + betterproto.message_field(27, group="content") + ) + + def __post_init__(self) -> None: + super().__post_init__() + if self.is_set("stream_connected"): + warnings.warn( + "ServerMessage.stream_connected is deprecated", DeprecationWarning + ) + if self.is_set("stream_disconnected"): + warnings.warn( + "ServerMessage.stream_disconnected is deprecated", DeprecationWarning + ) @dataclass(eq=False, repr=False) @@ -394,3 +411,15 @@ class ServerMessageViewerDisconnected(betterproto.Message): stream_id: str = betterproto.string_field(1) viewer_id: str = betterproto.string_field(2) + + +@dataclass(eq=False, repr=False) +class ServerMessageStreamerConnected(betterproto.Message): + stream_id: str = betterproto.string_field(1) + streamer_id: str = betterproto.string_field(2) + + +@dataclass(eq=False, repr=False) +class ServerMessageStreamerDisconnected(betterproto.Message): + stream_id: str = betterproto.string_field(1) + streamer_id: str = betterproto.string_field(2) diff --git a/protos b/protos index 20e4f49..2aaaf19 160000 --- a/protos +++ b/protos @@ -1 +1 @@ -Subproject commit 20e4f4903dcb92c4baf79990746bbc1cebda73d7 +Subproject commit 2aaaf19da7bc4a86c4ef491152bea06e66f3c6dd diff --git a/pyproject.toml b/pyproject.toml index cf25fee..d2f4685 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "fishjam-server-sdk" -version = "0.21.1" +version = "0.22.0" description = "Python server SDK for the Fishjam" authors = [{ name = "Fishjam Team", email = "contact@fishjam.io" }] requires-python = ">=3.11" diff --git a/uv.lock b/uv.lock index a6d5cc5..6d422af 100644 --- a/uv.lock +++ b/uv.lock @@ -289,7 +289,7 @@ wheels = [ [[package]] name = "fishjam-server-sdk" -version = "0.21.1" +version = "0.22.0" source = { editable = "." } dependencies = [ { name = "aenum" },