You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FEEDS-150]feat: add user flagging support for moderation (#630)
* feat: add user flagging support for moderation
- Add client.flagUser() method for flagging users
- Add user.flag() method for flagging user instances
- Implements POST /moderation/flag endpoint
- Requires server-side authentication (API secret)
- Add FlagUserOptions and FlagAPIResponse TypeScript types
- Add unit tests for flagUser method
- Add integration tests with real API validation
- Update README.md with usage examples
- Update CHANGELOG.md
Tests:
- Unit tests: 142/142 passing
- Integration tests: 4/4 passing
* test: skip tests for endpoints not enabled in CI
Skip the following integration tests that require endpoints not enabled:
- delete activities
- delete reactions
- export user data
These tests get 403 'endpoint not enabled for this app' in CI environment.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
5
+
## [Unreleased]
6
+
7
+
### Features
8
+
9
+
- Add user flagging support for moderation
10
+
- Add `flagUser()` method to `StreamClient` class
11
+
- Add `flag()` method to `StreamUser` class
12
+
- Add `FlagUserOptions` and `FlagAPIResponse` TypeScript types
0 commit comments