Skip to content

Commit

Permalink
update UM protos
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Jul 4, 2019
1 parent 8dec921 commit 12f5ae7
Show file tree
Hide file tree
Showing 54 changed files with 17,829 additions and 7,705 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ 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
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
rename -v '.proto' '.proto.notouch' protobufs/{steammessages_physicalgoods,gc,test_messages}.proto
rename -v '.steamclient' '' protobufs/*.proto
sed -i '1s/^/syntax = "proto2"\;\n/' protobufs/*.proto
Expand Down
1 change: 1 addition & 0 deletions protobuf_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ 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
81 changes: 80 additions & 1 deletion protobufs/steammessages_base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto2";
import "google/protobuf/descriptor.proto";

option optimize_for = SPEED;
option py_generic_services = false;
option py_generic_services = true;

extend .google.protobuf.MessageOptions {
optional int32 msgpool_soft_limit = 50000 [default = 32];
Expand All @@ -17,6 +17,42 @@ extend .google.protobuf.FieldOptions {
optional bool php_output_always_number = 50020 [default = false];
}

enum EProtoClanEventType {
k_EClanOtherEvent = 1;
k_EClanGameEvent = 2;
k_EClanPartyEvent = 3;
k_EClanMeetingEvent = 4;
k_EClanSpecialCauseEvent = 5;
k_EClanMusicAndArtsEvent = 6;
k_EClanSportsEvent = 7;
k_EClanTripEvent = 8;
k_EClanChatEvent = 9;
k_EClanGameReleaseEvent = 10;
k_EClanBroadcastEvent = 11;
k_EClanSmallUpdateEvent = 12;
k_EClanPreAnnounceMajorUpdateEvent = 13;
k_EClanMajorUpdateEvent = 14;
k_EClanDLCReleaseEvent = 15;
k_EClanFutureReleaseEvent = 16;
k_EClanESportTournamentStreamEvent = 17;
k_EClanDevStreamEvent = 18;
k_EClanFamousStreamEvent = 19;
k_EClanGameSalesEvent = 20;
k_EClanGameItemSalesEvent = 21;
k_EClanInGameBonusXPEvent = 22;
k_EClanInGameLootEvent = 23;
k_EClanInGamePerksEvent = 24;
k_EClanInGameChallengeEvent = 25;
k_EClanInGameContestEvent = 26;
k_EClanIRLEvent = 27;
k_EClanNewsEvent = 28;
k_EClanBetaReleaseEvent = 29;
k_EClanInGameContentReleaseEvent = 30;
k_EClanFreeTrial = 31;
k_EClanSeasonRelease = 32;
k_EClanSeasonUpdate = 33;
}

message CMsgIPAddress {
oneof ip {
fixed32 v4 = 1;
Expand Down Expand Up @@ -137,6 +173,7 @@ message CClanEventUserNewsTuple {
optional uint32 type = 7;
optional uint32 clamp_range_slot = 8;
optional uint32 appid = 9;
optional uint32 rtime32_last_modified = 10;
}

message CClanMatchEventByRange {
Expand All @@ -146,3 +183,45 @@ message CClanMatchEventByRange {
repeated .CClanEventUserNewsTuple events = 4;
}

message CCommunity_ClanAnnouncementInfo {
optional uint64 gid = 1;
optional uint64 clanid = 2;
optional uint64 posterid = 3;
optional string headline = 4;
optional uint32 posttime = 5;
optional uint32 updatetime = 6;
optional string body = 7;
optional int32 commentcount = 8;
repeated string tags = 9;
optional int32 language = 10;
optional bool hidden = 11;
optional fixed64 forum_topic_id = 12;
}

message CClanEventData {
optional fixed64 gid = 1;
optional fixed64 clan_steamid = 2;
optional string event_name = 3;
optional .EProtoClanEventType event_type = 4 [default = k_EClanOtherEvent];
optional uint32 appid = 5;
optional string server_address = 6;
optional string server_password = 7;
optional uint32 rtime32_start_time = 8;
optional uint32 rtime32_end_time = 9;
optional int32 comment_count = 10;
optional fixed64 creator_steamid = 11;
optional fixed64 last_update_steamid = 12;
optional string event_notes = 13;
optional string jsondata = 14;
optional .CCommunity_ClanAnnouncementInfo announcement_body = 15;
optional bool published = 16;
optional bool hidden = 17;
optional uint32 rtime32_visibility_start = 18;
optional uint32 rtime32_visibility_end = 19;
optional uint32 broadcaster_accountid = 20;
optional uint32 follower_count = 21;
optional uint32 ignore_count = 22;
optional fixed64 forum_topic_id = 23;
optional uint32 rtime32_last_modified = 24;
}

81 changes: 78 additions & 3 deletions protobufs/steammessages_broadcast.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ message CBroadcast_StartBroadcastUpload_Request {
message CBroadcast_StartBroadcastUpload_Response {
optional string upload_token = 1;
optional string upload_address = 2;
optional fixed64 upload_relay_id = 3;
optional string thumbnail_upload_address = 4;
optional uint32 thumbnail_interval_seconds = 5;
optional fixed64 broadcast_upload_id = 3;
optional bool enable_replay = 6;
optional string http_address = 7;
}

message CBroadcast_NotifyBroadcastUploadStop_Notification {
Expand Down Expand Up @@ -153,6 +152,8 @@ message CBroadcast_GetBroadcastStatus_Response {
optional bool is_uploading = 10;
optional uint32 duration = 11;
optional bool is_replay = 12;
optional bool is_capturing_vod = 13;
optional bool is_store_whitelisted = 14;
}

message CBroadcast_GetBroadcastThumbnail_Request {
Expand Down Expand Up @@ -258,6 +259,52 @@ message CBroadcast_GetBroadcastChatUserNames_Response {
repeated .CBroadcast_GetBroadcastChatUserNames_Response.PersonaName persona_names = 1;
}

message CBroadcast_StartBuildClip_Request {
optional fixed64 steamid = 1;
optional fixed64 broadcast_session_id = 2;
optional int32 first_segment = 3;
optional int32 num_segments = 4;
optional string clip_description = 5;
}

message CBroadcast_StartBuildClip_Response {
optional fixed64 broadcast_clip_id = 1;
}

message CBroadcast_GetBuildClipStatus_Request {
optional fixed64 broadcast_clip_id = 1;
}

message CBroadcast_GetBuildClipStatus_Response {
}

message CBroadcast_SetClipDetails_Request {
optional uint64 broadcast_clip_id = 1 [(description) = "Clip ID"];
optional uint32 start_time = 2 [(description) = "start time of the clip"];
optional uint32 end_time = 3 [(description) = "end time of the clip"];
optional string video_description = 4;
}

message CBroadcast_SetClipDetails_Response {
}

message CBroadcast_GetClipDetails_Request {
optional uint64 broadcast_clip_id = 1 [(description) = "List of clip IDs we want details for"];
}

message CBroadcast_GetClipDetails_Response {
optional uint64 broadcast_clip_id = 1 [(description) = "broadcast clip ID"];
optional uint64 video_id = 2 [(description) = "matching unique video ID"];
optional uint64 channel_id = 3 [(description) = "Broadcast Channel ID"];
optional uint32 app_id = 4 [(description) = "App ID stream is tagged with"];
optional uint32 accountid_broadcaster = 5 [(description) = "Account ID of broadcaster"];
optional uint32 accountid_clipmaker = 6 [(description) = "Account ID of clip-maker"];
optional string video_description = 7 [(description) = "Short name or description of this clip"];
optional uint32 start_time = 8 [(description) = "Wall time clip was broadcasted live"];
optional uint32 length_milliseconds = 9 [(description) = "length of video in MS"];
optional string thumbnail_path = 10 [(description) = "Path for thumbnail URL"];
}

message CBroadcast_SetRTMPInfo_Request {
optional int32 broadcast_permission = 1;
optional bool update_token = 2;
Expand Down Expand Up @@ -372,6 +419,7 @@ message CBroadcast_GetBroadcastUploadStats_Request {
optional uint32 row_limit = 1 [default = 100, (description) = "How many at maximum to return."];
optional uint32 start_time = 2 [default = 0, (description) = "Start time"];
optional uint64 upload_id = 3 [(description) = "Optional relay upload ID"];
optional fixed64 steamid = 4 [(description) = "Optional the steamid whose stats you want, otherwise the user logged in - admin only"];
}

message CBroadcast_GetBroadcastUploadStats_Response {
Expand Down Expand Up @@ -402,6 +450,7 @@ message CBroadcast_GetBroadcastUploadStats_Response {

message CBroadcast_GetBroadcastViewerStats_Request {
optional uint64 upload_id = 1 [(description) = "Get stats for this stream"];
optional fixed64 steamid = 2 [(description) = "Optional: The steamid of the broadcast whose details you are requesting."];
}

message CBroadcast_GetBroadcastViewerStats_Response {
Expand Down Expand Up @@ -434,6 +483,16 @@ message CBroadcast_WaitingBroadcastViewer_Notification {
optional fixed64 broadcast_id = 1;
}

message CBroadcast_BroadcastUploadStarted_Notification {
optional fixed64 broadcast_id = 1;
optional string upload_token = 2;
optional string upload_address = 3;
optional string http_address = 4;
optional fixed64 broadcast_upload_id = 5;
optional uint32 heartbeat_interval_seconds = 6 [(description) = "how many seconds between session heartbeats"];
optional bool is_rtmp = 7;
}

message CBroadcast_StopBroadcastUpload_Notification {
optional fixed64 broadcast_id = 1;
optional fixed64 broadcast_relay_id = 2;
Expand All @@ -457,6 +516,7 @@ message CBroadcast_BroadcastStatus_Notification {
message CBroadcast_BroadcastChannelLive_Notification {
optional fixed64 broadcast_channel_id = 1;
optional string broadcast_channel_name = 2;
optional string broadcast_channel_avatar = 3;
}

message CBroadcast_SendThumbnailToRelay_Notification {
Expand Down Expand Up @@ -546,6 +606,18 @@ service Broadcast {
rpc GetBroadcastChatUserNames (.CBroadcast_GetBroadcastChatUserNames_Request) returns (.CBroadcast_GetBroadcastChatUserNames_Response) {
option (method_description) = "Get names for list of users in chat";
}
rpc StartBuildClip (.CBroadcast_StartBuildClip_Request) returns (.CBroadcast_StartBuildClip_Response) {
option (method_description) = "Start building a broadcast clip";
}
rpc GetBuildClipStatus (.CBroadcast_GetBuildClipStatus_Request) returns (.CBroadcast_GetBuildClipStatus_Response) {
option (method_description) = "Start building a broadcast clip";
}
rpc SetClipDetails (.CBroadcast_SetClipDetails_Request) returns (.CBroadcast_SetClipDetails_Response) {
option (method_description) = "Updates a broadcast clip";
}
rpc GetClipDetails (.CBroadcast_GetClipDetails_Request) returns (.CBroadcast_GetClipDetails_Response) {
option (method_description) = "Get details for Broadcast Clips";
}
rpc SetRTMPInfo (.CBroadcast_SetRTMPInfo_Request) returns (.CBroadcast_SetRTMPInfo_Response) {
option (method_description) = "Sets RTMP broadcast info";
}
Expand Down Expand Up @@ -591,6 +663,9 @@ service BroadcastClient {
rpc NotifyWaitingBroadcastViewer (.CBroadcast_WaitingBroadcastViewer_Notification) returns (.NoResponse) {
option (method_description) = "Notification from server to client one or more users is waiting for user to start broadcast";
}
rpc NotifyBroadcastUploadStarted (.CBroadcast_BroadcastUploadStarted_Notification) returns (.NoResponse) {
option (method_description) = "Notification from server to client with information about a broadcast";
}
rpc NotifyStopBroadcastUpload (.CBroadcast_StopBroadcastUpload_Notification) returns (.NoResponse) {
option (method_description) = "Notification from server to client telling it to stop uploading when the last viewer has disconnected from their broadcast";
}
Expand Down
3 changes: 3 additions & 0 deletions protobufs/steammessages_chat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ message CChatRoomState {
repeated uint32 members_in_voice = 4;
optional uint32 time_last_message = 5;
optional uint32 sort_order = 6;
optional string last_message = 7;
optional uint32 accountid_last_message = 8;
}

message CChatRoomGroupState {
Expand All @@ -147,6 +149,7 @@ message CUserChatRoomState {
optional .EChatRoomNotificationLevel mobile_notification_level = 5 [default = k_EChatroomNotificationLevel_Invalid];
optional uint32 time_last_mention = 6;
optional bool unread_indicator_muted = 7 [default = false];
optional uint32 time_first_unread = 8;
}

message CUserChatRoomGroupState {
Expand Down
40 changes: 30 additions & 10 deletions protobufs/steammessages_clientserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import "encrypted_app_ticket.proto";
option optimize_for = SPEED;
option py_generic_services = false;

enum EMMSLobbyStatus {
k_EMMSLobbyStatusInvalid = 0;
k_EMMSLobbyStatusExists = 1;
k_EMMSLobbyStatusDoesNotExist = 2;
k_EMMSLobbyStatusNotAMember = 3;
}

message CMsgClientUDSP2PSessionStarted {
optional fixed64 steamid_remote = 1;
optional int32 appid = 2;
Expand Down Expand Up @@ -153,6 +160,7 @@ message CMsgClientGamesPlayed {
optional uint32 total_non_steam_controller_count = 19 [default = 0];
optional uint64 controller_workshop_file_id = 20 [default = 0];
optional uint32 launch_source = 21 [default = 0];
optional uint32 vr_hmd_runtime = 22;
}

repeated .CMsgClientGamesPlayed.GamePlayed games_played = 1;
Expand Down Expand Up @@ -297,16 +305,6 @@ message CMsgClientIsLimitedAccount {
optional bool bis_limited_account_allowed_to_invite_friends = 4;
}

message CMsgClientServerList {
message Server {
optional uint32 server_type = 1;
optional uint32 server_ip = 2;
optional uint32 server_port = 3;
}

repeated .CMsgClientServerList.Server servers = 1;
}

message CMsgClientRequestedClientStats {
message StatsToSend {
optional uint32 client_stat = 1;
Expand All @@ -329,6 +327,13 @@ message CMsgClientStat2 {
repeated .CMsgClientStat2.StatDetail stat_detail = 1;
}

message CMsgClientMMSSetRatelimitPolicyOnClient {
optional uint32 app_id = 1;
optional bool enable_rate_limits = 2;
optional int32 seconds_per_message = 3;
optional int32 milliseconds_per_data_update = 4;
}

message CMsgClientMMSCreateLobby {
optional uint32 app_id = 1;
optional int32 max_members = 2;
Expand Down Expand Up @@ -451,6 +456,7 @@ message CMsgClientMMSLobbyData {
optional bytes metadata = 8;
repeated .CMsgClientMMSLobbyData.Member members = 9;
optional uint32 lobby_cellid = 10;
optional bool owner_should_accept_changes = 11;
}

message CMsgClientMMSSendLobbyChatMsg {
Expand Down Expand Up @@ -521,10 +527,24 @@ message CMsgClientMMSInviteToLobby {
optional fixed64 steam_id_user_invited = 3;
}

message CMsgClientMMSGetLobbyStatus {
optional uint32 app_id = 1;
optional fixed64 steam_id_lobby = 2;
optional bool claim_membership = 3;
optional bool claim_ownership = 4;
}

message CMsgClientMMSGetLobbyStatusResponse {
optional uint32 app_id = 1;
optional fixed64 steam_id_lobby = 2;
optional .EMMSLobbyStatus lobby_status = 3 [default = k_EMMSLobbyStatusInvalid];
}

message CMsgClientInviteToGame {
optional fixed64 steam_id_dest = 1;
optional fixed64 steam_id_src = 2;
optional string connect_string = 3;
optional string remote_play = 4;
}

message CMsgClientChatInvite {
Expand Down
Loading

0 comments on commit 12f5ae7

Please sign in to comment.