Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ upload: dist register

pb_fetch:
wget -nv --show-progress -N -P ./protobufs/ -i protobuf_list.txt || exit 0
mv protobufs/friends.proto protobufs/steammessages_webui_friends.steamclient.proto
mv protobufs/friends_mobile.proto protobufs/steammessages_webui_friends.steamclient.proto
sed -i 's/CCommunity_ClanAnnouncementInfo/xCCommunity_ClanAnnouncementInfo/' protobufs/steammessages_webui_friends.steamclient.proto
sed -i 's/CMsgClientSecret/xCMsgClientSecret/' protobufs/steammessages_webui_friends.steamclient.proto
sed -i '1s/^/option py_generic_services = true\;\n/' protobufs/steammessages_webui_friends.steamclient.proto
Expand Down
3 changes: 2 additions & 1 deletion protobuf_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ https://raw.githubusercontent.com/SteamDatabase/SteamTracking/master/Protobufs/s
https://raw.githubusercontent.com/SteamDatabase/SteamTracking/master/Protobufs/steammessages_unified_test.steamclient.proto
https://raw.githubusercontent.com/SteamDatabase/SteamTracking/master/Protobufs/steammessages_useraccount.steamclient.proto
https://raw.githubusercontent.com/SteamDatabase/SteamTracking/master/Protobufs/steammessages_video.steamclient.proto
https://raw.githubusercontent.com/SteamDatabase/Protobufs/master/webui/friends.proto
https://raw.githubusercontent.com/SteamDatabase/SteamTracking/master/Protobufs/enums.proto
https://raw.githubusercontent.com/SteamDatabase/Protobufs/master/webui/friends_mobile.proto
102 changes: 102 additions & 0 deletions protobufs/enums.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
syntax = "proto2";
import "steammessages_base.proto";

option optimize_for = SPEED;
option py_generic_services = true;
option (force_php_generation) = true;

enum EPublishedFileQueryType {
k_PublishedFileQueryType_RankedByVote = 0;
k_PublishedFileQueryType_RankedByPublicationDate = 1;
k_PublishedFileQueryType_AcceptedForGameRankedByAcceptanceDate = 2;
k_PublishedFileQueryType_RankedByTrend = 3;
k_PublishedFileQueryType_FavoritedByFriendsRankedByPublicationDate = 4;
k_PublishedFileQueryType_CreatedByFriendsRankedByPublicationDate = 5;
k_PublishedFileQueryType_RankedByNumTimesReported = 6;
k_PublishedFileQueryType_CreatedByFollowedUsersRankedByPublicationDate = 7;
k_PublishedFileQueryType_NotYetRated = 8;
k_PublishedFileQueryType_RankedByTotalUniqueSubscriptions = 9;
k_PublishedFileQueryType_RankedByTotalVotesAsc = 10;
k_PublishedFileQueryType_RankedByVotesUp = 11;
k_PublishedFileQueryType_RankedByTextSearch = 12;
k_PublishedFileQueryType_RankedByPlaytimeTrend = 13;
k_PublishedFileQueryType_RankedByTotalPlaytime = 14;
k_PublishedFileQueryType_RankedByAveragePlaytimeTrend = 15;
k_PublishedFileQueryType_RankedByLifetimeAveragePlaytime = 16;
k_PublishedFileQueryType_RankedByPlaytimeSessionsTrend = 17;
k_PublishedFileQueryType_RankedByLifetimePlaytimeSessions = 18;
k_PublishedFileQueryType_RankedByInappropriateContentRating = 19;
}

enum EPublishedFileInappropriateProvider {
k_EPublishedFileInappropriateProvider_Invalid = 0;
k_EPublishedFileInappropriateProvider_Google = 1;
k_EPublishedFileInappropriateProvider_Amazon = 2;
}

enum EPublishedFileInappropriateResult {
k_EPublishedFileInappropriateResult_NotScanned = 0;
k_EPublishedFileInappropriateResult_VeryUnlikely = 1;
k_EPublishedFileInappropriateResult_Unlikely = 30;
k_EPublishedFileInappropriateResult_Possible = 50;
k_EPublishedFileInappropriateResult_Likely = 75;
k_EPublishedFileInappropriateResult_VeryLikely = 100;
}

enum EPersonaStateFlag {
k_EPersonaStateFlag_HasRichPresence = 1;
k_EPersonaStateFlag_InJoinableGame = 2;
k_EPersonaStateFlag_Golden = 4;
k_EPersonaStateFlag_RemotePlayTogether = 8;
k_EPersonaStateFlag_ClientTypeWeb = 256;
k_EPersonaStateFlag_ClientTypeMobile = 512;
k_EPersonaStateFlag_ClientTypeTenfoot = 1024;
k_EPersonaStateFlag_ClientTypeVR = 2048;
k_EPersonaStateFlag_LaunchTypeGamepad = 4096;
k_EPersonaStateFlag_LaunchTypeCompatTool = 8192;
}

enum EContentCheckProvider {
k_EContentCheckProvider_Invalid = 0;
k_EContentCheckProvider_Google = 1;
k_EContentCheckProvider_Amazon = 2;
k_EContentCheckProvider_Local = 3;
}

enum EBanContentCheckResult {
k_EBanContentCheckResult_NotScanned = 0;
k_EBanContentCheckResult_Reset = 1;
k_EBanContentCheckResult_NeedsChecking = 2;
k_EBanContentCheckResult_VeryUnlikely = 5;
k_EBanContentCheckResult_Unlikely = 30;
k_EBanContentCheckResult_Possible = 50;
k_EBanContentCheckResult_Likely = 75;
k_EBanContentCheckResult_VeryLikely = 100;
}

enum EProfileCustomizationType {
k_EProfileCustomizationTypeInvalid = 0;
k_EProfileCustomizationTypeRareAchievementShowcase = 1;
k_EProfileCustomizationTypeGameCollector = 2;
k_EProfileCustomizationTypeItemShowcase = 3;
k_EProfileCustomizationTypeTradeShowcase = 4;
k_EProfileCustomizationTypeBadges = 5;
k_EProfileCustomizationTypeFavoriteGame = 6;
k_EProfileCustomizationTypeScreenshotShowcase = 7;
k_EProfileCustomizationTypeCustomText = 8;
k_EProfileCustomizationTypeFavoriteGroup = 9;
k_EProfileCustomizationTypeRecommendation = 10;
k_EProfileCustomizationTypeWorkshopItem = 11;
k_EProfileCustomizationTypeMyWorkshop = 12;
k_EProfileCustomizationTypeArtworkShowcase = 13;
k_EProfileCustomizationTypeVideoShowcase = 14;
k_EProfileCustomizationTypeGuides = 15;
k_EProfileCustomizationTypeMyGuides = 16;
k_EProfileCustomizationTypeAchievements = 17;
k_EProfileCustomizationTypeGreenlight = 18;
k_EProfileCustomizationTypeMyGreenlight = 19;
k_EProfileCustomizationTypeSalien = 20;
k_EProfileCustomizationTypeLoyaltyRewardReactions = 21;
k_EProfileCustomizationTypeSingleArtworkShowcase = 22;
k_EProfileCustomizationTypeAchievementsCompletionist = 23;
}
14 changes: 14 additions & 0 deletions protobufs/steammessages_base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ message CCDDBAppDetailCommon {
optional string friendly_name = 10;
optional string propagation = 11;
optional bool has_adult_content = 12;
optional bool is_visible_in_steam_china = 13;
}

message CMsgAppRights {
Expand Down Expand Up @@ -247,6 +248,8 @@ message CClanEventData {
optional uint32 rtime32_last_modified = 24;
optional fixed64 news_post_gid = 25;
optional uint32 rtime_mod_reviewed = 26;
optional uint32 featured_app_tagid = 27;
repeated uint32 referenced_appids = 28;
}

message CBilling_Address {
Expand All @@ -261,3 +264,14 @@ message CBilling_Address {
optional int32 zip_plus4 = 9;
optional string phone = 10;
}

message CPackageReservationStatus {
optional uint32 packageid = 1;
optional int32 reservation_state = 2;
optional int32 queue_position = 3;
optional int32 total_queue_size = 4;
optional string reservation_country_code = 5;
optional bool expired = 6;
optional uint32 time_expires = 7;
optional uint32 time_reserved = 8;
}
3 changes: 2 additions & 1 deletion protobufs/steammessages_broadcast.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ message CBroadcast_BeginBroadcastSession_Request {
optional bool thumbnail_upload = 7;
optional string client_beta = 8;
optional uint32 sysid = 9;
optional bool allow_webrtc = 10;
}

message CBroadcast_BeginBroadcastSession_Response {
Expand Down Expand Up @@ -80,7 +81,6 @@ message CBroadcast_WatchBroadcast_Request {
optional fixed64 steamid = 1 [(description) = "broadcaster steamID."];
optional fixed64 existing_broadcast_id = 2 [(description) = "broadcast session ID (optional, rejoin if specified)."];
optional fixed64 viewer_token = 3 [(description) = "viewer token received from last WatchRequest call, from browser storage."];
optional uint32 client_ip = 4;
optional uint32 client_cell = 5;
optional .EBroadcastWatchLocation watch_location = 6 [default = k_EBroadcastWatchLocation_Invalid];
optional bool is_webrtc = 7;
Expand Down Expand Up @@ -121,6 +121,7 @@ message CBroadcast_WatchBroadcast_Response {
optional string webrtc_turn_server = 17;
optional bool is_replay = 18;
optional int32 duration = 19;
optional string cdn_auth_url_parameters = 20;
}

message CBroadcast_HeartbeatBroadcast_Notification {
Expand Down
64 changes: 64 additions & 0 deletions protobufs/steammessages_chat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ enum EChatRoomServerMessage {
k_EChatRoomServerMsg_AppCustom = 11;
}

enum EChatRoomMessageReactionType {
k_EChatRoomMessageReactionType_Invalid = 0;
k_EChatRoomMessageReactionType_Emoticon = 1;
}

enum EChatRoomMemberStateChange {
k_EChatRoomMemberStateChange_Invalid = 0;
k_EChatRoomMemberStateChange_Joined = 1;
Expand Down Expand Up @@ -469,12 +474,20 @@ message ServerMessage {

message CChatRoom_GetMessageHistory_Response {
message ChatMessage {
message MessageReaction {
optional .EChatRoomMessageReactionType reaction_type = 1 [default = k_EChatRoomMessageReactionType_Invalid];
optional string reaction = 2;
optional uint32 num_reactors = 3;
optional bool has_user_reacted = 4;
}

optional uint32 sender = 1;
optional uint32 server_timestamp = 2;
optional string message = 3;
optional uint32 ordinal = 4;
optional .ServerMessage server_message = 5;
optional bool deleted = 6;
repeated .CChatRoom_GetMessageHistory_Response.ChatMessage.MessageReaction reactions = 7;
}

repeated .CChatRoom_GetMessageHistory_Response.ChatMessage messages = 1;
Expand Down Expand Up @@ -715,6 +728,34 @@ message CChatRoom_SearchMembers_Response {
optional uint32 status_flags = 2;
}

message CChatRoom_UpdateMessageReaction_Request {
optional uint64 chat_group_id = 1;
optional uint64 chat_id = 2;
optional uint32 server_timestamp = 3;
optional uint32 ordinal = 4;
optional .EChatRoomMessageReactionType reaction_type = 5 [default = k_EChatRoomMessageReactionType_Invalid];
optional string reaction = 6;
optional bool is_add = 7;
}

message CChatRoom_UpdateMessageReaction_Response {
optional uint32 num_reactors = 1;
}

message CChatRoom_GetMessageReactionReactors_Request {
optional uint64 chat_group_id = 1;
optional uint64 chat_id = 2;
optional uint32 server_timestamp = 3;
optional uint32 ordinal = 4;
optional .EChatRoomMessageReactionType reaction_type = 5 [default = k_EChatRoomMessageReactionType_Invalid];
optional string reaction = 6;
optional uint32 limit = 7;
}

message CChatRoom_GetMessageReactionReactors_Response {
repeated uint32 reactors = 1;
}

message CClanChatRooms_GetClanChatRoomInfo_Request {
optional fixed64 steamid = 1;
optional bool autocreate = 2 [default = true, (description) = "Create a default chat room if none has been created before."];
Expand Down Expand Up @@ -826,6 +867,17 @@ message CChatRoomClient_MemberListViewUpdated_Notification {
repeated .CMsgClientPersonaState.Friend subscribed_personas = 7;
}

message CChatRoom_MessageReaction_Notification {
optional uint64 chat_group_id = 1;
optional uint64 chat_id = 2;
optional uint32 server_timestamp = 3;
optional uint32 ordinal = 4;
optional fixed64 reactor = 5;
optional .EChatRoomMessageReactionType reaction_type = 6 [default = k_EChatRoomMessageReactionType_Invalid];
optional string reaction = 7;
optional bool is_add = 8;
}

message CChatUsability_ClientUsabilityMetrics_Notification {
message Settings {
optional bool notifications_show_ingame = 1;
Expand Down Expand Up @@ -1137,6 +1189,14 @@ service ChatRoom {
rpc SearchMembers (.CChatRoom_SearchMembers_Request) returns (.CChatRoom_SearchMembers_Response) {
option (method_description) = "Search chat room members by name.";
}

rpc UpdateMessageReaction (.CChatRoom_UpdateMessageReaction_Request) returns (.CChatRoom_UpdateMessageReaction_Response) {
option (method_description) = "Adds/removes a reaction to/from a chat room message";
}

rpc GetMessageReactionReactors (.CChatRoom_GetMessageReactionReactors_Request) returns (.CChatRoom_GetMessageReactionReactors_Response) {
option (method_description) = "Fetches a list of reactors for a specified reaction";
}
}

service ClanChatRooms {
Expand Down Expand Up @@ -1194,6 +1254,10 @@ service ChatRoomClient {
rpc NotifyMemberListViewUpdated (.CChatRoomClient_MemberListViewUpdated_Notification) returns (.NoResponse) {
option (method_description) = "The list of members for a chat room with virtualized member list has changed on the server (or client requested)";
}

rpc NotifyMessageReaction (.CChatRoom_MessageReaction_Notification) returns (.NoResponse) {
option (method_description) = "New message reaction";
}
}

service ChatUsability {
Expand Down
15 changes: 3 additions & 12 deletions protobufs/steammessages_clientserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message CMsgClientP2PConnectionInfo {
optional fixed64 steam_id_src = 2;
optional uint32 app_id = 3;
optional bytes candidate = 4;
optional fixed64 connection_id_src = 5;
optional fixed64 legacy_connection_id_src = 5;
optional bytes rendezvous = 6;
}

Expand Down Expand Up @@ -303,16 +303,6 @@ message CMsgClientLBSGetLBEntriesResponse {
repeated .CMsgClientLBSGetLBEntriesResponse.Entry entries = 3;
}

message CMsgClientAppMinutesPlayedData {
message AppMinutesPlayedData {
optional uint32 app_id = 1;
optional int32 forever = 2;
optional int32 last_two_weeks = 3;
}

repeated .CMsgClientAppMinutesPlayedData.AppMinutesPlayedData minutes_played = 1;
}

message CMsgClientIsLimitedAccount {
optional bool bis_limited_account = 1;
optional bool bis_community_banned = 2;
Expand Down Expand Up @@ -939,6 +929,7 @@ message CMsgClientWalletInfoUpdate {
optional int32 balance_delayed = 4;
optional int64 balance64 = 5 [(php_output_always_number) = true];
optional int64 balance64_delayed = 6 [(php_output_always_number) = true];
optional int32 realm = 7;
}

message CMsgClientAppInfoUpdate {
Expand Down Expand Up @@ -1034,7 +1025,7 @@ message CMsgClientPICSProductInfoRequest {
message AppInfo {
optional uint32 appid = 1;
optional uint64 access_token = 2;
optional bool only_public = 3;
optional bool only_public_obsolete = 3;
}

message PackageInfo {
Expand Down
Loading