Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions fishjam/_fishjam_openapi_client/models/peer_options_vapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ class PeerOptionsVapi:
Attributes:
api_key (str): VAPI API key
call_id (str): VAPI call ID
auto_close (bool | Unset): Ends the VAPI call when the last participant leaves the room Default: False.
subscribe_mode (SubscribeMode | Unset): Configuration of peer's subscribing policy
"""

api_key: str
call_id: str
auto_close: bool | Unset = False
subscribe_mode: SubscribeMode | Unset = UNSET

def to_dict(self) -> dict[str, Any]:
api_key = self.api_key

call_id = self.call_id

auto_close = self.auto_close

subscribe_mode: str | Unset = UNSET
if not isinstance(self.subscribe_mode, Unset):
subscribe_mode = self.subscribe_mode.value
Expand All @@ -40,6 +44,8 @@ def to_dict(self) -> dict[str, Any]:
"apiKey": api_key,
"callId": call_id,
})
if auto_close is not UNSET:
field_dict["autoClose"] = auto_close
if subscribe_mode is not UNSET:
field_dict["subscribeMode"] = subscribe_mode

Expand All @@ -52,6 +58,8 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:

call_id = d.pop("callId")

auto_close = d.pop("autoClose", UNSET)

_subscribe_mode = d.pop("subscribeMode", UNSET)
subscribe_mode: SubscribeMode | Unset
if isinstance(_subscribe_mode, Unset):
Expand All @@ -62,6 +70,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
peer_options_vapi = cls(
api_key=api_key,
call_id=call_id,
auto_close=auto_close,
subscribe_mode=subscribe_mode,
)

Expand Down
2 changes: 1 addition & 1 deletion protos
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "fishjam-server-sdk"
version = "0.30.0"
version = "0.30.2"
description = "Python server SDK for the Fishjam"
authors = [{ name = "Fishjam Team", email = "contact@fishjam.io" }]
requires-python = ">=3.10"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading