GetStream / stream-chat-js

JS / Browser Client - Build Chat with GetStream.io
https://getstream.io/chat/
Other
177 stars 75 forks source link

feat: moderation v2 endpoints under client.moderation #1327

Closed vishalnarkhede closed 1 month ago

vishalnarkhede commented 1 month ago

CLA

Description of the changes, What, Why and How?

Changelog

All the moderation v2 endpoints have been moved to client.moderation umbrella. Basically if you want to use moderation v2 flagging:

await client.moderation.flagUser(...)
await client.moderation.flagMessage(...)
await client.moderation.muteUser(...)
await client.moderation.queryReviewQueue(...)
github-actions[bot] commented 1 month ago

Size Change: +2.81 kB (+0.75%)

Total Size: 380 kB

Filename Size Change
dist/browser.es.js 82.3 kB +661 B (+0.81%)
dist/browser.full-bundle.min.js 48.9 kB +118 B (+0.24%)
dist/browser.js 83.3 kB +684 B (+0.83%)
dist/index.es.js 82.3 kB +662 B (+0.81%)
dist/index.js 83.4 kB +687 B (+0.83%)

compressed-size-action