Skip to content

[MOD-513] Soft/Hard Delete Messages on Ban #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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 @@ -863,6 +863,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