Commit 2effaba
feat: add Future Channel Bans support [CHA-1696] (#1677)
## Summary
Add support for the Future Channel Bans feature.
### New Parameters
- `ban_from_future_channels` parameter in `channel.banUser()` options
- `remove_future_channels_ban` parameter in `client.unbanUser()` options
### Usage
```typescript
// Ban user from current channel and all future channels created by banner
await channel.banUser('user-id', {
ban_from_future_channels: true,
reason: 'spam',
});
// Remove future channel ban (does NOT remove existing channel bans)
await client.unbanUser('user-id', {
channel_cid: 'messaging:channel-id',
created_by: 'banner-user-id',
remove_future_channels_ban: true,
});
// Query future channel bans
const response = await client.queryFutureChannelBans({
created_by_id: 'banner-user-id',
});
```
## Related PRs
- Backend: GetStream/chat#11390
## Linear
- CHA-1696
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent cb6d2d1 commit 2effaba
3 files changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
1659 | 1660 | | |
1660 | 1661 | | |
1661 | 1662 | | |
| 1663 | + | |
1662 | 1664 | | |
1663 | 1665 | | |
1664 | | - | |
| 1666 | + | |
1665 | 1667 | | |
1666 | 1668 | | |
| 1669 | + | |
1667 | 1670 | | |
1668 | 1671 | | |
1669 | 1672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
1822 | 1824 | | |
1823 | 1825 | | |
1824 | 1826 | | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
1825 | 1842 | | |
1826 | 1843 | | |
1827 | 1844 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
287 | 307 | | |
288 | 308 | | |
289 | 309 | | |
| |||
994 | 1014 | | |
995 | 1015 | | |
996 | 1016 | | |
| 1017 | + | |
997 | 1018 | | |
998 | 1019 | | |
999 | 1020 | | |
| |||
1493 | 1514 | | |
1494 | 1515 | | |
1495 | 1516 | | |
| 1517 | + | |
1496 | 1518 | | |
1497 | 1519 | | |
1498 | 1520 | | |
| |||
0 commit comments