diff --git a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx
index 55a3fefd..c52d5a19 100644
--- a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx
+++ b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx
@@ -45,6 +45,21 @@ call.block_user(user_id='sara')
call.unblock_user(user_id='sara')
```
+
+
+
+```go
+// Block user
+call.BlockUser(ctx, &BlockUserRequest{
+ UserID: "sara",
+})
+
+// Unblock user
+call.UnblockUser(ctx, &UnblockUserRequest{
+ UserID: "sara",
+})
+```
+
@@ -101,6 +116,20 @@ call.update(
)
```
+
+
+
+```go
+call.Update(ctx, &UpdateCallRequest{
+ SettingsOverride: &CallSettingsRequest{
+ Screensharing: &ScreensharingSettingsRequest{
+ Enabled: PtrTo(true),
+ AccessRequestEnabled: PtrTo(true),
+ },
+ },
+})
+```
+
@@ -152,6 +181,19 @@ call.mute_users(
)
```
+
+
+
+
+```go
+// You can specify which kind of stream(s) to mute
+call.MuteUsers(ctx, &MuteUsersRequest{
+ MuteAllUsers: PtrTo(true),
+ Audio: PtrTo(true),
+ MutedByID: PtrTo("john"),
+})
+```
+
@@ -200,6 +242,22 @@ call.mute_users(
)
```
+
+
+
+
+```go
+call.MuteUsers(ctx, &MuteUsersRequest{
+ UserIDs: &[]string{alice.id,bob.id},
+ Audio: PtrTo(true),
+ Video: PtrTo(true),
+ Screenshare: PtrTo(true),
+ ScreenshareAudio: PtrTo(true),
+ MutedByID: user_id,
+})
+
+```
+
@@ -257,6 +315,16 @@ call.update_user_permissions(
)
```
+
+
+
+```go
+call.UpdateUserPermissions(ctx, &UpdateUserPermissionsRequest{
+ UserID: "sara",
+ GrantPermissions: &[]string{SEND_AUDIO.String()},
+})
+```
+
@@ -301,6 +369,16 @@ call.update_user_permissions(
)
```
+
+
+
+```go
+call.UpdateUserPermissions(ctx, &UpdateUserPermissionsRequest{
+ UserID: "sara",
+ RevokePermissions: &[]string{SEND_AUDIO.String()},
+})
+```
+
@@ -503,6 +581,28 @@ response = client.get_blocked_users(user_id=alice.id)
client.unblock_users(blocked_user_id=bob.id, user_id=alice.id)
```
+
+
+
+```go
+// alice blocks bob
+client.BlockUsers(ctx, &BlockUsersRequest{
+ BlockedUserID: "bob.ID",
+ UserID: &alice.ID,
+})
+
+// list blocked users by alice
+response, err := client.GetBlockedUsers(ctx, &GetBlockedUsersRequest{
+ UserID: &alice.ID,
+})
+
+// alice unblocks bob
+client.UnblockUsers(ctx, &UnblockUsersRequest{
+ BlockedUserID: bob.ID,
+ UserID: &alice.ID,
+})
+```
+