stream-chat 4.15.0__tar.gz → 4.17.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stream-chat-4.15.0/stream_chat.egg-info → stream-chat-4.17.0}/PKG-INFO +2 -2
- {stream-chat-4.15.0 → stream-chat-4.17.0}/setup.py +1 -1
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/__pkg__.py +1 -1
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/async_chat/client.py +17 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/base/client.py +18 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/client.py +12 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0/stream_chat.egg-info}/PKG-INFO +2 -2
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat.egg-info/requires.txt +1 -1
- {stream-chat-4.15.0 → stream-chat-4.17.0}/LICENSE +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/MANIFEST.in +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/README.md +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/pyproject.toml +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/setup.cfg +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/__init__.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/async_chat/__init__.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/async_chat/campaign.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/async_chat/channel.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/async_chat/segment.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/base/__init__.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/base/campaign.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/base/channel.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/base/exceptions.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/base/segment.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/campaign.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/channel.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/py.typed +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/segment.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/types/__init__.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/types/base.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/types/campaign.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/types/rate_limit.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/types/segment.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat/types/stream_response.py +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat.egg-info/SOURCES.txt +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat.egg-info/dependency_links.txt +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat.egg-info/not-zip-safe +0 -0
- {stream-chat-4.15.0 → stream-chat-4.17.0}/stream_chat.egg-info/top_level.txt +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stream-chat
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.17.0
|
|
4
4
|
Summary: Client for Stream Chat.
|
|
5
5
|
Home-page: https://github.com/GetStream/stream-chat-python
|
|
6
6
|
Author: Tommaso Barbugli
|
|
7
7
|
Author-email: support@getstream.io
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/GetStream/stream-chat-python/issues
|
|
9
9
|
Project-URL: Documentation, https://getstream.io/activity-feeds/docs/python/?language=python
|
|
10
|
-
Project-URL: Release Notes, https://github.com/GetStream/stream-chat-python/releases/tag/v4.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/GetStream/stream-chat-python/releases/tag/v4.17.0
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: Intended Audience :: System Administrators
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
@@ -333,9 +333,26 @@ class StreamChatAsync(StreamChatInterface, AsyncContextManager):
|
|
|
333
333
|
async def delete_message(self, message_id: str, **options: Any) -> StreamResponse:
|
|
334
334
|
return await self.delete(f"messages/{message_id}", options)
|
|
335
335
|
|
|
336
|
+
async def undelete_message(self, message_id: str, user_id: str) -> StreamResponse:
|
|
337
|
+
return await self.post(
|
|
338
|
+
f"messages/{message_id}/undelete", data={"undeleted_by": user_id}
|
|
339
|
+
)
|
|
340
|
+
|
|
336
341
|
async def get_message(self, message_id: str, **options: Any) -> StreamResponse:
|
|
337
342
|
return await self.get(f"messages/{message_id}", options)
|
|
338
343
|
|
|
344
|
+
async def query_message_history(
|
|
345
|
+
self, filter: Dict = None, sort: List[Dict] = None, **options: Any
|
|
346
|
+
) -> StreamResponse:
|
|
347
|
+
params = options.copy()
|
|
348
|
+
params.update(
|
|
349
|
+
{
|
|
350
|
+
"filter": filter,
|
|
351
|
+
"sort": self.normalize_sort(sort),
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
return await self.post("messages/history", data=params)
|
|
355
|
+
|
|
339
356
|
async def query_users(
|
|
340
357
|
self, filter_conditions: Dict, sort: List[Dict] = None, **options: Any
|
|
341
358
|
) -> StreamResponse:
|
|
@@ -515,6 +515,15 @@ class StreamChatInterface(abc.ABC):
|
|
|
515
515
|
"""
|
|
516
516
|
pass
|
|
517
517
|
|
|
518
|
+
@abc.abstractmethod
|
|
519
|
+
def undelete_message(
|
|
520
|
+
self, message_id: str, user_id: str
|
|
521
|
+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
|
|
522
|
+
"""
|
|
523
|
+
Undeletes a message.
|
|
524
|
+
"""
|
|
525
|
+
pass
|
|
526
|
+
|
|
518
527
|
@abc.abstractmethod
|
|
519
528
|
def get_message(
|
|
520
529
|
self, message_id: str, **options: Any
|
|
@@ -525,6 +534,15 @@ class StreamChatInterface(abc.ABC):
|
|
|
525
534
|
"""
|
|
526
535
|
pass
|
|
527
536
|
|
|
537
|
+
@abc.abstractmethod
|
|
538
|
+
def query_message_history(
|
|
539
|
+
self, filter: Dict = None, sort: List[Dict] = None, **options: Any
|
|
540
|
+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
|
|
541
|
+
"""
|
|
542
|
+
Queries message history.
|
|
543
|
+
"""
|
|
544
|
+
pass
|
|
545
|
+
|
|
528
546
|
@abc.abstractmethod
|
|
529
547
|
def query_users(
|
|
530
548
|
self, filter_conditions: Dict, sort: List[Dict] = None, **options: Any
|
|
@@ -322,9 +322,21 @@ class StreamChat(StreamChatInterface):
|
|
|
322
322
|
def delete_message(self, message_id: str, **options: Any) -> StreamResponse:
|
|
323
323
|
return self.delete(f"messages/{message_id}", options)
|
|
324
324
|
|
|
325
|
+
def undelete_message(self, message_id: str, user_id: str) -> StreamResponse:
|
|
326
|
+
return self.post(
|
|
327
|
+
f"messages/{message_id}/undelete", data={"undeleted_by": user_id}
|
|
328
|
+
)
|
|
329
|
+
|
|
325
330
|
def get_message(self, message_id: str, **options: Any) -> StreamResponse:
|
|
326
331
|
return self.get(f"messages/{message_id}", options)
|
|
327
332
|
|
|
333
|
+
def query_message_history(
|
|
334
|
+
self, filter: Dict = None, sort: List[Dict] = None, **options: Any
|
|
335
|
+
) -> StreamResponse:
|
|
336
|
+
params = options.copy()
|
|
337
|
+
params.update({"filter": filter, "sort": self.normalize_sort(sort)})
|
|
338
|
+
return self.post("messages/history", data=params)
|
|
339
|
+
|
|
328
340
|
def query_users(
|
|
329
341
|
self, filter_conditions: Dict, sort: List[Dict] = None, **options: Any
|
|
330
342
|
) -> StreamResponse:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stream-chat
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.17.0
|
|
4
4
|
Summary: Client for Stream Chat.
|
|
5
5
|
Home-page: https://github.com/GetStream/stream-chat-python
|
|
6
6
|
Author: Tommaso Barbugli
|
|
7
7
|
Author-email: support@getstream.io
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/GetStream/stream-chat-python/issues
|
|
9
9
|
Project-URL: Documentation, https://getstream.io/activity-feeds/docs/python/?language=python
|
|
10
|
-
Project-URL: Release Notes, https://github.com/GetStream/stream-chat-python/releases/tag/v4.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/GetStream/stream-chat-python/releases/tag/v4.17.0
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: Intended Audience :: System Administrators
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|