stream-chat 4.16.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.
Files changed (37) hide show
  1. {stream-chat-4.16.0/stream_chat.egg-info → stream-chat-4.17.0}/PKG-INFO +2 -2
  2. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/__pkg__.py +1 -1
  3. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/async_chat/client.py +5 -0
  4. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/base/client.py +9 -0
  5. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/client.py +5 -0
  6. {stream-chat-4.16.0 → stream-chat-4.17.0/stream_chat.egg-info}/PKG-INFO +2 -2
  7. {stream-chat-4.16.0 → stream-chat-4.17.0}/LICENSE +0 -0
  8. {stream-chat-4.16.0 → stream-chat-4.17.0}/MANIFEST.in +0 -0
  9. {stream-chat-4.16.0 → stream-chat-4.17.0}/README.md +0 -0
  10. {stream-chat-4.16.0 → stream-chat-4.17.0}/pyproject.toml +0 -0
  11. {stream-chat-4.16.0 → stream-chat-4.17.0}/setup.cfg +0 -0
  12. {stream-chat-4.16.0 → stream-chat-4.17.0}/setup.py +0 -0
  13. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/__init__.py +0 -0
  14. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/async_chat/__init__.py +0 -0
  15. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/async_chat/campaign.py +0 -0
  16. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/async_chat/channel.py +0 -0
  17. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/async_chat/segment.py +0 -0
  18. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/base/__init__.py +0 -0
  19. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/base/campaign.py +0 -0
  20. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/base/channel.py +0 -0
  21. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/base/exceptions.py +0 -0
  22. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/base/segment.py +0 -0
  23. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/campaign.py +0 -0
  24. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/channel.py +0 -0
  25. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/py.typed +0 -0
  26. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/segment.py +0 -0
  27. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/types/__init__.py +0 -0
  28. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/types/base.py +0 -0
  29. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/types/campaign.py +0 -0
  30. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/types/rate_limit.py +0 -0
  31. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/types/segment.py +0 -0
  32. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat/types/stream_response.py +0 -0
  33. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat.egg-info/SOURCES.txt +0 -0
  34. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat.egg-info/dependency_links.txt +0 -0
  35. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat.egg-info/not-zip-safe +0 -0
  36. {stream-chat-4.16.0 → stream-chat-4.17.0}/stream_chat.egg-info/requires.txt +0 -0
  37. {stream-chat-4.16.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.16.0
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.16.0
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
@@ -1,6 +1,6 @@
1
1
  __author__ = "Tommaso Barbugli"
2
2
  __copyright__ = "Copyright 2019-2022, Stream.io, Inc"
3
- __version__ = "4.16.0"
3
+ __version__ = "4.17.0"
4
4
  __maintainer__ = "Tommaso Barbugli"
5
5
  __email__ = "support@getstream.io"
6
6
  __status__ = "Production"
@@ -333,6 +333,11 @@ 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
 
@@ -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
@@ -322,6 +322,11 @@ 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
 
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stream-chat
3
- Version: 4.16.0
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.16.0
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