Skip to content

Commit

Permalink
Merge pull request #532 from DoctorMcKay/update-protos
Browse files Browse the repository at this point in the history
Updated steamclient, CS:GO, and TF2 protobufs
  • Loading branch information
yaakov-h authored May 6, 2018
2 parents d375f66 + 1e7ed86 commit 8bd81ea
Show file tree
Hide file tree
Showing 44 changed files with 5,147 additions and 436 deletions.
20 changes: 19 additions & 1 deletion Resources/Protobufs/csgo/cstrike15_gcmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ message PlayerRankingInfo {
optional uint32 rank_id = 2;
optional uint32 wins = 3;
optional float rank_change = 4;
optional uint32 type_id = 5;
optional uint32 rank_type_id = 6;
}

message PlayerCommendationInfo {
Expand Down Expand Up @@ -336,6 +336,7 @@ message CMsgGCCStrike15_v2_MatchmakingClient2ServerPing {
optional int32 final_batch = 3;
repeated .DataCenterPing data_center_pings = 4;
optional uint32 max_ping = 5;
optional fixed32 test_token = 6;
}

message CMsgGCCStrike15_v2_MatchmakingGC2ClientUpdate {
Expand Down Expand Up @@ -428,6 +429,7 @@ message CMsgGCCStrike15_v2_MatchmakingServerReservationResponse {
optional uint32 reward_drop_list = 12;
optional string tournament_tag = 13;
optional uint32 steamdatagram_port = 14;
optional fixed32 test_token = 15;
}

message CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve {
Expand Down Expand Up @@ -979,6 +981,10 @@ message CMsgGCCStrike15_v2_AcknowledgePenalty {
}

message CMsgGCCStrike15_v2_Client2GCRequestPrestigeCoin {
optional uint32 defindex = 1;
optional uint64 upgradeid = 2;
optional uint32 hours = 3;
optional uint32 prestigetime = 4;
}

message CMsgGCCStrike15_v2_Client2GCStreamUnlock {
Expand Down Expand Up @@ -1096,6 +1102,18 @@ message CMsgGCCStrike15_v2_ClientToGCRequestTicket {
optional fixed64 gameserver_net_id = 4;
}

message CMsgGCToClientSteamDatagramTicket {
optional fixed32 legacy_time_expiry = 1;
optional fixed64 legacy_authorized_steam_id = 2;
optional fixed32 legacy_authorized_public_ip = 3;
optional fixed64 legacy_gameserver_steam_id = 4;
optional fixed64 legacy_gameserver_net_id = 5;
optional bytes legacy_signature = 6;
optional uint32 legacy_app_id = 7;
repeated bytes legacy_extra_fields = 8;
optional bytes serialized_ticket = 16;
}

message CMsgGCCStrike15_v2_ClientRequestOffers {
}

Expand Down
1 change: 1 addition & 0 deletions Resources/Protobufs/csgo/cstrike15_usermessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ message CCSUsrMsg_ServerRankUpdate {
optional int32 rank_new = 3;
optional int32 num_wins = 4;
optional float rank_change = 5;
optional int32 rank_type_id = 6;
}

repeated .CCSUsrMsg_ServerRankUpdate.RankUpdate rank_update = 1;
Expand Down
3 changes: 3 additions & 0 deletions Resources/Protobufs/csgo/gcsdk_gcmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ message CMsgClientHello {
optional uint32 partner_srcid = 5;
optional uint32 partner_accountid = 6;
optional uint32 partner_accountflags = 7;
optional uint32 partner_accountbalance = 8;
}

message CMsgServerHello {
Expand All @@ -177,6 +178,8 @@ message CMsgClientWelcome {
optional bytes game_data2 = 6;
optional uint32 rtime32_gc_welcome_timestamp = 7;
optional uint32 currency = 8;
optional uint32 balance = 9;
optional string balance_url = 10;
}

message CMsgConnectionStatus {
Expand Down
32 changes: 32 additions & 0 deletions Resources/Protobufs/csgo/gcsystemmsgs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ enum EGCSystemMsg {
k_EGCMsgVacVerificationChange = 518;
k_EGCMsgAccountPhoneNumberChange = 519;
k_EGCMsgInviteUserToLobby = 523;
k_EGCMsgGetGamePersonalDataCategoriesRequest = 524;
k_EGCMsgGetGamePersonalDataCategoriesResponse = 525;
k_EGCMsgGetGamePersonalDataEntriesRequest = 526;
k_EGCMsgGetGamePersonalDataEntriesResponse = 527;
}

enum ESOMsg {
Expand Down Expand Up @@ -144,3 +148,31 @@ message CMsgGCHInviteUserToLobby {
optional fixed64 steamid_lobby = 4;
}

message CCommunity_GamePersonalDataCategoryInfo {
optional string type = 1;
optional string localization_token = 2;
optional string template_file = 3;
}

message CCommunity_GetGamePersonalDataCategories_Request {
optional uint32 appid = 1;
}

message CCommunity_GetGamePersonalDataCategories_Response {
repeated .CCommunity_GamePersonalDataCategoryInfo categories = 1;
optional string app_assets_basename = 2;
}

message CCommunity_GetGamePersonalDataEntries_Request {
optional uint32 appid = 1;
optional uint64 steamid = 2;
optional string type = 3;
optional string continue_token = 4;
}

message CCommunity_GetGamePersonalDataEntries_Response {
optional uint32 gceresult = 1;
repeated string entries = 2;
optional string continue_token = 3;
}

35 changes: 34 additions & 1 deletion Resources/Protobufs/steamclient/htmlmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ message CMsgMouseUp {
optional uint32 browser_handle = 1;
optional uint32 mouse_button = 2;
optional uint32 modifiers = 3;
optional bool is_off_panel = 4;
}

message CMsgMouseDblClick {
Expand Down Expand Up @@ -117,6 +118,20 @@ message CMsgBrowserSize {
optional uint32 height = 3;
}

message CMsgBrowserSetMinSize {
optional uint32 browser_handle = 1;
optional uint32 width = 2;
optional uint32 height = 3;
}

message CMsgBrowserResized {
optional uint32 browser_handle = 1;
optional uint32 x = 2;
optional uint32 y = 3;
optional uint32 width = 4;
optional uint32 height = 5;
}

message CMsgPostURL {
optional uint32 browser_handle = 1;
optional string url = 2;
Expand Down Expand Up @@ -315,6 +330,7 @@ message CMsgPopupHTMLWindow {
optional uint32 wide = 5;
optional uint32 tall = 6;
optional uint32 popup_index = 7;
optional bool trusted_creator = 8;
}

message CMsgPopupHTMLWindowResponse {
Expand Down Expand Up @@ -391,6 +407,10 @@ message CMsgSetSharedPaintBuffers {
optional uint64 handle = 6;
}

message CMsgAckSharedPaintBuffers {
optional uint32 browser_handle = 1;
}

message CMsgNeedsPaint {
optional uint32 browser_handle = 1;
optional uint32 scrollx = 10;
Expand Down Expand Up @@ -666,7 +686,7 @@ message CMsgJSValue {
optional bool bool_value = 1;
optional int32 int_value = 2;
optional uint32 uint_value = 3;
optional float float_value = 4;
optional double double_value = 4;
optional string string_value = 5;
optional uint64 function_handle = 6;
optional bool is_array = 8;
Expand Down Expand Up @@ -738,3 +758,16 @@ message CMsgGameOverlayTargetTextureID {
optional uint32 texture_handle = 3;
}

message CMsgDraggableRegionsChanged {
message DraggableRects {
optional int32 x = 1;
optional int32 y = 2;
optional int32 width = 3;
optional int32 height = 4;
optional bool draggable = 5;
}

optional uint32 browser_handle = 1;
repeated .CMsgDraggableRegionsChanged.DraggableRects rects = 2;
}

56 changes: 56 additions & 0 deletions Resources/Protobufs/steamclient/steamdatagram_auth_messages.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
option cc_generic_services = false;

message CMsgSteamDatagramRelayAuthTicket {
message ExtraField {
optional string name = 1;
optional string string_value = 2;
optional sint64 int64_value = 3;
optional fixed64 fixed64_value = 5;
}

optional fixed32 time_expiry = 1;
optional fixed64 authorized_steam_id = 2;
optional fixed32 authorized_public_ip = 3;
optional fixed64 gameserver_steam_id = 4;
optional fixed64 gameserver_net_id = 5;
optional bytes legacy_signature = 6;
optional uint32 app_id = 7;
optional fixed32 gameserver_pop_id = 9;
optional uint32 virtual_port = 10;
repeated .CMsgSteamDatagramRelayAuthTicket.ExtraField extra_fields = 8;
}

message CMsgSteamDatagramSignedRelayAuthTicket {
optional fixed64 reserved_do_not_use = 1;
optional fixed64 key_id = 2;
optional bytes ticket = 3;
optional bytes signature = 4;
}

message CMsgSteamDatagramCertificate {
enum EKeyType {
INVALID = 0;
ED25519 = 1;
}

optional .CMsgSteamDatagramCertificate.EKeyType key_type = 1 [default = INVALID];
optional bytes key_data = 2;
optional fixed64 steam_id = 4;
repeated fixed32 gameserver_datacenter_ids = 5;
optional fixed32 time_created = 8;
optional fixed32 time_expiry = 9;
optional uint32 app_id = 10;
}

message CMsgSteamDatagramCertificateSigned {
optional bytes cert = 4;
optional fixed64 ca_key_id = 5;
optional bytes ca_signature = 6;
}

message CMsgSteamDatagramCachedCredentialsForApp {
optional bytes private_key = 1;
optional bytes cert = 2;
repeated bytes relay_tickets = 3;
}

17 changes: 17 additions & 0 deletions Resources/Protobufs/steamclient/steammessages_base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,20 @@ message CMsgAppRights {
optional bool broadcast_live = 15;
}

message CCuratorPreferences {
optional uint32 supported_languages = 1;
optional bool platform_windows = 2;
optional bool platform_mac = 3;
optional bool platform_linux = 4;
optional bool vr_content = 5;
optional bool adult_content_violence = 6;
optional bool adult_content_sex = 7;
optional uint32 timestamp_updated = 8;
repeated uint32 tagids_curated = 9;
repeated uint32 tagids_filtered = 10;
optional string website_title = 11;
optional string website_url = 12;
optional string discussion_url = 13;
optional bool show_broadcast = 14;
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ message CBroadcast_BeginBroadcastSession_Request {
optional string title = 4;
optional uint32 cellid = 5;
optional uint64 rtmp_token = 6;
optional bool thumbnail_upload = 7;
}

message CBroadcast_BeginBroadcastSession_Response {
optional fixed64 broadcast_id = 1;
optional string thumbnail_upload_address = 2 [(description) = "Http address to upload the thumbnail data."];
optional string thumbnail_upload_token = 3 [(description) = "token to authorize as broadcaster to upload content to the relay."];
optional uint32 thumbnail_interval_seconds = 4 [(description) = "how many seconds between thumbnails"];
optional fixed64 thumbnail_broadcast_relay_id = 5 [(description) = "unique identifier on the broadcast relay"];
}

message CBroadcast_EndBroadcastSession_Request {
Expand All @@ -37,6 +37,8 @@ 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;
}

message CBroadcast_NotifyBroadcastUploadStop_Notification {
Expand Down Expand Up @@ -96,6 +98,16 @@ message CBroadcast_GetBroadcastStatus_Response {
optional bool is_publisher = 7;
}

message CBroadcast_GetBroadcastThumbnail_Request {
optional fixed64 steamid = 1;
optional fixed64 broadcast_id = 2;
}

message CBroadcast_GetBroadcastThumbnail_Response {
optional string thumbnail_url = 1;
optional int32 update_interval = 2;
}

message CBroadcast_InviteToBroadcast_Request {
optional fixed64 steamid = 1;
optional bool approval_response = 2;
Expand Down Expand Up @@ -212,7 +224,7 @@ message CBroadcast_BroadcastStatus_Notification {

message CBroadcast_SendThumbnailToRelay_Notification {
optional string thumbnail_upload_token = 1;
optional fixed64 thumbnail_broadcast_relay_id = 2;
optional fixed64 thumbnail_broadcast_session_id = 2;
optional bytes thumbnail_data = 3;
optional uint32 thumbnail_width = 4;
optional uint32 thumbnail_height = 5;
Expand All @@ -238,6 +250,9 @@ service Broadcast {
rpc GetBroadcastStatus (.CBroadcast_GetBroadcastStatus_Request) returns (.CBroadcast_GetBroadcastStatus_Response) {
option (method_description) = "Request from viewer about broadcast details";
}
rpc GetBroadcastThumbnail (.CBroadcast_GetBroadcastThumbnail_Request) returns (.CBroadcast_GetBroadcastThumbnail_Response) {
option (method_description) = "Request thumbnail URL for broadcast";
}
rpc InviteToBroadcast (.CBroadcast_InviteToBroadcast_Request) returns (.CBroadcast_InviteToBroadcast_Response) {
option (method_description) = "Invites another steam user to watch the caller's broadcast";
}
Expand Down
16 changes: 16 additions & 0 deletions Resources/Protobufs/steamclient/steammessages_clientserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,29 @@ message CMsgClientP2PConnectionInfo {
optional fixed64 steam_id_src = 2;
optional uint32 app_id = 3;
optional bytes candidate = 4;
optional fixed64 connection_id_src = 5;
optional bytes rendezvous = 6;
}

message CMsgClientP2PConnectionFailInfo {
optional fixed64 steam_id_dest = 1;
optional fixed64 steam_id_src = 2;
optional uint32 app_id = 3;
optional uint32 ep2p_session_error = 4;
optional fixed64 connection_id_dest = 5;
optional uint32 close_reason = 7;
optional string close_message = 8;
}

message CMsgClientNetworkingCertRequest {
optional bytes key_data = 2;
optional uint32 app_id = 3;
}

message CMsgClientNetworkingCertReply {
optional bytes cert = 4;
optional fixed64 ca_key_id = 5;
optional bytes ca_signature = 6;
}

message CMsgClientGetAppOwnershipTicket {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ message CMsgClientServiceMethodResponse {

message CMsgClientUIMode {
optional uint32 uimode = 1;
optional uint32 chat_mode = 2;
}

message CMsgClientVanityURLChangedNotification {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ message CMsgPersonaChangeResponse {

message CMsgClientPersonaState {
message Friend {
message KV {
optional string key = 1;
optional string value = 2;
}

optional fixed64 friendid = 1;
optional uint32 persona_state = 2;
optional uint32 game_played_app_id = 3;
Expand All @@ -131,6 +136,8 @@ message CMsgClientPersonaState {
optional string clan_tag = 65;
optional string facebook_name = 66;
optional uint64 facebook_id = 67;
repeated .CMsgClientPersonaState.Friend.KV rich_presence = 71;
optional fixed64 broadcast_id = 72;
}

optional uint32 status_flags = 1;
Expand Down
Loading

0 comments on commit 8bd81ea

Please sign in to comment.