Skip to content

Commit 5520412

Browse files
committed
feat: remove filterTags from channel batch update API
1 parent 1dc90b5 commit 5520412

3 files changed

Lines changed: 0 additions & 72 deletions

File tree

stream_chat/async_chat/channel_batch_updater.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -207,36 +207,3 @@ async def update_data(
207207
}
208208
return await self.client.update_channels_batch(options)
209209

210-
async def add_filter_tags(
211-
self, filter: ChannelsBatchFilters, tags: List[str]
212-
) -> StreamResponse:
213-
"""
214-
Adds filter tags to channels matching the filter.
215-
216-
:param filter: The filter to match channels.
217-
:param tags: List of filter tags to add.
218-
:return: StreamResponse containing task_id.
219-
"""
220-
options: ChannelsBatchOptions = {
221-
"operation": "addFilterTags",
222-
"filter": filter,
223-
"filter_tags_update": tags,
224-
}
225-
return await self.client.update_channels_batch(options)
226-
227-
async def remove_filter_tags(
228-
self, filter: ChannelsBatchFilters, tags: List[str]
229-
) -> StreamResponse:
230-
"""
231-
Removes filter tags from channels matching the filter.
232-
233-
:param filter: The filter to match channels.
234-
:param tags: List of filter tags to remove.
235-
:return: StreamResponse containing task_id.
236-
"""
237-
options: ChannelsBatchOptions = {
238-
"operation": "removeFilterTags",
239-
"filter": filter,
240-
"filter_tags_update": tags,
241-
}
242-
return await self.client.update_channels_batch(options)

stream_chat/channel_batch_updater.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -207,36 +207,3 @@ def update_data(
207207
}
208208
return self.client.update_channels_batch(options)
209209

210-
def add_filter_tags(
211-
self, filter: ChannelsBatchFilters, tags: List[str]
212-
) -> StreamResponse:
213-
"""
214-
Adds filter tags to channels matching the filter.
215-
216-
:param filter: The filter to match channels.
217-
:param tags: List of filter tags to add.
218-
:return: StreamResponse containing task_id.
219-
"""
220-
options: ChannelsBatchOptions = {
221-
"operation": "addFilterTags",
222-
"filter": filter,
223-
"filter_tags_update": tags,
224-
}
225-
return self.client.update_channels_batch(options)
226-
227-
def remove_filter_tags(
228-
self, filter: ChannelsBatchFilters, tags: List[str]
229-
) -> StreamResponse:
230-
"""
231-
Removes filter tags from channels matching the filter.
232-
233-
:param filter: The filter to match channels.
234-
:param tags: List of filter tags to remove.
235-
:return: StreamResponse containing task_id.
236-
"""
237-
options: ChannelsBatchOptions = {
238-
"operation": "removeFilterTags",
239-
"filter": filter,
240-
"filter_tags_update": tags,
241-
}
242-
return self.client.update_channels_batch(options)

stream_chat/types/channel_batch.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
"archive",
1919
"unarchive",
2020
"updateData",
21-
"addFilterTags",
22-
"removeFilterTags",
2321
]
2422

2523

@@ -66,12 +64,10 @@ class ChannelsBatchFilters(TypedDict, total=False):
6664
Parameters:
6765
cids: Filter by channel CIDs (can be a dict with operators like $in).
6866
types: Filter by channel types (can be a dict with operators like $in).
69-
filter_tags: Filter by filter tags (can be a dict with operators like $in).
7067
"""
7168

7269
cids: Optional[Any]
7370
types: Optional[Any]
74-
filter_tags: Optional[Any]
7571

7672

7773
class ChannelsBatchOptions(TypedDict, total=False):
@@ -83,11 +79,9 @@ class ChannelsBatchOptions(TypedDict, total=False):
8379
filter: The filter to match channels (required).
8480
members: List of members for member-related operations (optional).
8581
data: Channel data updates for updateData operation (optional).
86-
filter_tags_update: List of filter tags for filter tag operations (optional).
8782
"""
8883

8984
operation: ChannelBatchOperation
9085
filter: ChannelsBatchFilters
9186
members: Optional[List[ChannelBatchMemberRequest]]
9287
data: Optional[ChannelDataUpdate]
93-
filter_tags_update: Optional[List[str]]

0 commit comments

Comments
 (0)