stream-chat 4.17.0__py3-none-any.whl → 4.18.0__py3-none-any.whl
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/__pkg__.py +1 -1
- stream_chat/async_chat/channel.py +4 -0
- stream_chat/base/channel.py +14 -0
- stream_chat/channel.py +4 -0
- {stream_chat-4.17.0.dist-info → stream_chat-4.18.0.dist-info}/METADATA +2 -2
- {stream_chat-4.17.0.dist-info → stream_chat-4.18.0.dist-info}/RECORD +9 -9
- {stream_chat-4.17.0.dist-info → stream_chat-4.18.0.dist-info}/LICENSE +0 -0
- {stream_chat-4.17.0.dist-info → stream_chat-4.18.0.dist-info}/WHEEL +0 -0
- {stream_chat-4.17.0.dist-info → stream_chat-4.18.0.dist-info}/top_level.txt +0 -0
stream_chat/__pkg__.py
CHANGED
|
@@ -134,6 +134,10 @@ class Channel(ChannelInterface):
|
|
|
134
134
|
payload = add_user_id(data, user_id)
|
|
135
135
|
return await self.client.post(f"{self.url}/read", data=payload)
|
|
136
136
|
|
|
137
|
+
async def mark_unread(self, user_id: str, **data: Any) -> StreamResponse:
|
|
138
|
+
payload = add_user_id(data, user_id)
|
|
139
|
+
return await self.client.post(f"{self.url}/unread", data=payload)
|
|
140
|
+
|
|
137
141
|
async def get_replies(self, parent_id: str, **options: Any) -> StreamResponse:
|
|
138
142
|
return await self.client.get(f"messages/{parent_id}/replies", params=options)
|
|
139
143
|
|
stream_chat/base/channel.py
CHANGED
|
@@ -277,6 +277,20 @@ class ChannelInterface(abc.ABC):
|
|
|
277
277
|
"""
|
|
278
278
|
pass
|
|
279
279
|
|
|
280
|
+
@abc.abstractmethod
|
|
281
|
+
def mark_unread(
|
|
282
|
+
self, user_id: str, **data: Any
|
|
283
|
+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
|
|
284
|
+
"""
|
|
285
|
+
Marks channel as unread from a specific message or thread, if thread_id is provided in data
|
|
286
|
+
a thread will be searched, otherwise a message.
|
|
287
|
+
|
|
288
|
+
:param user_id: the user ID for the event
|
|
289
|
+
:param data: additional data, ie {"message_id": last_message_id} or {"thread_id": thread_id}
|
|
290
|
+
:return: The server response
|
|
291
|
+
"""
|
|
292
|
+
pass
|
|
293
|
+
|
|
280
294
|
@abc.abstractmethod
|
|
281
295
|
def get_replies(
|
|
282
296
|
self, parent_id: str, **options: Any
|
stream_chat/channel.py
CHANGED
|
@@ -135,6 +135,10 @@ class Channel(ChannelInterface):
|
|
|
135
135
|
payload = add_user_id(data, user_id)
|
|
136
136
|
return self.client.post(f"{self.url}/read", data=payload)
|
|
137
137
|
|
|
138
|
+
def mark_unread(self, user_id: str, **data: Any) -> StreamResponse:
|
|
139
|
+
payload = add_user_id(data, user_id)
|
|
140
|
+
return self.client.post(f"{self.url}/unread", data=payload)
|
|
141
|
+
|
|
138
142
|
def get_replies(self, parent_id: str, **options: Any) -> StreamResponse:
|
|
139
143
|
return self.client.get(f"messages/{parent_id}/replies", params=options)
|
|
140
144
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stream-chat
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.18.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.18.0
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: Intended Audience :: System Administrators
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
stream_chat/__init__.py,sha256=xYQuC8xcPLJxJnFWzaNaO-sVUc7IJZYe13OIPRaDBEA,116
|
|
2
|
-
stream_chat/__pkg__.py,sha256=
|
|
2
|
+
stream_chat/__pkg__.py,sha256=SPrkEKq-gW8ItAZBhiO_5YFn49Yagr1eiYQUV1o9BNU,206
|
|
3
3
|
stream_chat/campaign.py,sha256=Z7bBo2rGMs02JkA1k9_206J0spcSLecjdhQuRnrc2Eo,2156
|
|
4
|
-
stream_chat/channel.py,sha256=
|
|
4
|
+
stream_chat/channel.py,sha256=FMX7dWHvljwE4P7d0fofL3dN63ihuWLvYHbFLSoIL4M,7952
|
|
5
5
|
stream_chat/client.py,sha256=sQH_Jkg06saa6BLtjXEwcu51GKdxtlqPDMGBL8jQAvY,29003
|
|
6
6
|
stream_chat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
stream_chat/segment.py,sha256=MD1de83rVsaqxcyPy8wTXDudFjxz5Mvr70z4pTkW3P0,2691
|
|
8
8
|
stream_chat/async_chat/__init__.py,sha256=V6x7yDCdXbP3vMuSan6Xm7RE_njZUvflImqOxfKRt4Y,67
|
|
9
9
|
stream_chat/async_chat/campaign.py,sha256=Bc3iHZigxserUycZK4wDuXU0wXVH2G6fIDiYNVYPkeE,1885
|
|
10
|
-
stream_chat/async_chat/channel.py,sha256=
|
|
10
|
+
stream_chat/async_chat/channel.py,sha256=vJRyMV0p19a911sOdRQtkzoJxlwQxRpA7_aWkCfcRlk,8322
|
|
11
11
|
stream_chat/async_chat/client.py,sha256=X7GagduhTgwac8jugISwZxdBAijq14rTzaKWiTS9Q8k,31260
|
|
12
12
|
stream_chat/async_chat/segment.py,sha256=G_YEwW2SXIE7huTW3Zu_rim2XkYcuFNYekLZZGDjFkA,2777
|
|
13
13
|
stream_chat/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
stream_chat/base/campaign.py,sha256=dAVkTYyirEpgyOPn8JyDebNMKeJu02vTuqgmPvdQoWU,1449
|
|
15
|
-
stream_chat/base/channel.py,sha256=
|
|
15
|
+
stream_chat/base/channel.py,sha256=Jwsfuac2aU6Yipc8ven8U77iTGXIyA1b2WqZfIjB0SA,14315
|
|
16
16
|
stream_chat/base/client.py,sha256=Yf-yq51xc_-Aa73Im8OJ4SZl1ONAfzbxktLSl6djgj8,41334
|
|
17
17
|
stream_chat/base/exceptions.py,sha256=eh1qW5d6zjUrlgsHNEBebAr0jVH2UupZ06w8sp2cseI,819
|
|
18
18
|
stream_chat/base/segment.py,sha256=X82DX8Y-cERJ1OvF2tz9iIM4CBNW6tx8HGaTEXBva9I,2364
|
|
@@ -22,8 +22,8 @@ stream_chat/types/campaign.py,sha256=JyAn08oMaEsxPSqmVTdsfJK4xpfErPQV7Xr7zLQm99M
|
|
|
22
22
|
stream_chat/types/rate_limit.py,sha256=v3Z4Ur0yoEdFLiHa1CNABEej2nxPlHQ6Bpy2XxW-TYQ,165
|
|
23
23
|
stream_chat/types/segment.py,sha256=KzOi5N-VzLfj0m4zeZ9U_29ey9dxDtewtcNv9g4Aums,1273
|
|
24
24
|
stream_chat/types/stream_response.py,sha256=jWKPrOU7u6dZ2SyOK53uQCXTstrL1HshO9fA7R6Bt_A,2391
|
|
25
|
-
stream_chat-4.
|
|
26
|
-
stream_chat-4.
|
|
27
|
-
stream_chat-4.
|
|
28
|
-
stream_chat-4.
|
|
29
|
-
stream_chat-4.
|
|
25
|
+
stream_chat-4.18.0.dist-info/LICENSE,sha256=H66SBDuPWSRHzKPEdyjAk3C0THQRcGPfqqve4naQuu0,14424
|
|
26
|
+
stream_chat-4.18.0.dist-info/METADATA,sha256=1qm60bJZzzMkh6v8XnjFeDd1--r4xNspAEBmCPF9A44,7405
|
|
27
|
+
stream_chat-4.18.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
28
|
+
stream_chat-4.18.0.dist-info/top_level.txt,sha256=26uTfg4bWcEaFrVKlzGGgfONH1p5DDe21G07EKfYSvo,12
|
|
29
|
+
stream_chat-4.18.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|