Skip to content
Open
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
5 changes: 4 additions & 1 deletion getstream/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses_json import config as dc_config
from datetime import datetime
from marshmallow import fields
from typing import List, Dict, Optional, Final, NewType
from typing import List, Dict, Optional, Final, NewType, Literal
from getstream.utils import encode_datetime, datetime_from_unix_ns


Expand Down Expand Up @@ -952,6 +952,9 @@ class BanActionRequest(DataClassJsonMixin):
timeout: Optional[int] = dc_field(
default=None, metadata=dc_config(field_name="timeout")
)
delete_messages: Optional[Literal["hard", "delete"]] = dc_field(
default=None, metadata=dc_config(field_name="delete_messages")
)


@dataclass
Expand Down