Cockatrice/libcockatrice_protocol/libcockatrice/protocol/pb/serverinfo_user_alt.proto
Lukas Brübach b7f04bbb6e [Alts] Server-side search controls, IP counts, adjustable window
Plumbs the match-type chips through to the server: include_email/include_clientid/include_ip skip disabled identifier types in both matching and frontier expansion, so excluded types (e.g. throwaway domains) never enter the graph at any depth. Session lookback becomes adjustable (session_months, clamped 1-24, default 6). Each alt row carries ip_count, the distinct recent session IP count shown in a new IPs column. All proto additions are optional with old defaults, so old clients/servers interoperate.
2026-11-02 23:58:18 +01:00

21 lines
1.2 KiB
Protocol Buffer

syntax = "proto2";
/**
* An account that shares an IP address, client id or eMail address with
* the account being investigated. Used by the moderation "Get User Alts" tool.
*/
message ServerInfo_UserAlt {
optional string user_name = 1; // account name
optional string email = 2; // registration eMail
optional string clientid = 3; // client id
optional uint64 registration_time = 4; // account registration, epoch seconds
optional uint64 last_login = 5; // last known login, epoch seconds; 0 = unknown
optional uint32 warn_count = 6; // number of warnings on record
optional uint32 ban_count = 7; // number of bans on record
optional bool is_active = 8; // account is not deactivated/banned
optional string match_reason = 9; // why flagged, e.g. "email", "clientid:abc", "ip:1.2.3.4"; empty = seed/legacy
optional uint32 depth = 10; // BFS distance from investigated account; 1 = direct, 2+ = alt-of-alt
optional uint32 shared_count =
11; // distinct users sharing the matched identifier; high values suggest VPN/shared network
optional uint32 ip_count = 12; // distinct recent session IPs of this account in the search window
}