syntax = "proto3";

package automod_chat_message_caught;

option go_package = "automod_chat_message_caught";

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

// AutomodChatMessageCaughtUpdate triggers when a message is updated after caught by AutoMod.
message AutomodChatMessageCaughtUpdate {
  option (eventbus.owner.ldap_group) = "team-safety";
  // The id of the message.
  string message_id = 1;
  // The message that is caught by AutoMod.
  AutomodCaughtMessageContent message = 2;
  // The message sender metadata.
  AutomodCaughtMessageSender sender = 3;
  // The time at which the message was saved.
  google.protobuf.Timestamp sent_at = 4;
  // The number of bits attached to this message.
  int64 bits_amount = 5;
  // The id of the channel where the message is sent to.
  string user_id = 6;
  // The status of the message.
  AutomodCaughtMessageStatus status = 7;
  // The level fo severity the message was caught at.
  int64 level = 8;
  // The category of the message (eg. aggressive, identity).
  AutomodCaughtMessageCategory category = 9;
}
