Cockatrice/libcockatrice_protocol/libcockatrice/protocol/pb/serverinfo_user_session.proto
Lukas Brübach 2b63bc46a7 [Protocol] Add moderation investigation commands
Adds the protocol layer for the moderation investigation suite:
- Command_GetUserSessions/GetUserAlts/GetModeratorLastLogins/ResetUserPassword/RemoveUserAvatar (1013-1017)
- Response extensions 1215-1219 with ServerInfo messages for sessions, alts, and staff logins
- last_login on Response_ReportUserInfo and warning_il on Response_WarnList

Took 2 minutes
2026-08-21 10:43:15 +02:00

14 lines
648 B
Protocol Buffer

syntax = "proto2";
/**
* A single login session of a user on the server, as stored in the
* sessions table. Used by the moderation "Get User Sessions" tool.
*/
message ServerInfo_UserSession {
optional string user_name = 1; // account that was logged in
optional string ip_address = 2; // IP address used for the session
optional string clientid = 3; // client id used for the session
optional uint64 start_time = 4; // session start, epoch seconds
optional uint64 end_time = 5; // session end, epoch seconds; 0 = still active
optional string connection_type = 6; // "tcp" or "websocket"
}