syntax = "proto3";

package host_moderation_action;

option go_package = "host_moderation_action";

import "eventbus/owner.proto";
import "google/protobuf/timestamp.proto";

// HostModerationActionCreate is triggered when a hosting session has been initiated.
message HostModerationActionCreate {
  option (eventbus.owner.ldap_group) = "team-communications";
  // The id of the channel that is hosting.
  string user_id = 1;
  // The moderator who initiated the hosting.
  string moderator_id = 2;
  // The id of the channel that is being hosted.
  string target_user_id = 5;
  // The viewer count.
  int64 viewer_count = 6;
  // Whether the viewer count should be shown.
  bool viewer_count_revealed = 7;
  // Whether the channel was hosted after being raided.
  bool hosted_after_raiding = 8;
  // Whether the channel was auto hosted.
  bool auto_hosted = 9;
  // The time at which hosting was initiated.
  google.protobuf.Timestamp started_at = 10;
}
