syntax = "proto3";

package user_ban;

option go_package = "user_ban";

import "eventbus/owner.proto";

// UserBanDelete triggers when a user is unbanned.
message UserBanDelete {
  option (eventbus.owner.ldap_group) = "team-identity";
  // ID of the that's getting unbanned
  string user_id = 1;
  // Amount of TOS count to decrement.
  // Non-zero value typically means the original suspension was appealed.
  int32 tos_decrement_count = 2;
  // Amount of DMCA count to decrement.
  // Non-zero value typically means a DMCA counter claim notice was filed or
  // original DMCA has been retracted.
  int32 dmca_decrement_count = 3;
  // User who issued the unban. Empty if suspension expired naturally
  string from_user_id = 4;
}
