Browse Source

update protobufs (#293)

* update protobufs
* add utils.ip6_*; code changes due to proto update
* add win_inet_pton for py27 on windows
pull/309/head
Rossen 4 years ago
committed by GitHub
parent
commit
33d2279699
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Makefile
  2. 3
      protobuf_list.txt
  3. 102
      protobufs/enums.proto
  4. 14
      protobufs/steammessages_base.proto
  5. 3
      protobufs/steammessages_broadcast.proto
  6. 64
      protobufs/steammessages_chat.proto
  7. 15
      protobufs/steammessages_clientserver.proto
  8. 23
      protobufs/steammessages_clientserver_2.proto
  9. 3
      protobufs/steammessages_clientserver_friends.proto
  10. 4
      protobufs/steammessages_clientserver_login.proto
  11. 6
      protobufs/steammessages_credentials.proto
  12. 3
      protobufs/steammessages_depotbuilder.proto
  13. 43
      protobufs/steammessages_friendmessages.proto
  14. 202
      protobufs/steammessages_player.proto
  15. 4
      protobufs/steammessages_publishedfile.proto
  16. 34
      protobufs/steammessages_shader.proto
  17. 17
      protobufs/steammessages_store.proto
  18. 741
      protobufs/steammessages_webui_friends.proto
  19. 3
      requirements.txt
  20. 6
      setup.py
  21. 6
      steam/client/__init__.py
  22. 2
      steam/client/builtins/apps.py
  23. 15
      steam/client/builtins/gameservers.py
  24. 4
      steam/core/cm.py
  25. 522
      steam/protobufs/enums_pb2.py
  26. 153
      steam/protobufs/steammessages_base_pb2.py
  27. 375
      steam/protobufs/steammessages_broadcast_pb2.py
  28. 769
      steam/protobufs/steammessages_chat_pb2.py
  29. 559
      steam/protobufs/steammessages_clientserver_2_pb2.py
  30. 35
      steam/protobufs/steammessages_clientserver_friends_pb2.py
  31. 60
      steam/protobufs/steammessages_clientserver_login_pb2.py
  32. 772
      steam/protobufs/steammessages_clientserver_pb2.py
  33. 14
      steam/protobufs/steammessages_credentials_pb2.py
  34. 83
      steam/protobufs/steammessages_depotbuilder_pb2.py
  35. 357
      steam/protobufs/steammessages_friendmessages_pb2.py
  36. 2305
      steam/protobufs/steammessages_player_pb2.py
  37. 330
      steam/protobufs/steammessages_publishedfile_pb2.py
  38. 238
      steam/protobufs/steammessages_shader_pb2.py
  39. 196
      steam/protobufs/steammessages_store_pb2.py
  40. 7218
      steam/protobufs/steammessages_webui_friends_pb2.py
  41. 49
      steam/utils/__init__.py
  42. 33
      tests/test_utils.py

2
Makefile

@ -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

3
protobuf_list.txt

@ -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
protobufs/enums.proto

@ -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
protobufs/steammessages_base.proto

@ -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 {
@ -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 {
@ -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
protobufs/steammessages_broadcast.proto

@ -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 {
@ -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;
@ -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 {

64
protobufs/steammessages_chat.proto

@ -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;
@ -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;
@ -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."];
@ -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;
@ -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 {
@ -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 {

15
protobufs/steammessages_clientserver.proto

@ -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;
}
@ -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;
@ -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 {
@ -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 {

23
protobufs/steammessages_clientserver_2.proto

@ -461,12 +461,14 @@ message CMsgClientGetDepotDecryptionKeyResponse {
message CMsgClientCheckAppBetaPassword {
optional uint32 app_id = 1;
optional string betapassword = 2;
optional int32 language = 3;
}
message CMsgClientCheckAppBetaPasswordResponse {
message BetaPassword {
optional string betaname = 1;
optional string betapassword = 2;
optional string betadescription = 3;
}
optional int32 eresult = 1 [default = 2];
@ -529,6 +531,7 @@ message CMsgDownloadRateStatistics {
optional uint32 cell_id = 1;
repeated .CMsgDownloadRateStatistics.StatsInfo stats = 2;
optional uint32 throttling_kbps = 3;
optional uint32 steam_realm = 4;
}
message CMsgClientRequestAccountData {
@ -576,13 +579,16 @@ message CMsgGameServerData {
optional fixed64 steam_id = 1;
}
optional uint32 revision = 24;
optional fixed64 steam_id_gs = 1;
optional uint32 deprecated_ip = 2;
optional uint32 query_port = 3;
optional uint32 game_port = 4;
optional uint32 sourcetv_port = 5;
optional string name = 22;
optional .CMsgIPAddress game_ip_address = 23;
optional uint32 spectator_port = 5;
optional string server_name = 22;
optional string game_description = 29;
optional string spectator_server_name = 27;
optional fixed32 fake_ip = 28;
optional bytes sdr_login = 26;
optional uint32 app_id = 6;
optional string gamedir = 7;
optional string version = 8;
@ -596,16 +602,13 @@ message CMsgGameServerData {
optional bool dedicated = 16;
optional string os = 17;
optional string game_data = 18;
optional uint32 game_data_version = 19;
optional string game_type = 20;
optional string map = 21;
}
message CMsgGameServerRemove {
optional fixed64 steam_id = 1;
optional uint32 deprecated_ip = 2;
optional uint32 query_port = 3;
optional .CMsgIPAddress ip = 4;
optional fixed64 legacy_steam_id_gs = 1;
optional uint32 legacy_query_port = 3;
}
message CMsgClientGMSServerQuery {
@ -619,7 +622,7 @@ message CMsgClientGMSServerQuery {
message CMsgGMSClientServerQueryResponse {
message Server {
optional uint32 deprecated_server_ip = 1;
optional uint32 server_port = 2;
optional uint32 query_port = 2;
optional uint32 auth_players = 3;
optional .CMsgIPAddress server_ip = 4;
}

3
protobufs/steammessages_clientserver_friends.proto

@ -232,6 +232,7 @@ message CMsgClientEmoticonList {
optional uint32 time_last_used = 3;
optional uint32 use_count = 4;
optional uint32 time_received = 5;
optional uint32 appid = 6;
}
message Sticker {
@ -239,6 +240,8 @@ message CMsgClientEmoticonList {
optional int32 count = 2;
optional uint32 time_received = 3;
optional uint32 appid = 4;
optional uint32 time_last_used = 5;
optional uint32 use_count = 6;
}
message Effect {

4
protobufs/steammessages_clientserver_login.proto

@ -77,6 +77,7 @@ message CMsgClientLogon {
optional string web_logon_nonce = 103;
optional int32 priority_reason = 104;
optional .CMsgClientSecret embedded_client_secret = 105;
optional bool disable_partner_autogrants = 106;
}
message CMsgClientLogonResponse {
@ -92,7 +93,7 @@ message CMsgClientLogonResponse {
optional int32 eresult_extended = 10;
optional string webapi_authenticate_user_nonce = 11;
optional uint32 cell_id_ping_threshold = 12;
optional bool use_pics = 13;
optional bool deprecated_use_pics = 13;
optional string vanity_url = 14;
optional .CMsgIPAddress public_ip = 15;
optional fixed64 client_supplied_steamid = 20;
@ -104,6 +105,7 @@ message CMsgClientLogonResponse {
optional int32 ogs_data_report_time_window = 26;
optional uint64 client_instance_id = 27;
optional bool force_client_update_check = 28;
optional string agreement_session_url = 29;
}
message CMsgClientRequestWebAPIAuthenticateUserNonce {

6
protobufs/steammessages_credentials.proto

@ -73,15 +73,15 @@ message CCredentials_ValidateEmailAddress_Response {
message CCredentials_SteamGuardPhishingReport_Request {
optional string param_string = 1;
optional uint32 ipaddress_actual = 2;
optional string ipaddress_actual = 2;
}
message CCredentials_SteamGuardPhishingReport_Response {
optional uint32 ipaddress_loginattempt = 1;
optional string ipaddress_loginattempt = 1;
optional string countryname_loginattempt = 2;
optional string statename_loginattempt = 3;
optional string cityname_loginattempt = 4;
optional uint32 ipaddress_actual = 5;
optional string ipaddress_actual = 5;
optional string countryname_actual = 6;
optional string statename_actual = 7;
optional string cityname_actual = 8;

3
protobufs/steammessages_depotbuilder.proto

@ -8,6 +8,7 @@ message CContentBuilder_InitDepotBuild_Request {
optional uint32 depotid = 2;
optional uint64 workshop_itemid = 3;
optional bool for_local_cs = 4;
optional string target_branch = 5;
}
message CContentBuilder_InitDepotBuild_Response {
@ -20,6 +21,8 @@ message CContentBuilder_InitDepotBuild_Response {
optional uint32 offset_detection_min_clean_chunk = 7;
optional uint32 offset_detection_blast_radius_pre = 8;
optional uint32 offset_detection_blast_radius_post = 9;
optional uint32 offset_detection_max_distance_pre = 10;
optional uint32 offset_detection_max_distance_post = 11;
}
message CContentBuilder_StartDepotUpload_Request {

43
protobufs/steammessages_friendmessages.proto

@ -3,6 +3,11 @@ import "steammessages_unified_base.proto";
option py_generic_services = true;
enum EMessageReactionType {
k_EMessageReactionType_Invalid = 0;
k_EMessageReactionType_Emoticon = 1;
}
message CFriendMessages_GetRecentMessages_Request {
optional fixed64 steamid1 = 1;
optional fixed64 steamid2 = 2;
@ -17,10 +22,17 @@ message CFriendMessages_GetRecentMessages_Request {
message CFriendMessages_GetRecentMessages_Response {
message FriendMessage {
message MessageReaction {
optional .EMessageReactionType reaction_type = 1 [default = k_EMessageReactionType_Invalid];
optional string reaction = 2;
repeated uint32 reactors = 3;
}
optional uint32 accountid = 1;
optional uint32 timestamp = 2;
optional string message = 3;
optional uint32 ordinal = 4;
repeated .CFriendMessages_GetRecentMessages_Response.FriendMessage.MessageReaction reactions = 5;
}
repeated .CFriendMessages_GetRecentMessages_Response.FriendMessage messages = 1 [(description) = "Array of messages, returned newest to oldest."];
@ -75,6 +87,19 @@ message CFriendMessages_IsInFriendsUIBeta_Response {
optional bool has_used_friendsui = 2;
}
message CFriendMessages_UpdateMessageReaction_Request {
optional fixed64 steamid = 1;
optional uint32 server_timestamp = 2;
optional uint32 ordinal = 3;
optional .EMessageReactionType reaction_type = 4 [default = k_EMessageReactionType_Invalid];
optional string reaction = 5;
optional bool is_add = 6;
}
message CFriendMessages_UpdateMessageReaction_Response {
repeated uint32 reactors = 1;
}
message CFriendMessages_IncomingMessage_Notification {
optional fixed64 steamid_friend = 1;
optional int32 chat_entry_type = 2;
@ -87,6 +112,16 @@ message CFriendMessages_IncomingMessage_Notification {
optional bool low_priority = 9;
}
message CFriendMessages_MessageReaction_Notification {
optional fixed64 steamid_friend = 1;
optional uint32 server_timestamp = 2;
optional uint32 ordinal = 3;
optional fixed64 reactor = 4;
optional .EMessageReactionType reaction_type = 5 [default = k_EMessageReactionType_Invalid];
optional string reaction = 6;
optional bool is_add = 7;
}
service FriendMessages {
option (service_description) = "A service for relaying and logging friend messages (user-to-user chats and offline messaging)";
@ -109,6 +144,10 @@ service FriendMessages {
rpc IsInFriendsUIBeta (.CFriendMessages_IsInFriendsUIBeta_Request) returns (.CFriendMessages_IsInFriendsUIBeta_Response) {
option (method_description) = "See if a friend is in the friendsui beta.";
}
rpc UpdateMessageReaction (.CFriendMessages_UpdateMessageReaction_Request) returns (.CFriendMessages_UpdateMessageReaction_Response) {
option (method_description) = "Adds/removes a reaction to/from a friend message";
}
}
service FriendMessagesClient {
@ -121,4 +160,8 @@ service FriendMessagesClient {
rpc NotifyAckMessageEcho (.CFriendMessages_AckMessage_Notification) returns (.NoResponse) {
option (method_description) = "A session acked an unread message, echo to other sessions.";
}
rpc MessageReaction (.CFriendMessages_MessageReaction_Notification) returns (.NoResponse) {
option (method_description) = "New message reaction from a friend.";
}
}

202
protobufs/steammessages_player.proto

@ -1,14 +1,37 @@
syntax = "proto2";
import "steammessages_unified_base.proto";
import "enums.proto";
option py_generic_services = true;
enum EProfileCustomizationStyle {
k_EProfileCustomizationStyleDefault = 0;
k_EProfileCustomizationStyleSelected = 1;
k_EProfileCustomizationStyleRarest = 2;
k_EProfileCustomizationStyleMostRecent = 3;
k_EProfileCustomizationStyleRandom = 4;
k_EProfileCustomizationStyleHighestRated = 5;
}
enum EAgreementType {
k_EAgreementType_Invalid = -1;
k_EAgreementType_GlobalSSA = 0;
k_EAgreementType_ChinaSSA = 1;
}
enum ENotificationSetting {
k_ENotificationSettingNotifyUseDefault = 0;
k_ENotificationSettingAlways = 1;
k_ENotificationSettingNever = 2;
}
enum ETextFilterSetting {
k_ETextFilterSettingSteamLabOptedOut = 0;
k_ETextFilterSettingEnabled = 1;
k_ETextFilterSettingEnabledAllowProfanity = 2;
k_ETextFilterSettingDisabled = 3;
}
message CPlayer_GetMutualFriendsForIncomingInvites_Request {
}
@ -27,6 +50,7 @@ message CPlayer_GetOwnedGames_Request {
optional bool include_played_free_games = 3 [(description) = "Free games are excluded by default. If this is set, free games the user has played will be returned."];
repeated uint32 appids_filter = 4 [(description) = "if set, restricts result set to the passed in apps"];
optional bool include_free_sub = 5 [(description) = "Some games are in the free sub, which are excluded by default."];
optional bool skip_unvetted_apps = 6 [default = true, (description) = "if set, skip unvetted store apps"];
}
message CPlayer_GetOwnedGames_Response {
@ -147,6 +171,8 @@ message ProfileItem {
optional uint32 item_class = 9;
optional string movie_webm = 10 [(description) = "URL to webm, if any"];
optional string movie_mp4 = 11 [(description) = "URL to mp4, if any"];
optional string movie_webm_small = 13 [(description) = "URL to small webm, if any"];
optional string movie_mp4_small = 14 [(description) = "URL to small mp4, if any"];
optional uint32 equipped_flags = 12 [(description) = "Special flags set when equipped (EProfileItemEquippedFlag)"];
}
@ -252,6 +278,7 @@ message CPlayer_GetEmoticonList_Response {
optional uint32 time_last_used = 3;
optional uint32 use_count = 4;
optional uint32 time_received = 5;
optional uint32 appid = 6;
}
repeated .CPlayer_GetEmoticonList_Response.Emoticon emoticons = 1;
@ -276,6 +303,124 @@ message CPlayer_GetAchievementsProgress_Response {
repeated .CPlayer_GetAchievementsProgress_Response.AchievementProgress achievement_progress = 1;
}
message CPlayer_GetFavoriteBadge_Request {
optional uint64 steamid = 1;
}
message CPlayer_GetFavoriteBadge_Response {
optional bool has_favorite_badge = 1;
optional uint32 badgeid = 2;
optional uint64 communityitemid = 3;
optional uint32 item_type = 4;
optional uint32 border_color = 5;
optional uint32 appid = 6;
optional uint32 level = 7;
}
message CPlayer_SetFavoriteBadge_Request {
optional uint64 communityitemid = 1;
optional uint32 badgeid = 2;
}
message CPlayer_SetFavoriteBadge_Response {
}
message CPlayer_GetProfileCustomization_Request {
optional fixed64 steamid = 1;
optional bool include_inactive_customizations = 2;
optional bool include_purchased_customizations = 3;
}
message ProfileCustomizationSlot {
optional uint32 slot = 1;
optional uint32 appid = 2;
optional uint64 publishedfileid = 3;
optional uint64 item_assetid = 4;
optional uint64 item_contextid = 5;
optional string notes = 6;
optional string title = 7;
optional uint32 accountid = 8;
optional uint32 badgeid = 9;
optional uint32 border_color = 10;
optional uint64 item_classid = 11;
optional uint64 item_instanceid = 12;
optional .EBanContentCheckResult ban_check_result = 13 [default = k_EBanContentCheckResult_NotScanned];
}
message ProfileCustomization {
optional .EProfileCustomizationType customization_type = 1 [default = k_EProfileCustomizationTypeInvalid];
optional bool large = 2;
repeated .ProfileCustomizationSlot slots = 3;
optional bool active = 4;
optional .EProfileCustomizationStyle customization_style = 5 [default = k_EProfileCustomizationStyleDefault];
optional uint64 purchaseid = 6;
optional uint32 level = 7;
}
message ProfileTheme {
optional string theme_id = 1;
optional string title = 2;
}
message CPlayer_GetProfileCustomization_Response {
message PurchasedCustomization {
optional uint64 purchaseid = 1;
optional .EProfileCustomizationType customization_type = 2 [default = k_EProfileCustomizationTypeInvalid];
optional uint32 level = 3;
}
repeated .ProfileCustomization customizations = 1;
optional uint32 slots_available = 2;
optional .ProfileTheme profile_theme = 3;
repeated .CPlayer_GetProfileCustomization_Response.PurchasedCustomization purchased_customizations = 4;
}
message CPlayer_GetPurchasedProfileCustomizations_Request {
optional fixed64 steamid = 1;
}
message CPlayer_GetPurchasedProfileCustomizations_Response {
message PurchasedCustomization {
optional uint64 purchaseid = 1;
optional .EProfileCustomizationType customization_type = 2 [default = k_EProfileCustomizationTypeInvalid];
}
repeated .CPlayer_GetPurchasedProfileCustomizations_Response.PurchasedCustomization purchased_customizations = 1;
}
message CPlayer_GetPurchasedAndUpgradedProfileCustomizations_Request {
optional fixed64 steamid = 1;
}
message CPlayer_GetPurchasedAndUpgradedProfileCustomizations_Response {
message PurchasedCustomization {
optional .EProfileCustomizationType customization_type = 1 [default = k_EProfileCustomizationTypeInvalid];
optional uint32 count = 2;
}
message UpgradedCustomization {
optional .EProfileCustomizationType customization_type = 1 [default = k_EProfileCustomizationTypeInvalid];
optional uint32 level = 2;
}
repeated .CPlayer_GetPurchasedAndUpgradedProfileCustomizations_Response.PurchasedCustomization purchased_customizations = 1;
repeated .CPlayer_GetPurchasedAndUpgradedProfileCustomizations_Response.UpgradedCustomization upgraded_customizations = 2;
}
message CPlayer_GetProfileThemesAvailable_Request {
}
message CPlayer_GetProfileThemesAvailable_Response {
repeated .ProfileTheme profile_themes = 1;
}
message CPlayer_SetProfileTheme_Request {
optional string theme_id = 1;
}
message CPlayer_SetProfileTheme_Response {
}
message CPlayer_PostStatusToFriends_Request {
optional uint32 appid = 1;
optional string status_text = 2;
@ -330,6 +475,7 @@ message CPlayer_GetLastPlayedTimes_Response {
}
message CPlayer_AcceptSSA_Request {
optional .EAgreementType agreement_type = 1 [default = k_EAgreementType_Invalid];
}
message CPlayer_AcceptSSA_Response {
@ -407,6 +553,9 @@ message CPlayer_CommunityPreferences {
optional bool hide_adult_content_violence = 1 [default = true];
optional bool hide_adult_content_sex = 2 [default = true];
optional bool parenthesize_nicknames = 4 [default = false];
optional .ETextFilterSetting text_filter_setting = 5 [default = k_ETextFilterSettingSteamLabOptedOut];
optional bool text_filter_ignore_friends = 6 [default = true];
optional uint32 text_filter_words_revision = 7;
optional uint32 timestamp_updated = 3;
}
@ -421,6 +570,19 @@ message CPlayer_SetCommunityPreferences_Request {
message CPlayer_SetCommunityPreferences_Response {
}
message CPlayer_GetTextFilterWords_Request {
}
message CPlayer_TextFilterWords {
repeated string text_filter_custom_banned_words = 1;
repeated string text_filter_custom_clean_words = 2;
optional uint32 text_filter_words_revision = 3;
}
message CPlayer_GetTextFilterWords_Response {
optional .CPlayer_TextFilterWords words = 1;
}
message CPlayer_GetNewSteamAnnouncementState_Request {
optional int32 language = 1;
}
@ -496,6 +658,10 @@ message CPlayer_CommunityPreferencesChanged_Notification {
optional .CPlayer_CommunityPreferences preferences = 1;
}
message CPlayer_TextFilterWordsChanged_Notification {
optional .CPlayer_TextFilterWords words = 1;
}
message CPlayer_PerFriendPreferencesChanged_Notification {
optional fixed32 accountid = 1;
optional .PerFriendPreferences preferences = 2;
@ -584,6 +750,34 @@ service Player {
option (method_description) = "Gets the achievement completion stats for the specified list of apps.";
}
rpc GetFavoriteBadge (.CPlayer_GetFavoriteBadge_Request) returns (.CPlayer_GetFavoriteBadge_Response) {
option (method_description) = "Gets the badge the user has set as their favorite";
}
rpc SetFavoriteBadge (.CPlayer_SetFavoriteBadge_Request) returns (.CPlayer_SetFavoriteBadge_Response) {
option (method_description) = "Sets the badge as the users favorite";
}
rpc GetProfileCustomization (.CPlayer_GetProfileCustomization_Request) returns (.CPlayer_GetProfileCustomization_Response) {
option (method_description) = "Returns the customizations (if any) for a profile";
}
rpc GetPurchasedProfileCustomizations (.CPlayer_GetPurchasedProfileCustomizations_Request) returns (.CPlayer_GetPurchasedProfileCustomizations_Response) {
option (method_description) = "Returns the purchased profile customizations";
}
rpc GetPurchasedAndUpgradedProfileCustomizations (.CPlayer_GetPurchasedAndUpgradedProfileCustomizations_Request) returns (.CPlayer_GetPurchasedAndUpgradedProfileCustomizations_Response) {
option (method_description) = "Returns the purchased and upgraded profile customizations";
}
rpc GetProfileThemesAvailable (.CPlayer_GetProfileThemesAvailable_Request) returns (.CPlayer_GetProfileThemesAvailable_Response) {
option (method_description) = "Gets themes available for the user.";
}
rpc SetProfileTheme (.CPlayer_SetProfileTheme_Request) returns (.CPlayer_SetProfileTheme_Response) {
option (method_description) = "Selects a theme for the profile";
}
rpc PostStatusToFriends (.CPlayer_PostStatusToFriends_Request) returns (.CPlayer_PostStatusToFriends_Response) {
option (method_description) = "Posts custom status text into the blotter";
}
@ -636,6 +830,10 @@ service Player {
option (method_description) = "Sets the player's community preferences";
}
rpc GetTextFilterWords (.CPlayer_GetTextFilterWords_Request) returns (.CPlayer_GetTextFilterWords_Response) {
option (method_description) = "Get the custom text filtering dictionary for this user";
}
rpc GetNewSteamAnnouncementState (.CPlayer_GetNewSteamAnnouncementState_Request) returns (.CPlayer_GetNewSteamAnnouncementState_Response) {
option (method_description) = "Calculates and returns what to display for UI that renders new steam announcement available";
}
@ -677,6 +875,10 @@ service PlayerClient {
option (method_description) = "Notification from server to client that their community preferences have changed";
}
rpc NotifyTextFilterWordsChanged (.CPlayer_TextFilterWordsChanged_Notification) returns (.NoResponse) {
option (method_description) = "Notification from server to client that their text filtering dictionary has changed";
}
rpc NotifyPerFriendPreferencesChanged (.CPlayer_PerFriendPreferencesChanged_Notification) returns (.NoResponse) {
option (method_description) = "Notification from server that per-friend preferences have changed";
}

4
protobufs/steammessages_publishedfile.proto

@ -1,5 +1,6 @@
syntax = "proto2";
import "steammessages_unified_base.proto";
import "enums.proto";
option py_generic_services = true;
@ -95,6 +96,7 @@ message PublishedFileDetails {
message Tag {
optional string tag = 1;
optional bool adminonly = 2;
optional string display_name = 3;
}
message Preview {
@ -212,6 +214,7 @@ message PublishedFileDetails {
optional .EPublishedFileRevision revision = 68 [default = k_EPublishedFileRevision_Default, (description) = "The revision of the data returned, usually k_EPublishedFileRevision_Latest, but can be another revision/snapshot depending on the caller."];
repeated .EPublishedFileRevision available_revisions = 69 [(description) = "Available revisions"];
repeated .PublishedFileDetails.Reaction reactions = 70 [(description) = "Reactions to this item"];
optional .EBanContentCheckResult ban_text_check_result = 71 [default = k_EBanContentCheckResult_NotScanned];
}
message CPublishedFile_GetDetails_Response {
@ -282,6 +285,7 @@ message CPublishedFile_GetUserFiles_Request {
optional uint32 return_playtime_stats = 31 [(description) = "Return playtime stats for the specified number of days before today."];
optional bool strip_description_bbcode = 32 [(description) = "Strips BBCode from descriptions."];
optional bool return_reactions = 35 [default = false, (description) = "If true, then reactions to items will be returned."];
optional uint32 startindex_override = 25 [(description) = "Backwards compatible for the client."];
optional .EPublishedFileRevision desired_revision = 33 [default = k_EPublishedFileRevision_Default, (description) = "Return the data for the specified revision."];
}

34
protobufs/steammessages_shader.proto

@ -40,10 +40,34 @@ message CShader_GetBucketManifest_Request {
message CShader_GetBucketManifest_Response {
optional uint64 manifestid = 1;
optional uint32 depotsize = 2;
optional uint64 depotsize = 2;
optional uint64 bucketid = 3;
}
message CShader_GetStaleBucket_Request {
optional string gpu_desc = 1;
optional string driver_desc = 2;
}
message CShader_GetStaleBucket_Response {
optional uint64 bucketid = 1;
optional uint32 appid = 2;
optional uint64 manifestid = 3;
}
message CShader_ReportExternalBuild_Request {
optional uint32 appid = 1;
optional string gpu_desc = 2;
optional string driver_desc = 3;
optional uint64 manifestid = 4;
optional string source_gpu_desc = 5;
optional string source_driver_desc = 6;
optional uint64 depotsize = 7;
}
message CShader_ReportExternalBuild_Response {
}
service Shader {
option (service_description) = "Shader methods";
@ -58,4 +82,12 @@ service Shader {
rpc GetBucketManifest (.CShader_GetBucketManifest_Request) returns (.CShader_GetBucketManifest_Response) {
option (method_description) = "Client wants to know the manifest ID to fetch (if any) for a bucket's depot";
}
rpc GetStaleBucket (.CShader_GetStaleBucket_Request) returns (.CShader_GetStaleBucket_Response) {
option (method_description) = "Job to get a stale bucket given a gpu and driver desc";
}
rpc ReportExternalBuild (.CShader_ReportExternalBuild_Request) returns (.CShader_ReportExternalBuild_Response) {
option (method_description) = "Report an exernally built bucket";
}
}

17
protobufs/steammessages_store.proto

@ -9,6 +9,19 @@ enum EUserReviewScorePreference {
k_EUserReviewScorePreference_ExcludeBombs = 2;
}
message CStore_GetMostPopularTags_Request {
optional string language = 1;
}
message CStore_GetMostPopularTags_Response {
message Tag {
optional uint32 tagid = 1;
optional string name = 2;
}
repeated .CStore_GetMostPopularTags_Response.Tag tags = 1;
}
message CStore_GetLocalizedNameForTags_Request {
optional string language = 1;
repeated uint32 tagids = 2;
@ -75,6 +88,10 @@ message CStore_StorePreferencesChanged_Notification {
service Store {
option (service_description) = "A service to access store data.";
rpc GetMostPopularTags (.CStore_GetMostPopularTags_Request) returns (.CStore_GetMostPopularTags_Response) {
option (method_description) = "Get all whitelisted tags, with localized names.";
}
rpc GetLocalizedNameForTags (.CStore_GetLocalizedNameForTags_Request) returns (.CStore_GetLocalizedNameForTags_Response) {
option (method_description) = "Gets tag names in a different language";
}

741
protobufs/steammessages_webui_friends.proto

@ -4,6 +4,27 @@ import "steammessages_unified_base.proto";
import "steammessages_base.proto";
import "steammessages_clientserver_friends.proto";
message CHelpRequestLogs_UploadUserApplicationLog_Request {
optional uint32 appid = 1;
optional string log_type = 2;
optional string version_string = 3;
optional string log_contents = 4;
}
message CHelpRequestLogs_UploadUserApplicationLog_Response {
optional uint64 id = 1;
}
message CMsgClientAppMinutesPlayedData {
repeated .CMsgClientAppMinutesPlayedData_AppMinutesPlayedData minutes_played = 1;
}
message CMsgClientAppMinutesPlayedData_AppMinutesPlayedData {
optional uint32 app_id = 1;
optional int32 forever = 2;
optional int32 last_two_weeks = 3;
}
message CCommunity_GetApps_Request {
repeated int32 appids = 1;
optional uint32 language = 2;
@ -33,6 +54,21 @@ message CCommunity_GetAppRichPresenceLocalization_Response_TokenList {
repeated .CCommunity_GetAppRichPresenceLocalization_Response_Token tokens = 2;
}
message CCommunity_GetCommentThread_Request {
optional fixed64 steamid = 1;
optional uint32 comment_thread_type = 2;
optional fixed64 gidfeature = 3;
optional fixed64 gidfeature2 = 4;
optional fixed64 commentthreadid = 5;
optional int32 start = 6;
optional int32 count = 7;
optional int32 upvoters = 8;
optional bool include_deleted = 9;
optional fixed64 gidcomment = 10;
optional uint32 time_oldest = 11;
optional bool oldest_first = 12;
}
message CCommunity_Comment {
optional fixed64 gidcomment = 1;
optional fixed64 steamid = 2;
@ -65,6 +101,16 @@ message CCommunity_GetCommentThread_Response {
optional bool can_post = 15;
}
message CCommunity_PostCommentToThread_Request {
optional fixed64 steamid = 1;
optional uint32 comment_thread_type = 2;
optional fixed64 gidfeature = 3;
optional fixed64 gidfeature2 = 4;
optional string text = 6;
optional fixed64 gidparentcomment = 7;
optional bool suppress_notifications = 8;
}
message CCommunity_PostCommentToThread_Response {
optional fixed64 gidcomment = 1;
optional fixed64 commentthreadid = 2;
@ -72,9 +118,28 @@ message CCommunity_PostCommentToThread_Response {
optional int32 upvotes = 4;
}
message CCommunity_DeleteCommentFromThread_Request {
optional fixed64 steamid = 1;
optional uint32 comment_thread_type = 2;
optional fixed64 gidfeature = 3;
optional fixed64 gidfeature2 = 4;
optional fixed64 gidcomment = 5;
optional bool undelete = 6;
}
message CCommunity_DeleteCommentFromThread_Response {
}
message CCommunity_RateCommentThread_Request {
optional string commentthreadtype = 1;
optional uint64 steamid = 2;
optional uint64 gidfeature = 3;
optional uint64 gidfeature2 = 4;
optional uint64 gidcomment = 5;
optional bool rate_up = 6;
optional bool suppress_notifications = 7;
}
message CCommunity_RateCommentThread_Response {
optional uint64 gidcomment = 1;
optional uint64 commentthreadid = 2;
@ -83,6 +148,15 @@ message CCommunity_RateCommentThread_Response {
optional bool has_upvoted = 5;
}
message CCommunity_GetCommentThreadRatings_Request {
optional string commentthreadtype = 1;
optional uint64 steamid = 2;
optional uint64 gidfeature = 3;
optional uint64 gidfeature2 = 4;
optional uint64 gidcomment = 5;
optional uint32 max_results = 6;
}
message CCommunity_GetCommentThreadRatings_Response {
optional uint64 commentthreadid = 1;
optional uint64 gidcomment = 2;
@ -94,7 +168,6 @@ message CCommunity_GetCommentThreadRatings_Response {
message CCommunity_RateClanAnnouncement_Request {
optional uint64 announcementid = 1;
optional bool vote_up = 2;
optional uint32 clan_accountid = 3;
}
message CCommunity_RateClanAnnouncement_Response {
@ -109,25 +182,33 @@ message CCommunity_GetClanAnnouncementVoteForUser_Response {
optional bool voted_down = 2;
}
message CCommunity_GetAvatarHistory_Response {
repeated .CCommunity_GetAvatarHistory_Response_AvatarData avatars = 1;
}
message CCommunity_GetAvatarHistory_Response_AvatarData {
optional string avatar_sha1 = 1;
optional bool user_uploaded = 2;
optional uint32 timestamp = 3;
}
message CAppPriority {
optional uint32 priority = 1;
repeated uint32 appid = 2;
}
message CCommunity_GetUserPartnerEventNews_Request {
optional uint32 count = 1;
optional uint32 offset = 2;
optional uint32 rtime32_start_time = 3;
optional uint32 rtime32_end_time = 4;
repeated uint32 language_preference = 5;
repeated int32 filter_event_type = 6 [(description) = "enum; suggested type: ECommunityWordFilterType"];
optional bool filter_to_appid = 7;
repeated .CAppPriority app_list = 8;
optional uint32 count_after = 9 [default = 0];
optional uint32 count_before = 10 [default = 0];
}
message CCommunity_GetUserPartnerEventNews_Response {
repeated .CClanMatchEventByRange results = 1;
}
message CCommunity_GetBestEventsForUser_Request {
optional bool include_steam_blog = 1;
optional uint32 filter_to_played_within_days = 2;
}
message CCommunity_PartnerEventResult {
optional uint32 clanid = 1;
optional fixed64 event_gid = 2;
@ -142,6 +223,9 @@ message CCommunity_GetBestEventsForUser_Response {
repeated .CCommunity_PartnerEventResult results = 1;
}
message CCommunity_ClearUserPartnerEventsAppPriorities_Request {
}
message CCommunity_ClearUserPartnerEventsAppPriorities_Response {
}
@ -150,16 +234,31 @@ message CCommunity_PartnerEventsAppPriority {
optional int32 user_app_priority = 2;
}
message CCommunity_GetUserPartnerEventsAppPriorities_Request {
}
message CCommunity_GetUserPartnerEventsAppPriorities_Response {
repeated .CCommunity_PartnerEventsAppPriority priorities = 1;
}
message CCommunity_ClearSinglePartnerEventsAppPriority_Request {
optional uint32 appid = 1;
}
message CCommunity_ClearSinglePartnerEventsAppPriority_Response {
}
message CCommunity_PartnerEventsShowMoreForApp_Request {
optional uint32 appid = 1;
}
message CCommunity_PartnerEventsShowMoreForApp_Response {
}
message CCommunity_PartnerEventsShowLessForApp_Request {
optional uint32 appid = 1;
}
message CCommunity_PartnerEventsShowLessForApp_Response {
}
@ -170,7 +269,7 @@ message CCommunity_MarkPartnerEventsForUser_Request {
message CCommunity_MarkPartnerEventsForUser_Request_PartnerEventMarking {
optional uint32 clanid = 1;
optional fixed64 event_gid = 2;
optional int32 display_location = 3 [(description) = "enum"];
optional int32 display_location = 3 [(description) = "enum; suggested type: EPartnerEventDisplayLocation"];
optional bool mark_shown = 4;
optional bool mark_read = 5;
}
@ -178,53 +277,96 @@ message CCommunity_MarkPartnerEventsForUser_Request_PartnerEventMarking {
message CCommunity_MarkPartnerEventsForUser_Response {
}
message CCommunity_GetUserPartnerEventViewStatus_Response {
repeated .CCommunity_GetUserPartnerEventViewStatus_Response_PartnerEvent events = 1;
message CProductImpressionsFromClient_Notification {
repeated .CProductImpressionsFromClient_Notification_Impression impressions = 1;
}
message CCommunity_GetUserPartnerEventViewStatus_Response_PartnerEvent {
optional fixed64 event_gid = 1;
optional uint32 last_shown_time = 2;
optional uint32 last_read_time = 3;
optional uint32 clan_account_id = 4;
message CProductImpressionsFromClient_Notification_Impression {
optional int32 type = 1 [(description) = "enum; suggested type: EProductImpressionFromClientType"];
optional uint32 appid = 2;
optional uint32 num_impressions = 3;
}
message CWebRTCClient_InitiateWebRTCConnection_Request {
optional string sdp = 1;
message CFriendsListCategory {
optional uint32 groupid = 1;
optional string name = 2;
repeated uint32 accountid_members = 3;
}
message CWebRTCClient_InitiateWebRTCConnection_Response {
optional string remote_description = 1;
message CFriendsList_GetCategories_Request {
}
message CWebRTC_WebRTCSessionConnected_Notification {
optional uint32 ssrc = 1;
optional uint32 client_ip = 2;
optional uint32 client_port = 3;
optional uint32 server_ip = 4;
optional uint32 server_port = 5;
message CFriendsList_GetCategories_Response {
repeated .CFriendsListCategory categories = 1;
}
message CWebRTC_WebRTCUpdateRemoteDescription_Notification {
optional string remote_description = 1;
optional uint64 remote_description_version = 2;
repeated .CWebRTC_WebRTCUpdateRemoteDescription_Notification_CSSRCToAccountIDMapping ssrcs_to_accountids = 3;
message CFriendsListFavoriteEntry {
optional uint32 accountid = 1;
optional uint32 clanid = 2;
optional uint64 chat_group_id = 3;
}
message CWebRTC_WebRTCUpdateRemoteDescription_Notification_CSSRCToAccountIDMapping {
optional uint32 ssrc = 1;
optional uint32 accountid = 2;
message CFriendsList_GetFavorites_Request {
}
message CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Request {
optional uint32 ip_webrtc_server = 1;
optional uint32 port_webrtc_server = 2;
optional uint32 ip_webrtc_session_client = 3;
optional uint32 port_webrtc_session_client = 4;
optional uint64 remote_description_version = 5;
message CFriendsList_GetFavorites_Response {
repeated .CFriendsListFavoriteEntry favorites = 1;
}
message CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Response {
message CFriendsList_SetFavorites_Request {
repeated .CFriendsListFavoriteEntry favorites = 1;
}
message CFriendsList_SetFavorites_Response {
}
message CFriendsList_FavoritesChanged_Notification {
repeated .CFriendsListFavoriteEntry favorites = 1;
}
message CFriendsList_GetFriendsList_Request {
}
message CFriendsList_GetFriendsList_Response {
optional .CMsgClientFriendsList friendslist = 1;
}
message CMsgClientUCMPublishedFileDeleted {
optional fixed64 published_file_id = 1;
optional uint32 app_id = 2;
}
message CMsgCREEnumeratePublishedFiles {
optional uint32 app_id = 1;
optional int32 query_type = 2;
optional uint32 start_index = 3;
optional uint32 days = 4;
optional uint32 count = 5;
repeated string tags = 6;
repeated string user_tags = 7;
optional uint32 matching_file_type = 8 [default = 13];
}
message CMsgCREEnumeratePublishedFilesResponse {
optional int32 eresult = 1 [default = 2];
repeated .CMsgCREEnumeratePublishedFilesResponse_PublishedFileId published_files = 2;
optional uint32 total_results = 3;
}
message CMsgCREEnumeratePublishedFilesResponse_PublishedFileId {
optional fixed64 published_file_id = 1;
optional int32 votes_for = 2;
optional int32 votes_against = 3;
optional int32 reports = 4;
optional float score = 5;
}
message CClan_RespondToClanInvite_Request {
optional fixed64 steamid = 1;
optional bool accept = 2;
}
message CClan_RespondToClanInvite_Response {
}
message CVoiceChat_RequestOneOnOneChat_Request {
@ -317,6 +459,10 @@ message CVoiceChat_UploadClientVoiceChatLogs_Request {
message CVoiceChat_UploadClientVoiceChatLogs_Response {
}
message CVoiceChat_LeaveVoiceChat_Request {
optional fixed64 voice_chatid = 1;
}
message CVoiceChat_LeaveVoiceChat_Response {
}
@ -338,421 +484,139 @@ message CVoiceChat_VoiceChatEnded_Notification {
optional uint64 chat_group_id = 5;
}
message CSteamTV_CreateBroadcastChannel_Response {
optional fixed64 broadcast_channel_id = 1;
}
message CSteamTV_GetBroadcastChannelID_Response {
optional fixed64 broadcast_channel_id = 1;
optional string unique_name = 2;
optional fixed64 steamid = 3;
}
message CSteamTV_SetBroadcastChannelProfile_Response {
}
message CSteamTV_GetBroadcastChannelProfile_Response {
optional string unique_name = 1;
optional fixed64 owner_steamid = 2;
optional string name = 3;
optional string language = 4;
optional string headline = 5;
optional string summary = 6;
optional string schedule = 7;
optional string rules = 8;
optional string panels = 9;
optional bool is_partnered = 10;
}
message CSteamTV_SetBroadcastChannelImage_Response {
optional string replace_image_hash = 1;
}
message CSteamTV_GetBroadcastChannelImages_Response {
repeated .CSteamTV_GetBroadcastChannelImages_Response_Images images = 1;
}
message CSteamTV_GetBroadcastChannelImages_Response_Images {
optional int32 image_type = 1 [(description) = "enum"];
optional string image_path = 2;
optional uint32 image_index = 3;
}
message CSteamTV_GetBroadcastChannelLinks_Response {
repeated .CSteamTV_GetBroadcastChannelLinks_Response_Links links = 1;
}
message CSteamTV_GetBroadcastChannelLinks_Response_Links {
optional uint32 link_index = 1;
optional string url = 2;
optional string link_description = 3;
optional uint32 left = 4;
optional uint32 top = 5;
optional uint32 width = 6;
optional uint32 height = 7;
}
message CSteamTV_SetBroadcastChannelLinkRegions_Request_Links {
optional uint32 link_index = 1;
optional string url = 2;
optional string link_description = 3;
optional uint32 left = 4;
optional uint32 top = 5;
optional uint32 width = 6;
optional uint32 height = 7;
}
message CSteamTV_SetBroadcastChannelLinkRegions_Response {
}
message CSteamTV_GetBroadcastChannelStatus_Response {
optional bool is_live = 1;
optional bool is_disabled = 2;
optional uint32 appid = 3;
optional uint64 viewers = 4;
optional uint64 views = 5;
optional fixed64 broadcaster_steamid = 6;
optional string thumbnail_url = 7;
optional uint64 followers = 8;
optional uint64 subscribers = 9;
optional string unique_name = 10;
optional uint64 broadcast_session_id = 11;
}
message GetBroadcastChannelEntry {
optional fixed64 broadcast_channel_id = 1;
optional string unique_name = 2;
optional string name = 3;
optional uint32 appid = 4;
optional uint64 viewers = 5;
optional uint64 views = 6;
optional string thumbnail_url = 7;
optional uint64 followers = 8;
optional string headline = 9;
optional string avatar_url = 10;
optional fixed64 broadcaster_steamid = 11;
optional uint64 subscribers = 12;
optional string background_url = 13;
optional bool is_featured = 14;
optional bool is_disabled = 15;
optional bool is_live = 16;
optional string language = 17;
optional uint32 reports = 18;
optional bool is_partnered = 19;
}
message CSteamTV_GetFollowedChannels_Response {
repeated .GetBroadcastChannelEntry results = 1;
}
message CSteamTV_GetSubscribedChannels_Response {
repeated .GetBroadcastChannelEntry results = 1;
}
message CSteamTV_FollowBroadcastChannel_Response {
optional bool is_followed = 1;
}
message CSteamTV_SubscribeBroadcastChannel_Response {
optional bool is_subscribed = 1;
}
message CSteamTV_ReportBroadcastChannel_Response {
}
message CSteamTV_GetBroadcastChannelInteraction_Response {
optional bool is_followed = 1;
optional bool is_subscribed = 2;
}
message CSteamTV_Game {
optional uint32 appid = 1;
optional string name = 2;
optional string image = 3;
optional uint64 viewers = 4;
repeated .GetBroadcastChannelEntry channels = 5;
optional string release_date = 6;
optional string developer = 7;
optional string publisher = 8;
}
message CSteamTV_GetGames_Response {
repeated .CSteamTV_Game results = 1;
}
message CSteamTV_GetChannels_Response {
repeated .GetBroadcastChannelEntry results = 1;
}
message CSteamTV_GetBroadcastChannelBroadcasters_Response {
repeated .CSteamTV_GetBroadcastChannelBroadcasters_Response_Broadcaster broadcasters = 1;
}
message CSteamTV_GetBroadcastChannelBroadcasters_Response_Broadcaster {
optional fixed64 steamid = 1;
optional string name = 2;
optional string rtmp_token = 3;
}
message CSteamTV_ChatBan {
optional fixed64 issuer_steamid = 1;
optional fixed64 chatter_steamid = 2;
optional string time_expires = 3;
optional bool permanent = 4;
optional string name = 5;
}
message CSteamTV_AddChatBan_Request {
optional fixed64 broadcast_channel_id = 1;
optional fixed64 chatter_steamid = 2;
optional uint32 duration = 3;
optional bool permanent = 4;
optional bool undo = 5;
}
message CSteamTV_AddChatBan_Response {
}
message CSteamTV_GetChatBans_Response {
repeated .CSteamTV_ChatBan results = 1;
}
message CSteamTV_AddChatModerator_Request {
optional fixed64 broadcast_channel_id = 1;
optional fixed64 moderator_steamid = 2;
optional bool undo = 3;
}
message CSteamTV_AddChatModerator_Response {
}
message CSteamTV_GetChatModerators_Request {
optional fixed64 broadcast_channel_id = 1;
}
message CSteamTV_ChatModerator {
optional fixed64 steamid = 1;
optional string name = 2;
}
message CSteamTV_GetChatModerators_Response {
repeated .CSteamTV_ChatModerator results = 1;
}
message CSteamTV_AddWordBan_Response {
}
message CSteamTV_GetWordBans_Response {
repeated string results = 1;
}
message CSteamTV_JoinChat_Request {
optional fixed64 broadcast_channel_id = 1;
}
message CSteamTV_JoinChat_Response {
optional fixed64 chat_id = 1;
optional string view_url_template = 2;
repeated uint64 flair_group_ids = 3;
}
message CSteamTV_Search_Response {
repeated .GetBroadcastChannelEntry results = 1;
}
message CSteamTV_GetSteamTVUserSettings_Response {
optional bool stream_live_email = 1;
optional bool stream_live_notification = 2;
}
message CSteamTV_SetSteamTVUserSettings_Response {
}
message CSteamTV_GetMyBroadcastChannels_Response {
repeated .GetBroadcastChannelEntry results = 1;
}
message CSteamTV_HomePageTemplate_Takeover {
repeated .GetBroadcastChannelEntry broadcasts = 1;
}
message CSteamTV_HomePageTemplate_SingleGame {
repeated .GetBroadcastChannelEntry broadcasts = 1;
optional uint32 appid = 2;
optional string title = 3;
}
message GameListEntry {
optional uint32 appid = 1;
optional string game_name = 2;
optional .GetBroadcastChannelEntry broadcast = 3;
}
message CSteamTV_HomePageTemplate_GameList {
repeated .GameListEntry entries = 1;
optional string title = 2;
}
message CSteamTV_HomePageTemplate_QuickExplore {
repeated .GetBroadcastChannelEntry broadcasts = 1;
optional string title = 2;
}
message CSteamTV_HomePageTemplate_ConveyorBelt {
repeated .GetBroadcastChannelEntry broadcasts = 1;
optional string title = 2;
}
message CSteamTV_HomePageTemplate_WatchParty {
optional .GetBroadcastChannelEntry broadcast = 1;
optional string title = 2;
optional uint64 chat_group_id = 3;
}
message CSteamTV_HomePageTemplate_Developer {
optional .GetBroadcastChannelEntry broadcast = 1;
optional string title = 2;
}
message CSteamTV_HomePageTemplate_Event {
optional string title = 1;
}
message CSteamTV_HomePageContentRow {
optional int32 template_type = 1 [(description) = "enum"];
optional .CSteamTV_HomePageTemplate_Takeover takeover = 2;
optional .CSteamTV_HomePageTemplate_SingleGame single_game = 3;
optional .CSteamTV_HomePageTemplate_GameList game_list = 4;
optional .CSteamTV_HomePageTemplate_QuickExplore quick_explore = 5;
optional .CSteamTV_HomePageTemplate_ConveyorBelt conveyor_belt = 6;
optional .CSteamTV_HomePageTemplate_WatchParty watch_party = 7;
optional .CSteamTV_HomePageTemplate_Developer developer = 8;
optional .CSteamTV_HomePageTemplate_Event event = 9;
}
message CSteamTV_GetHomePageContents_Response {
repeated .CSteamTV_HomePageContentRow rows = 1;
}
message CSteamTV_BroadcastClipInfo {
optional uint64 broadcast_clip_id = 1;
optional uint64 channel_id = 2;
optional uint32 app_id = 3;
optional fixed64 broadcaster_steamid = 4;
optional fixed64 creator_steamid = 5;
optional string video_description = 6;
optional uint32 live_time = 7;
optional uint32 length_ms = 8;
optional string thumbnail_path = 9;
}
message CSteamTV_GetBroadcastChannelClips_Response {
repeated .CSteamTV_BroadcastClipInfo clips = 1;
optional string thumbnail_host = 2;
}
message CFriendsListCategory {
optional uint32 groupid = 1;
optional string name = 2;
repeated uint32 accountid_members = 3;
message CWebRTCClient_InitiateWebRTCConnection_Request {
optional string sdp = 1;
}
message CFriendsList_GetCategories_Request {
message CWebRTCClient_InitiateWebRTCConnection_Response {
optional string remote_description = 1;
}
message CFriendsList_GetCategories_Response {
repeated .CFriendsListCategory categories = 1;
message CWebRTC_WebRTCSessionConnected_Notification {
optional uint32 ssrc = 1;
optional uint32 client_ip = 2;
optional uint32 client_port = 3;
optional uint32 server_ip = 4;
optional uint32 server_port = 5;
}
message CFriendsListFavoriteEntry {
optional uint32 accountid = 1;
optional uint32 clanid = 2;
optional uint64 chat_group_id = 3;
message CWebRTC_WebRTCUpdateRemoteDescription_Notification {
optional string remote_description = 1;
optional uint64 remote_description_version = 2;
repeated .CWebRTC_WebRTCUpdateRemoteDescription_Notification_CSSRCToAccountIDMapping ssrcs_to_accountids = 3;
}
message CFriendsList_GetFavorites_Request {
message CWebRTC_WebRTCUpdateRemoteDescription_Notification_CSSRCToAccountIDMapping {
optional uint32 ssrc = 1;
optional uint32 accountid = 2;
}
message CFriendsList_GetFavorites_Response {
repeated .CFriendsListFavoriteEntry favorites = 1;
message CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Request {
optional uint32 ip_webrtc_server = 1;
optional uint32 port_webrtc_server = 2;
optional uint32 ip_webrtc_session_client = 3;
optional uint32 port_webrtc_session_client = 4;
optional uint64 remote_description_version = 5;
}
message CFriendsList_SetFavorites_Request {
repeated .CFriendsListFavoriteEntry favorites = 1;
message CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Response {
}
message CFriendsList_SetFavorites_Response {
message CMobilePerAccount_GetSettings_Request {
}
message CFriendsList_FavoritesChanged_Notification {
repeated .CFriendsListFavoriteEntry favorites = 1;
message CMobilePerAccount_GetSettings_Response {
optional bool has_settings = 4;
optional bool allow_sale_push = 2;
optional bool allow_wishlist_push = 3;
optional uint32 chat_notification_level = 5;
optional bool notify_direct_chat = 6;
optional bool notify_group_chat = 7;
optional bool allow_event_push = 8 [default = true];
}
message CFriendsList_GetFriendsList_Request {
message CMobilePerAccount_SetSettings_Request {
optional bool allow_sale_push = 2;
optional bool allow_wishlist_push = 3;
optional uint32 chat_notification_level = 4;
optional bool notify_direct_chat = 5;
optional bool notify_group_chat = 6;
optional bool allow_event_push = 7 [default = true];
}
message CFriendsList_GetFriendsList_Response {
optional .CMsgClientFriendsList friendslist = 1;
message CMobilePerAccount_SetSettings_Response {
}
message CClan_RespondToClanInvite_Request {
optional fixed64 steamid = 1;
optional bool accept = 2;
message CMobileDevice_RegisterMobileDevice_Request {
optional string deviceid = 1;
optional string language = 2;
optional bool push_enabled = 3;
optional string app_version = 4;
optional string os_version = 5;
optional string device_model = 6;
optional string twofactor_device_identifier = 7;
optional int32 mobile_app = 8 [(description) = "enum; suggested type: EMobileApp"];
}
message CClan_RespondToClanInvite_Response {
message CMobileDevice_RegisterMobileDevice_Response {
optional uint32 unique_deviceid = 2;
}
message CProductImpressionsFromClient_Notification {
repeated .CProductImpressionsFromClient_Notification_Impression impressions = 1;
message CMobileDevice_DeregisterMobileDevice_Notification {
optional string deviceid = 1;
}
message CProductImpressionsFromClient_Notification_Impression {
optional int32 type = 1 [(description) = "enum"];
optional uint32 appid = 2;
optional uint32 num_impressions = 3;
message UnknownProto {
}
message NotImplemented {
service HelpRequestLogs {
rpc UploadUserApplicationLog (.CHelpRequestLogs_UploadUserApplicationLog_Request) returns (.CHelpRequestLogs_UploadUserApplicationLog_Response);
}
service Community {
rpc GetApps (.CCommunity_GetApps_Request) returns (.CCommunity_GetApps_Response);
rpc GetAppRichPresenceLocalization (.CCommunity_GetAppRichPresenceLocalization_Request) returns (.CCommunity_GetAppRichPresenceLocalization_Response);
rpc GetCommentThread (.NotImplemented) returns (.CCommunity_GetCommentThread_Response);
rpc PostCommentToThread (.NotImplemented) returns (.CCommunity_PostCommentToThread_Response);
rpc DeleteCommentFromThread (.NotImplemented) returns (.CCommunity_DeleteCommentFromThread_Response);
rpc RateCommentThread (.NotImplemented) returns (.CCommunity_RateCommentThread_Response);
rpc GetCommentThreadRatings (.NotImplemented) returns (.CCommunity_GetCommentThreadRatings_Response);
rpc GetCommentThread (.CCommunity_GetCommentThread_Request) returns (.CCommunity_GetCommentThread_Response);
rpc PostCommentToThread (.CCommunity_PostCommentToThread_Request) returns (.CCommunity_PostCommentToThread_Response);
rpc DeleteCommentFromThread (.CCommunity_DeleteCommentFromThread_Request) returns (.CCommunity_DeleteCommentFromThread_Response);
rpc RateCommentThread (.CCommunity_RateCommentThread_Request) returns (.CCommunity_RateCommentThread_Response);
rpc GetCommentThreadRatings (.CCommunity_GetCommentThreadRatings_Request) returns (.CCommunity_GetCommentThreadRatings_Response);
rpc RateClanAnnouncement (.CCommunity_RateClanAnnouncement_Request) returns (.CCommunity_RateClanAnnouncement_Response);
rpc GetClanAnnouncementVoteForUser (.CCommunity_GetClanAnnouncementVoteForUser_Request) returns (.CCommunity_GetClanAnnouncementVoteForUser_Response);
rpc GetAvatarHistory (.NotImplemented) returns (.CCommunity_GetAvatarHistory_Response);
rpc GetUserPartnerEventNews (.NotImplemented) returns (.CCommunity_GetUserPartnerEventNews_Response);
rpc GetBestEventsForUser (.NotImplemented) returns (.CCommunity_GetBestEventsForUser_Response);
rpc GetUserPartnerEventNews (.CCommunity_GetUserPartnerEventNews_Request) returns (.CCommunity_GetUserPartnerEventNews_Response);
rpc GetBestEventsForUser (.CCommunity_GetBestEventsForUser_Request) returns (.CCommunity_GetBestEventsForUser_Response);
rpc MarkPartnerEventsForUser (.CCommunity_MarkPartnerEventsForUser_Request) returns (.CCommunity_MarkPartnerEventsForUser_Response);
rpc GetUserPartnerEventViewStatus (.NotImplemented) returns (.CCommunity_GetUserPartnerEventViewStatus_Response);
rpc PartnerEventsShowMoreForApp (.NotImplemented) returns (.CCommunity_PartnerEventsShowMoreForApp_Response);
rpc PartnerEventsShowLessForApp (.NotImplemented) returns (.CCommunity_PartnerEventsShowLessForApp_Response);
rpc ClearUserPartnerEventsAppPriorities (.NotImplemented) returns (.CCommunity_ClearUserPartnerEventsAppPriorities_Response);
rpc GetUserPartnerEventsAppPriorities (.NotImplemented) returns (.CCommunity_GetUserPartnerEventsAppPriorities_Response);
rpc ClearSinglePartnerEventsAppPriority (.NotImplemented) returns (.CCommunity_ClearSinglePartnerEventsAppPriority_Response);
rpc PartnerEventsShowMoreForApp (.CCommunity_PartnerEventsShowMoreForApp_Request) returns (.CCommunity_PartnerEventsShowMoreForApp_Response);
rpc PartnerEventsShowLessForApp (.CCommunity_PartnerEventsShowLessForApp_Request) returns (.CCommunity_PartnerEventsShowLessForApp_Response);
rpc ClearUserPartnerEventsAppPriorities (.CCommunity_ClearUserPartnerEventsAppPriorities_Request) returns (.CCommunity_ClearUserPartnerEventsAppPriorities_Response);
rpc GetUserPartnerEventsAppPriorities (.CCommunity_GetUserPartnerEventsAppPriorities_Request) returns (.CCommunity_GetUserPartnerEventsAppPriorities_Response);
rpc ClearSinglePartnerEventsAppPriority (.CCommunity_ClearSinglePartnerEventsAppPriority_Request) returns (.CCommunity_ClearSinglePartnerEventsAppPriority_Response);
}
service WebRTCClient {
rpc InitiateWebRTCConnection (.CWebRTCClient_InitiateWebRTCConnection_Request) returns (.CWebRTCClient_InitiateWebRTCConnection_Response);
rpc AcknowledgeUpdatedRemoteDescription (.CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Request) returns (.CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Response);
service ExperimentService {
rpc ReportProductImpressionsFromClient (.UnknownProto) returns (.NoResponse);
}
service WebRTCClientNotifications {
rpc NotifyWebRTCSessionConnected (.CWebRTC_WebRTCSessionConnected_Notification) returns (.NoResponse);
rpc NotifyWebRTCUpdateRemoteDescription (.CWebRTC_WebRTCUpdateRemoteDescription_Notification) returns (.NoResponse);
service FriendsList {
rpc GetCategories (.CFriendsList_GetCategories_Request) returns (.CFriendsList_GetCategories_Response);
rpc GetFriendsList (.CFriendsList_GetFriendsList_Request) returns (.CFriendsList_GetFriendsList_Response);
rpc GetFavorites (.CFriendsList_GetFavorites_Request) returns (.CFriendsList_GetFavorites_Response);
rpc SetFavorites (.CFriendsList_SetFavorites_Request) returns (.CFriendsList_SetFavorites_Response);
}
service FriendsListClient {
rpc FavoritesChanged (.CFriendsList_FavoritesChanged_Notification) returns (.NoResponse);
}
service Clan {
rpc RespondToClanInvite (.CClan_RespondToClanInvite_Request) returns (.CClan_RespondToClanInvite_Response);
}
service VoiceChat {
rpc UpdateVoiceChatWebRTCData (.CVoiceChat_UpdateVoiceChatWebRTCData_Request) returns (.CVoiceChat_UpdateVoiceChatWebRTCData_Response);
rpc NotifyUserVoiceStatus (.CVoiceChat_UserVoiceStatus_Notification) returns (.NoResponse);
rpc UploadClientVoiceChatLogs (.CVoiceChat_UploadClientVoiceChatLogs_Request) returns (.CVoiceChat_UploadClientVoiceChatLogs_Response);
rpc LeaveVoiceChat (.NotImplemented) returns (.CVoiceChat_LeaveVoiceChat_Response);
rpc LeaveVoiceChat (.CVoiceChat_LeaveVoiceChat_Request) returns (.CVoiceChat_LeaveVoiceChat_Response);
rpc RequestOneOnOneChat (.CVoiceChat_RequestOneOnOneChat_Request) returns (.CVoiceChat_RequestOneOnOneChat_Response);
rpc AnswerOneOnOneChat (.CVoiceChat_AnswerOneOnOneChat_Request) returns (.CVoiceChat_AnswerOneOnOneChat_Response);
rpc EndOneOnOneChat (.CVoiceChat_EndOneOnOneChat_Request) returns (.CVoiceChat_EndOneOnOneChat_Response);
@ -769,56 +633,23 @@ service VoiceChatClient {
rpc NotifyOneOnOneChatResponse (.CVoiceChat_OneOnOneChatRequestResponse_Notification) returns (.NoResponse);
}
service SteamTV {
rpc CreateBroadcastChannel (.NotImplemented) returns (.CSteamTV_CreateBroadcastChannel_Response);
rpc GetBroadcastChannelID (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelID_Response);
rpc SetBroadcastChannelProfile (.NotImplemented) returns (.CSteamTV_SetBroadcastChannelProfile_Response);
rpc GetBroadcastChannelProfile (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelProfile_Response);
rpc SetBroadcastChannelImage (.NotImplemented) returns (.CSteamTV_SetBroadcastChannelImage_Response);
rpc GetBroadcastChannelImages (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelImages_Response);
rpc SetBroadcastChannelLinkRegions (.NotImplemented) returns (.CSteamTV_SetBroadcastChannelLinkRegions_Response);
rpc GetBroadcastChannelLinks (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelLinks_Response);
rpc GetBroadcastChannelBroadcasters (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelBroadcasters_Response);
rpc GetFollowedChannels (.NotImplemented) returns (.CSteamTV_GetFollowedChannels_Response);
rpc GetSubscribedChannels (.NotImplemented) returns (.CSteamTV_GetSubscribedChannels_Response);
rpc GetBroadcastChannelStatus (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelStatus_Response);
rpc FollowBroadcastChannel (.NotImplemented) returns (.CSteamTV_FollowBroadcastChannel_Response);
rpc SubscribeBroadcastChannel (.NotImplemented) returns (.CSteamTV_SubscribeBroadcastChannel_Response);
rpc GetBroadcastChannelClips (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelClips_Response);
rpc ReportBroadcastChannel (.NotImplemented) returns (.CSteamTV_ReportBroadcastChannel_Response);
rpc GetBroadcastChannelInteraction (.NotImplemented) returns (.CSteamTV_GetBroadcastChannelInteraction_Response);
rpc GetGames (.NotImplemented) returns (.CSteamTV_GetGames_Response);
rpc GetChannels (.NotImplemented) returns (.CSteamTV_GetChannels_Response);
rpc AddChatBan (.CSteamTV_AddChatBan_Request) returns (.CSteamTV_AddChatBan_Response);
rpc GetChatBans (.NotImplemented) returns (.CSteamTV_GetChatBans_Response);
rpc AddChatModerator (.CSteamTV_AddChatModerator_Request) returns (.CSteamTV_AddChatModerator_Response);
rpc GetChatModerators (.CSteamTV_GetChatModerators_Request) returns (.CSteamTV_GetChatModerators_Response);
rpc AddWordBan (.NotImplemented) returns (.CSteamTV_AddWordBan_Response);
rpc GetWordBans (.NotImplemented) returns (.CSteamTV_GetWordBans_Response);
rpc JoinChat (.CSteamTV_JoinChat_Request) returns (.CSteamTV_JoinChat_Response);
rpc Search (.NotImplemented) returns (.CSteamTV_Search_Response);
rpc GetSteamTVUserSettings (.NotImplemented) returns (.CSteamTV_GetSteamTVUserSettings_Response);
rpc SetSteamTVUserSettings (.NotImplemented) returns (.CSteamTV_SetSteamTVUserSettings_Response);
rpc GetMyBroadcastChannels (.NotImplemented) returns (.CSteamTV_GetMyBroadcastChannels_Response);
rpc GetHomePageContents (.NotImplemented) returns (.CSteamTV_GetHomePageContents_Response);
}
service FriendsList {
rpc GetCategories (.CFriendsList_GetCategories_Request) returns (.CFriendsList_GetCategories_Response);
rpc GetFriendsList (.CFriendsList_GetFriendsList_Request) returns (.CFriendsList_GetFriendsList_Response);
rpc GetFavorites (.CFriendsList_GetFavorites_Request) returns (.CFriendsList_GetFavorites_Response);
rpc SetFavorites (.CFriendsList_SetFavorites_Request) returns (.CFriendsList_SetFavorites_Response);
service WebRTCClient {
rpc InitiateWebRTCConnection (.CWebRTCClient_InitiateWebRTCConnection_Request) returns (.CWebRTCClient_InitiateWebRTCConnection_Response);
rpc AcknowledgeUpdatedRemoteDescription (.CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Request) returns (.CWebRTCClient_AcknowledgeUpdatedRemoteDescription_Response);
}
service FriendsListClient {
rpc FavoritesChanged (.CFriendsList_FavoritesChanged_Notification) returns (.NoResponse);
service WebRTCClientNotifications {
rpc NotifyWebRTCSessionConnected (.CWebRTC_WebRTCSessionConnected_Notification) returns (.NoResponse);
rpc NotifyWebRTCUpdateRemoteDescription (.CWebRTC_WebRTCUpdateRemoteDescription_Notification) returns (.NoResponse);
}
service Clan {
rpc RespondToClanInvite (.CClan_RespondToClanInvite_Request) returns (.CClan_RespondToClanInvite_Response);
service MobilePerAccount {
rpc GetSettings (.CMobilePerAccount_GetSettings_Request) returns (.CMobilePerAccount_GetSettings_Response);
rpc SetSettings (.CMobilePerAccount_SetSettings_Request) returns (.CMobilePerAccount_SetSettings_Response);
}
service ExperimentService {
rpc ReportProductImpressionsFromClient (.NotImplemented) returns (.NoResponse);
service MobileDevice {
rpc RegisterMobileDevice (.CMobileDevice_RegisterMobileDevice_Request) returns (.CMobileDevice_RegisterMobileDevice_Response);
rpc DeregisterMobileDevice (.CMobileDevice_DeregisterMobileDevice_Notification) returns (.NoResponse);
}

3
requirements.txt

@ -5,6 +5,7 @@ vdf>=3.3
gevent>=1.3.0
protobuf>=3.0.0
gevent-eventemitter~=2.1
enum34==1.1.2; python_version < '3.4'
PyYAML==5.1
cachetools>=3.0.0
enum34==1.1.2; python_version < '3.4'
win-inet-pton; python_version == '2.7' and sys_platform == 'win32'

6
setup.py

@ -3,7 +3,6 @@
from setuptools import setup, find_packages
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
@ -20,6 +19,8 @@ install_requires = [
'requests>=2.9.1',
'vdf>=3.3',
'cachetools>=3.0.0',
"win-inet-pton; python_version == '2.7' and sys_platform == 'win32'",
"enum34==1.1.2; python_version < '3.4'",
]
install_extras = {
@ -30,9 +31,6 @@ install_extras = {
],
}
if sys.version_info < (3, 4):
install_requires.append('enum34>=1.0.4')
setup(
name='steam',
version=__version__,

6
steam/client/__init__.py

@ -31,7 +31,7 @@ from steam.core.crypto import sha1_hash
from steam.steamid import SteamID
from steam.exceptions import SteamError
from steam.client.builtins import BuiltinBase
from steam.utils import ip_from_int, ip_to_int
from steam.utils import ip4_from_int, ip4_to_int
from steam.utils.proto import proto_fill_from_dict
if six.PY2:
@ -174,7 +174,7 @@ class SteamClient(CMClient, BuiltinBase):
data = {
'cell_id': self.cm_servers.cell_id,
'last_updated': self.cm_servers.last_updated,
'servers': list(zip(map(ip_from_int, msg.body.cm_addresses), msg.body.cm_ports)),
'servers': list(zip(map(ip4_from_int, msg.body.cm_addresses), msg.body.cm_ports)),
}
try:
with open(filepath, 'wb') as f:
@ -539,7 +539,7 @@ class SteamClient(CMClient, BuiltinBase):
message.body.chat_mode = self.chat_mode
if login_id is None:
message.body.obfuscated_private_ip.v4 = ip_to_int(self.connection.local_address) ^ 0xF00DBAAD
message.body.obfuscated_private_ip.v4 = ip4_to_int(self.connection.local_address) ^ 0xF00DBAAD
else:
message.body.obfuscated_private_ip.v4 = login_id

2
steam/client/builtins/apps.py

@ -3,7 +3,6 @@ import vdf
from steam.enums import EResult, EServerType
from steam.enums.emsg import EMsg
from steam.core.msg import MsgProto
from steam.utils import ip_from_int
from steam.utils.proto import proto_fill_from_dict
@ -108,7 +107,6 @@ class Apps(object):
for app in apps:
app_info = message.body.apps.add()
app_info.only_public = False
if tokens:
app_info.access_token = tokens['apps'].get(app['appid'] if isinstance(app, dict) else app, 0)

15
steam/client/builtins/gameservers.py

@ -38,7 +38,7 @@ from steam.steamid import SteamID
from steam.core.msg import MsgProto
from steam.enums import EResult
from steam.enums.emsg import EMsg
from steam.utils import ip_to_int, ip_from_int
from steam.utils import ip4_to_int, ip4_from_int, ip6_from_bytes
from steam.utils.proto import proto_to_dict
from steam.exceptions import SteamError
@ -81,13 +81,13 @@ class SteamGameServers(object):
.. code:: python
[{'auth_players': 0, 'server_ip': '1.2.3.4', 'server_port': 27015},
{'auth_players': 6, 'server_ip': '1.2.3.4', 'server_port': 27016},
[{'auth_players': 0, 'server_ip': '1.2.3.4', 'query_port': 27015},
{'auth_players': 6, 'server_ip': '1:2:3:4::5', 'query_port': 27016},
...
]
"""
if 'geo_location_ip' in kw:
kw['geo_location_ip'] = ip_to_int(kw['geo_location_ip'])
kw['geo_location_ip'] = ip4_to_int(kw['geo_location_ip'])
kw['filter_text'] = filter_text
kw['max_servers'] = max_servers
@ -103,7 +103,12 @@ class SteamGameServers(object):
resp = proto_to_dict(resp)
for server in resp['servers']:
server['server_ip'] = ip_from_int(server['server_ip'])
server.pop('deprecated_server_ip', None) # no point returning this
if 'v4' in server['server_ip']:
server['server_ip'] = ip4_from_int(server['server_ip']['v4'])
else:
server['server_ip'] = ip6_from_bytes(server['server_ip']['v6'])
return resp['servers']

4
steam/core/cm.py

@ -19,7 +19,7 @@ from steam.core import crypto
from steam.core.connection import TCPConnection
from steam.core.msg import Msg, MsgProto
from eventemitter import EventEmitter
from steam.utils import ip_from_int
from steam.utils import ip4_from_int
from steam.utils.proto import is_proto, clear_proto_bit
@ -392,7 +392,7 @@ class CMClient(EventEmitter):
def _handle_cm_list(self, msg):
self._LOG.debug("Updating CM list")
new_servers = zip(map(ip_from_int, msg.body.cm_addresses), msg.body.cm_ports)
new_servers = zip(map(ip4_from_int, msg.body.cm_addresses), msg.body.cm_ports)
self.cm_servers.clear()
self.cm_servers.merge_list(new_servers)
self.cm_servers.cell_id = self.cell_id

522
steam/protobufs/enums_pb2.py

@ -0,0 +1,522 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: enums.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import steam.protobufs.steammessages_base_pb2 as steammessages__base__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='enums.proto',
package='',
syntax='proto2',
serialized_options=_b('H\001\220\001\001\200\265\030\001'),
serialized_pb=_b('\n\x0b\x65nums.proto\x1a\x18steammessages_base.proto*\x94\t\n\x17\x45PublishedFileQueryType\x12)\n%k_PublishedFileQueryType_RankedByVote\x10\x00\x12\x34\n0k_PublishedFileQueryType_RankedByPublicationDate\x10\x01\x12\x42\n>k_PublishedFileQueryType_AcceptedForGameRankedByAcceptanceDate\x10\x02\x12*\n&k_PublishedFileQueryType_RankedByTrend\x10\x03\x12\x46\nBk_PublishedFileQueryType_FavoritedByFriendsRankedByPublicationDate\x10\x04\x12\x44\n@k_PublishedFileQueryType_CreatedByFriendsRankedByPublicationDate\x10\x05\x12\x35\n1k_PublishedFileQueryType_RankedByNumTimesReported\x10\x06\x12J\nFk_PublishedFileQueryType_CreatedByFollowedUsersRankedByPublicationDate\x10\x07\x12(\n$k_PublishedFileQueryType_NotYetRated\x10\x08\x12=\n9k_PublishedFileQueryType_RankedByTotalUniqueSubscriptions\x10\t\x12\x32\n.k_PublishedFileQueryType_RankedByTotalVotesAsc\x10\n\x12,\n(k_PublishedFileQueryType_RankedByVotesUp\x10\x0b\x12/\n+k_PublishedFileQueryType_RankedByTextSearch\x10\x0c\x12\x32\n.k_PublishedFileQueryType_RankedByPlaytimeTrend\x10\r\x12\x32\n.k_PublishedFileQueryType_RankedByTotalPlaytime\x10\x0e\x12\x39\n5k_PublishedFileQueryType_RankedByAveragePlaytimeTrend\x10\x0f\x12<\n8k_PublishedFileQueryType_RankedByLifetimeAveragePlaytime\x10\x10\x12:\n6k_PublishedFileQueryType_RankedByPlaytimeSessionsTrend\x10\x11\x12=\n9k_PublishedFileQueryType_RankedByLifetimePlaytimeSessions\x10\x12\x12?\n;k_PublishedFileQueryType_RankedByInappropriateContentRating\x10\x13*\xbc\x01\n#EPublishedFileInappropriateProvider\x12\x31\n-k_EPublishedFileInappropriateProvider_Invalid\x10\x00\x12\x30\n,k_EPublishedFileInappropriateProvider_Google\x10\x01\x12\x30\n,k_EPublishedFileInappropriateProvider_Amazon\x10\x02*\xd5\x02\n!EPublishedFileInappropriateResult\x12\x32\n.k_EPublishedFileInappropriateResult_NotScanned\x10\x00\x12\x34\n0k_EPublishedFileInappropriateResult_VeryUnlikely\x10\x01\x12\x30\n,k_EPublishedFileInappropriateResult_Unlikely\x10\x1e\x12\x30\n,k_EPublishedFileInappropriateResult_Possible\x10\x32\x12.\n*k_EPublishedFileInappropriateResult_Likely\x10K\x12\x32\n.k_EPublishedFileInappropriateResult_VeryLikely\x10\x64*\xb1\x03\n\x11\x45PersonaStateFlag\x12\'\n#k_EPersonaStateFlag_HasRichPresence\x10\x01\x12&\n\"k_EPersonaStateFlag_InJoinableGame\x10\x02\x12\x1e\n\x1ak_EPersonaStateFlag_Golden\x10\x04\x12*\n&k_EPersonaStateFlag_RemotePlayTogether\x10\x08\x12&\n!k_EPersonaStateFlag_ClientTypeWeb\x10\x80\x02\x12)\n$k_EPersonaStateFlag_ClientTypeMobile\x10\x80\x04\x12*\n%k_EPersonaStateFlag_ClientTypeTenfoot\x10\x80\x08\x12%\n k_EPersonaStateFlag_ClientTypeVR\x10\x80\x10\x12*\n%k_EPersonaStateFlag_LaunchTypeGamepad\x10\x80 \x12-\n(k_EPersonaStateFlag_LaunchTypeCompatTool\x10\x80@*\xa7\x01\n\x15\x45\x43ontentCheckProvider\x12#\n\x1fk_EContentCheckProvider_Invalid\x10\x00\x12\"\n\x1ek_EContentCheckProvider_Google\x10\x01\x12\"\n\x1ek_EContentCheckProvider_Amazon\x10\x02\x12!\n\x1dk_EContentCheckProvider_Local\x10\x03*\xd8\x02\n\x16\x45\x42\x61nContentCheckResult\x12\'\n#k_EBanContentCheckResult_NotScanned\x10\x00\x12\"\n\x1ek_EBanContentCheckResult_Reset\x10\x01\x12*\n&k_EBanContentCheckResult_NeedsChecking\x10\x02\x12)\n%k_EBanContentCheckResult_VeryUnlikely\x10\x05\x12%\n!k_EBanContentCheckResult_Unlikely\x10\x1e\x12%\n!k_EBanContentCheckResult_Possible\x10\x32\x12#\n\x1fk_EBanContentCheckResult_Likely\x10K\x12\'\n#k_EBanContentCheckResult_VeryLikely\x10\x64*\xec\x08\n\x19\x45ProfileCustomizationType\x12&\n\"k_EProfileCustomizationTypeInvalid\x10\x00\x12\x36\n2k_EProfileCustomizationTypeRareAchievementShowcase\x10\x01\x12,\n(k_EProfileCustomizationTypeGameCollector\x10\x02\x12+\n\'k_EProfileCustomizationTypeItemShowcase\x10\x03\x12,\n(k_EProfileCustomizationTypeTradeShowcase\x10\x04\x12%\n!k_EProfileCustomizationTypeBadges\x10\x05\x12+\n\'k_EProfileCustomizationTypeFavoriteGame\x10\x06\x12\x31\n-k_EProfileCustomizationTypeScreenshotShowcase\x10\x07\x12)\n%k_EProfileCustomizationTypeCustomText\x10\x08\x12,\n(k_EProfileCustomizationTypeFavoriteGroup\x10\t\x12-\n)k_EProfileCustomizationTypeRecommendation\x10\n\x12+\n\'k_EProfileCustomizationTypeWorkshopItem\x10\x0b\x12)\n%k_EProfileCustomizationTypeMyWorkshop\x10\x0c\x12.\n*k_EProfileCustomizationTypeArtworkShowcase\x10\r\x12,\n(k_EProfileCustomizationTypeVideoShowcase\x10\x0e\x12%\n!k_EProfileCustomizationTypeGuides\x10\x0f\x12\'\n#k_EProfileCustomizationTypeMyGuides\x10\x10\x12+\n\'k_EProfileCustomizationTypeAchievements\x10\x11\x12)\n%k_EProfileCustomizationTypeGreenlight\x10\x12\x12+\n\'k_EProfileCustomizationTypeMyGreenlight\x10\x13\x12%\n!k_EProfileCustomizationTypeSalien\x10\x14\x12\x35\n1k_EProfileCustomizationTypeLoyaltyRewardReactions\x10\x15\x12\x34\n0k_EProfileCustomizationTypeSingleArtworkShowcase\x10\x16\x12\x38\n4k_EProfileCustomizationTypeAchievementsCompletionist\x10\x17\x42\tH\x01\x90\x01\x01\x80\xb5\x18\x01')
,
dependencies=[steammessages__base__pb2.DESCRIPTOR,])
_EPUBLISHEDFILEQUERYTYPE = _descriptor.EnumDescriptor(
name='EPublishedFileQueryType',
full_name='EPublishedFileQueryType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByVote', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByPublicationDate', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_AcceptedForGameRankedByAcceptanceDate', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByTrend', index=3, number=3,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_FavoritedByFriendsRankedByPublicationDate', index=4, number=4,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_CreatedByFriendsRankedByPublicationDate', index=5, number=5,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByNumTimesReported', index=6, number=6,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_CreatedByFollowedUsersRankedByPublicationDate', index=7, number=7,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_NotYetRated', index=8, number=8,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByTotalUniqueSubscriptions', index=9, number=9,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByTotalVotesAsc', index=10, number=10,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByVotesUp', index=11, number=11,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByTextSearch', index=12, number=12,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByPlaytimeTrend', index=13, number=13,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByTotalPlaytime', index=14, number=14,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByAveragePlaytimeTrend', index=15, number=15,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByLifetimeAveragePlaytime', index=16, number=16,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByPlaytimeSessionsTrend', index=17, number=17,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByLifetimePlaytimeSessions', index=18, number=18,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_PublishedFileQueryType_RankedByInappropriateContentRating', index=19, number=19,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=42,
serialized_end=1214,
)
_sym_db.RegisterEnumDescriptor(_EPUBLISHEDFILEQUERYTYPE)
EPublishedFileQueryType = enum_type_wrapper.EnumTypeWrapper(_EPUBLISHEDFILEQUERYTYPE)
_EPUBLISHEDFILEINAPPROPRIATEPROVIDER = _descriptor.EnumDescriptor(
name='EPublishedFileInappropriateProvider',
full_name='EPublishedFileInappropriateProvider',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateProvider_Invalid', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateProvider_Google', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateProvider_Amazon', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=1217,
serialized_end=1405,
)
_sym_db.RegisterEnumDescriptor(_EPUBLISHEDFILEINAPPROPRIATEPROVIDER)
EPublishedFileInappropriateProvider = enum_type_wrapper.EnumTypeWrapper(_EPUBLISHEDFILEINAPPROPRIATEPROVIDER)
_EPUBLISHEDFILEINAPPROPRIATERESULT = _descriptor.EnumDescriptor(
name='EPublishedFileInappropriateResult',
full_name='EPublishedFileInappropriateResult',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateResult_NotScanned', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateResult_VeryUnlikely', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateResult_Unlikely', index=2, number=30,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateResult_Possible', index=3, number=50,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateResult_Likely', index=4, number=75,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPublishedFileInappropriateResult_VeryLikely', index=5, number=100,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=1408,
serialized_end=1749,
)
_sym_db.RegisterEnumDescriptor(_EPUBLISHEDFILEINAPPROPRIATERESULT)
EPublishedFileInappropriateResult = enum_type_wrapper.EnumTypeWrapper(_EPUBLISHEDFILEINAPPROPRIATERESULT)
_EPERSONASTATEFLAG = _descriptor.EnumDescriptor(
name='EPersonaStateFlag',
full_name='EPersonaStateFlag',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_HasRichPresence', index=0, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_InJoinableGame', index=1, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_Golden', index=2, number=4,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_RemotePlayTogether', index=3, number=8,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_ClientTypeWeb', index=4, number=256,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_ClientTypeMobile', index=5, number=512,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_ClientTypeTenfoot', index=6, number=1024,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_ClientTypeVR', index=7, number=2048,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_LaunchTypeGamepad', index=8, number=4096,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EPersonaStateFlag_LaunchTypeCompatTool', index=9, number=8192,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=1752,
serialized_end=2185,
)
_sym_db.RegisterEnumDescriptor(_EPERSONASTATEFLAG)
EPersonaStateFlag = enum_type_wrapper.EnumTypeWrapper(_EPERSONASTATEFLAG)
_ECONTENTCHECKPROVIDER = _descriptor.EnumDescriptor(
name='EContentCheckProvider',
full_name='EContentCheckProvider',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_EContentCheckProvider_Invalid', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EContentCheckProvider_Google', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EContentCheckProvider_Amazon', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EContentCheckProvider_Local', index=3, number=3,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2188,
serialized_end=2355,
)
_sym_db.RegisterEnumDescriptor(_ECONTENTCHECKPROVIDER)
EContentCheckProvider = enum_type_wrapper.EnumTypeWrapper(_ECONTENTCHECKPROVIDER)
_EBANCONTENTCHECKRESULT = _descriptor.EnumDescriptor(
name='EBanContentCheckResult',
full_name='EBanContentCheckResult',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_NotScanned', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_Reset', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_NeedsChecking', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_VeryUnlikely', index=3, number=5,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_Unlikely', index=4, number=30,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_Possible', index=5, number=50,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_Likely', index=6, number=75,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EBanContentCheckResult_VeryLikely', index=7, number=100,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2358,
serialized_end=2702,
)
_sym_db.RegisterEnumDescriptor(_EBANCONTENTCHECKRESULT)
EBanContentCheckResult = enum_type_wrapper.EnumTypeWrapper(_EBANCONTENTCHECKRESULT)
_EPROFILECUSTOMIZATIONTYPE = _descriptor.EnumDescriptor(
name='EProfileCustomizationType',
full_name='EProfileCustomizationType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeInvalid', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeRareAchievementShowcase', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeGameCollector', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeItemShowcase', index=3, number=3,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeTradeShowcase', index=4, number=4,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeBadges', index=5, number=5,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeFavoriteGame', index=6, number=6,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeScreenshotShowcase', index=7, number=7,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeCustomText', index=8, number=8,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeFavoriteGroup', index=9, number=9,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeRecommendation', index=10, number=10,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeWorkshopItem', index=11, number=11,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeMyWorkshop', index=12, number=12,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeArtworkShowcase', index=13, number=13,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeVideoShowcase', index=14, number=14,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeGuides', index=15, number=15,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeMyGuides', index=16, number=16,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeAchievements', index=17, number=17,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeGreenlight', index=18, number=18,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeMyGreenlight', index=19, number=19,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeSalien', index=20, number=20,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeLoyaltyRewardReactions', index=21, number=21,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeSingleArtworkShowcase', index=22, number=22,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='k_EProfileCustomizationTypeAchievementsCompletionist', index=23, number=23,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2705,
serialized_end=3837,
)
_sym_db.RegisterEnumDescriptor(_EPROFILECUSTOMIZATIONTYPE)
EProfileCustomizationType = enum_type_wrapper.EnumTypeWrapper(_EPROFILECUSTOMIZATIONTYPE)
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
k_EPublishedFileInappropriateProvider_Invalid = 0
k_EPublishedFileInappropriateProvider_Google = 1
k_EPublishedFileInappropriateProvider_Amazon = 2
k_EPublishedFileInappropriateResult_NotScanned = 0
k_EPublishedFileInappropriateResult_VeryUnlikely = 1
k_EPublishedFileInappropriateResult_Unlikely = 30
k_EPublishedFileInappropriateResult_Possible = 50
k_EPublishedFileInappropriateResult_Likely = 75
k_EPublishedFileInappropriateResult_VeryLikely = 100
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
k_EContentCheckProvider_Invalid = 0
k_EContentCheckProvider_Google = 1
k_EContentCheckProvider_Amazon = 2
k_EContentCheckProvider_Local = 3
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
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
DESCRIPTOR.enum_types_by_name['EPublishedFileQueryType'] = _EPUBLISHEDFILEQUERYTYPE
DESCRIPTOR.enum_types_by_name['EPublishedFileInappropriateProvider'] = _EPUBLISHEDFILEINAPPROPRIATEPROVIDER
DESCRIPTOR.enum_types_by_name['EPublishedFileInappropriateResult'] = _EPUBLISHEDFILEINAPPROPRIATERESULT
DESCRIPTOR.enum_types_by_name['EPersonaStateFlag'] = _EPERSONASTATEFLAG
DESCRIPTOR.enum_types_by_name['EContentCheckProvider'] = _ECONTENTCHECKPROVIDER
DESCRIPTOR.enum_types_by_name['EBanContentCheckResult'] = _EBANCONTENTCHECKRESULT
DESCRIPTOR.enum_types_by_name['EProfileCustomizationType'] = _EPROFILECUSTOMIZATIONTYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)

153
steam/protobufs/steammessages_base_pb2.py

File diff suppressed because one or more lines are too long

375
steam/protobufs/steammessages_broadcast_pb2.py

File diff suppressed because one or more lines are too long

769
steam/protobufs/steammessages_chat_pb2.py

File diff suppressed because one or more lines are too long

559
steam/protobufs/steammessages_clientserver_2_pb2.py

File diff suppressed because one or more lines are too long

35
steam/protobufs/steammessages_clientserver_friends_pb2.py

File diff suppressed because one or more lines are too long

60
steam/protobufs/steammessages_clientserver_login_pb2.py

File diff suppressed because one or more lines are too long

772
steam/protobufs/steammessages_clientserver_pb2.py

File diff suppressed because one or more lines are too long

14
steam/protobufs/steammessages_credentials_pb2.py

File diff suppressed because one or more lines are too long

83
steam/protobufs/steammessages_depotbuilder_pb2.py

@ -23,7 +23,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='',
syntax='proto2',
serialized_options=_b('\220\001\001'),
serialized_pb=_b('\n steammessages_depotbuilder.proto\x1a steammessages_unified_base.proto\"w\n&CContentBuilder_InitDepotBuild_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x0f\n\x07\x64\x65potid\x18\x02 \x01(\r\x12\x17\n\x0fworkshop_itemid\x18\x03 \x01(\x04\x12\x14\n\x0c\x66or_local_cs\x18\x04 \x01(\x08\"\xb1\x02\n\'CContentBuilder_InitDepotBuild_Response\x12\x1b\n\x13\x62\x61seline_manifestid\x18\x01 \x01(\x04\x12\x12\n\nchunk_size\x18\x02 \x01(\r\x12\x0f\n\x07\x61\x65s_key\x18\x03 \x01(\x0c\x12\x0f\n\x07rsa_key\x18\x04 \x01(\x0c\x12\x10\n\x08url_host\x18\x05 \x01(\t\x12 \n\x18offset_detection_enabled\x18\x06 \x01(\x08\x12(\n offset_detection_min_clean_chunk\x18\x07 \x01(\r\x12)\n!offset_detection_blast_radius_pre\x18\x08 \x01(\r\x12*\n\"offset_detection_blast_radius_post\x18\t \x01(\r\"\xad\x01\n(CContentBuilder_StartDepotUpload_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x0f\n\x07\x64\x65potid\x18\x02 \x01(\r\x12\x17\n\x0fworkshop_itemid\x18\x03 \x01(\x04\x12\x14\n\x0c\x66or_local_cs\x18\x04 \x01(\x08\x12\x1b\n\x13\x62\x61seline_manifestid\x18\x05 \x01(\x04\x12\x15\n\rmanifest_size\x18\x06 \x01(\r\"G\n)CContentBuilder_StartDepotUpload_Response\x12\x1a\n\x12\x64\x65pot_build_handle\x18\x01 \x01(\x04\"Z\n-CContentBuilder_GetMissingDepotChunks_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x1a\n\x12\x64\x65pot_build_handle\x18\x02 \x01(\x04\"\xd2\x01\n.CContentBuilder_GetMissingDepotChunks_Response\x12N\n\x0emissing_chunks\x18\x01 \x03(\x0b\x32\x36.CContentBuilder_GetMissingDepotChunks_Response.Chunks\x12\x1c\n\x14total_missing_chunks\x18\x02 \x01(\r\x12\x1b\n\x13total_missing_bytes\x18\x03 \x01(\x04\x1a\x15\n\x06\x43hunks\x12\x0b\n\x03sha\x18\x01 \x01(\x0c\"V\n)CContentBuilder_FinishDepotUpload_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x1a\n\x12\x64\x65pot_build_handle\x18\x02 \x01(\x04\"U\n*CContentBuilder_FinishDepotUpload_Response\x12\x12\n\nmanifestid\x18\x01 \x01(\x04\x12\x13\n\x0bprev_reused\x18\x02 \x01(\x08\"\xd9\x01\n&CContentBuilder_CommitAppBuild_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12G\n\x0f\x64\x65pot_manifests\x18\x02 \x03(\x0b\x32..CContentBuilder_CommitAppBuild_Request.Depots\x12\x13\n\x0b\x62uild_notes\x18\x04 \x01(\t\x12\x13\n\x0blive_branch\x18\x05 \x01(\t\x1a-\n\x06\x44\x65pots\x12\x0f\n\x07\x64\x65potid\x18\x01 \x01(\r\x12\x12\n\nmanifestid\x18\x02 \x01(\x04\":\n\'CContentBuilder_CommitAppBuild_Response\x12\x0f\n\x07\x62uildid\x18\x01 \x01(\r\"c\n)CContentBuilder_SignInstallScript_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x0f\n\x07\x64\x65potid\x18\x02 \x01(\r\x12\x16\n\x0einstall_script\x18\x03 \x01(\t\"K\n*CContentBuilder_SignInstallScript_Response\x12\x1d\n\x15signed_install_script\x18\x01 \x01(\t2\x92\x08\n\x0e\x43ontentBuilder\x12\x98\x01\n\x0eInitDepotBuild\x12\'.CContentBuilder_InitDepotBuild_Request\x1a(.CContentBuilder_InitDepotBuild_Response\"3\x82\xb5\x18/Get inital parameters to start building a depot\x12\x9e\x01\n\x10StartDepotUpload\x12).CContentBuilder_StartDepotUpload_Request\x1a*.CContentBuilder_StartDepotUpload_Response\"3\x82\xb5\x18/Start uploading manifest and chunks for a depot\x12\xa9\x01\n\x15GetMissingDepotChunks\x12..CContentBuilder_GetMissingDepotChunks_Request\x1a/.CContentBuilder_GetMissingDepotChunks_Response\"/\x82\xb5\x18+Get list of missing chunks for depot upload\x12\xb1\x01\n\x11\x46inishDepotUpload\x12*.CContentBuilder_FinishDepotUpload_Request\x1a+.CContentBuilder_FinishDepotUpload_Response\"C\x82\xb5\x18?Commit a depot build after manifest and all chunks are uploaded\x12\xa7\x01\n\x0e\x43ommitAppBuild\x12\'.CContentBuilder_CommitAppBuild_Request\x1a(.CContentBuilder_CommitAppBuild_Response\"B\x82\xb5\x18>Combine previous depot uploads into an app build and commit it\x12\x88\x01\n\x11SignInstallScript\x12*.CContentBuilder_SignInstallScript_Request\x1a+.CContentBuilder_SignInstallScript_Response\"\x1a\x82\xb5\x18\x16Sign an install script\x1a/\x82\xb5\x18+Interface to build and upload depot contentB\x03\x90\x01\x01')
serialized_pb=_b('\n steammessages_depotbuilder.proto\x1a steammessages_unified_base.proto\"\x8e\x01\n&CContentBuilder_InitDepotBuild_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x0f\n\x07\x64\x65potid\x18\x02 \x01(\r\x12\x17\n\x0fworkshop_itemid\x18\x03 \x01(\x04\x12\x14\n\x0c\x66or_local_cs\x18\x04 \x01(\x08\x12\x15\n\rtarget_branch\x18\x05 \x01(\t\"\x88\x03\n\'CContentBuilder_InitDepotBuild_Response\x12\x1b\n\x13\x62\x61seline_manifestid\x18\x01 \x01(\x04\x12\x12\n\nchunk_size\x18\x02 \x01(\r\x12\x0f\n\x07\x61\x65s_key\x18\x03 \x01(\x0c\x12\x0f\n\x07rsa_key\x18\x04 \x01(\x0c\x12\x10\n\x08url_host\x18\x05 \x01(\t\x12 \n\x18offset_detection_enabled\x18\x06 \x01(\x08\x12(\n offset_detection_min_clean_chunk\x18\x07 \x01(\r\x12)\n!offset_detection_blast_radius_pre\x18\x08 \x01(\r\x12*\n\"offset_detection_blast_radius_post\x18\t \x01(\r\x12)\n!offset_detection_max_distance_pre\x18\n \x01(\r\x12*\n\"offset_detection_max_distance_post\x18\x0b \x01(\r\"\xad\x01\n(CContentBuilder_StartDepotUpload_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x0f\n\x07\x64\x65potid\x18\x02 \x01(\r\x12\x17\n\x0fworkshop_itemid\x18\x03 \x01(\x04\x12\x14\n\x0c\x66or_local_cs\x18\x04 \x01(\x08\x12\x1b\n\x13\x62\x61seline_manifestid\x18\x05 \x01(\x04\x12\x15\n\rmanifest_size\x18\x06 \x01(\r\"G\n)CContentBuilder_StartDepotUpload_Response\x12\x1a\n\x12\x64\x65pot_build_handle\x18\x01 \x01(\x04\"Z\n-CContentBuilder_GetMissingDepotChunks_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x1a\n\x12\x64\x65pot_build_handle\x18\x02 \x01(\x04\"\xd2\x01\n.CContentBuilder_GetMissingDepotChunks_Response\x12N\n\x0emissing_chunks\x18\x01 \x03(\x0b\x32\x36.CContentBuilder_GetMissingDepotChunks_Response.Chunks\x12\x1c\n\x14total_missing_chunks\x18\x02 \x01(\r\x12\x1b\n\x13total_missing_bytes\x18\x03 \x01(\x04\x1a\x15\n\x06\x43hunks\x12\x0b\n\x03sha\x18\x01 \x01(\x0c\"V\n)CContentBuilder_FinishDepotUpload_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x1a\n\x12\x64\x65pot_build_handle\x18\x02 \x01(\x04\"U\n*CContentBuilder_FinishDepotUpload_Response\x12\x12\n\nmanifestid\x18\x01 \x01(\x04\x12\x13\n\x0bprev_reused\x18\x02 \x01(\x08\"\xd9\x01\n&CContentBuilder_CommitAppBuild_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12G\n\x0f\x64\x65pot_manifests\x18\x02 \x03(\x0b\x32..CContentBuilder_CommitAppBuild_Request.Depots\x12\x13\n\x0b\x62uild_notes\x18\x04 \x01(\t\x12\x13\n\x0blive_branch\x18\x05 \x01(\t\x1a-\n\x06\x44\x65pots\x12\x0f\n\x07\x64\x65potid\x18\x01 \x01(\r\x12\x12\n\nmanifestid\x18\x02 \x01(\x04\":\n\'CContentBuilder_CommitAppBuild_Response\x12\x0f\n\x07\x62uildid\x18\x01 \x01(\r\"c\n)CContentBuilder_SignInstallScript_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x0f\n\x07\x64\x65potid\x18\x02 \x01(\r\x12\x16\n\x0einstall_script\x18\x03 \x01(\t\"K\n*CContentBuilder_SignInstallScript_Response\x12\x1d\n\x15signed_install_script\x18\x01 \x01(\t2\x92\x08\n\x0e\x43ontentBuilder\x12\x98\x01\n\x0eInitDepotBuild\x12\'.CContentBuilder_InitDepotBuild_Request\x1a(.CContentBuilder_InitDepotBuild_Response\"3\x82\xb5\x18/Get inital parameters to start building a depot\x12\x9e\x01\n\x10StartDepotUpload\x12).CContentBuilder_StartDepotUpload_Request\x1a*.CContentBuilder_StartDepotUpload_Response\"3\x82\xb5\x18/Start uploading manifest and chunks for a depot\x12\xa9\x01\n\x15GetMissingDepotChunks\x12..CContentBuilder_GetMissingDepotChunks_Request\x1a/.CContentBuilder_GetMissingDepotChunks_Response\"/\x82\xb5\x18+Get list of missing chunks for depot upload\x12\xb1\x01\n\x11\x46inishDepotUpload\x12*.CContentBuilder_FinishDepotUpload_Request\x1a+.CContentBuilder_FinishDepotUpload_Response\"C\x82\xb5\x18?Commit a depot build after manifest and all chunks are uploaded\x12\xa7\x01\n\x0e\x43ommitAppBuild\x12\'.CContentBuilder_CommitAppBuild_Request\x1a(.CContentBuilder_CommitAppBuild_Response\"B\x82\xb5\x18>Combine previous depot uploads into an app build and commit it\x12\x88\x01\n\x11SignInstallScript\x12*.CContentBuilder_SignInstallScript_Request\x1a+.CContentBuilder_SignInstallScript_Response\"\x1a\x82\xb5\x18\x16Sign an install script\x1a/\x82\xb5\x18+Interface to build and upload depot contentB\x03\x90\x01\x01')
,
dependencies=[steammessages__unified__base__pb2.DESCRIPTOR,])
@ -65,6 +65,13 @@ _CCONTENTBUILDER_INITDEPOTBUILD_REQUEST = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='target_branch', full_name='CContentBuilder_InitDepotBuild_Request.target_branch', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
@ -77,8 +84,8 @@ _CCONTENTBUILDER_INITDEPOTBUILD_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=70,
serialized_end=189,
serialized_start=71,
serialized_end=213,
)
@ -152,6 +159,20 @@ _CCONTENTBUILDER_INITDEPOTBUILD_RESPONSE = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='offset_detection_max_distance_pre', full_name='CContentBuilder_InitDepotBuild_Response.offset_detection_max_distance_pre', index=9,
number=10, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='offset_detection_max_distance_post', full_name='CContentBuilder_InitDepotBuild_Response.offset_detection_max_distance_post', index=10,
number=11, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
@ -164,8 +185,8 @@ _CCONTENTBUILDER_INITDEPOTBUILD_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=192,
serialized_end=497,
serialized_start=216,
serialized_end=608,
)
@ -230,8 +251,8 @@ _CCONTENTBUILDER_STARTDEPOTUPLOAD_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=500,
serialized_end=673,
serialized_start=611,
serialized_end=784,
)
@ -261,8 +282,8 @@ _CCONTENTBUILDER_STARTDEPOTUPLOAD_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=675,
serialized_end=746,
serialized_start=786,
serialized_end=857,
)
@ -299,8 +320,8 @@ _CCONTENTBUILDER_GETMISSINGDEPOTCHUNKS_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=748,
serialized_end=838,
serialized_start=859,
serialized_end=949,
)
@ -330,8 +351,8 @@ _CCONTENTBUILDER_GETMISSINGDEPOTCHUNKS_RESPONSE_CHUNKS = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1030,
serialized_end=1051,
serialized_start=1141,
serialized_end=1162,
)
_CCONTENTBUILDER_GETMISSINGDEPOTCHUNKS_RESPONSE = _descriptor.Descriptor(
@ -374,8 +395,8 @@ _CCONTENTBUILDER_GETMISSINGDEPOTCHUNKS_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=841,
serialized_end=1051,
serialized_start=952,
serialized_end=1162,
)
@ -412,8 +433,8 @@ _CCONTENTBUILDER_FINISHDEPOTUPLOAD_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1053,
serialized_end=1139,
serialized_start=1164,
serialized_end=1250,
)
@ -450,8 +471,8 @@ _CCONTENTBUILDER_FINISHDEPOTUPLOAD_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1141,
serialized_end=1226,
serialized_start=1252,
serialized_end=1337,
)
@ -488,8 +509,8 @@ _CCONTENTBUILDER_COMMITAPPBUILD_REQUEST_DEPOTS = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1401,
serialized_end=1446,
serialized_start=1512,
serialized_end=1557,
)
_CCONTENTBUILDER_COMMITAPPBUILD_REQUEST = _descriptor.Descriptor(
@ -539,8 +560,8 @@ _CCONTENTBUILDER_COMMITAPPBUILD_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1229,
serialized_end=1446,
serialized_start=1340,
serialized_end=1557,
)
@ -570,8 +591,8 @@ _CCONTENTBUILDER_COMMITAPPBUILD_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1448,
serialized_end=1506,
serialized_start=1559,
serialized_end=1617,
)
@ -615,8 +636,8 @@ _CCONTENTBUILDER_SIGNINSTALLSCRIPT_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1508,
serialized_end=1607,
serialized_start=1619,
serialized_end=1718,
)
@ -646,8 +667,8 @@ _CCONTENTBUILDER_SIGNINSTALLSCRIPT_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1609,
serialized_end=1684,
serialized_start=1720,
serialized_end=1795,
)
_CCONTENTBUILDER_GETMISSINGDEPOTCHUNKS_RESPONSE_CHUNKS.containing_type = _CCONTENTBUILDER_GETMISSINGDEPOTCHUNKS_RESPONSE
@ -777,8 +798,8 @@ _CONTENTBUILDER = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=_b('\202\265\030+Interface to build and upload depot content'),
serialized_start=1687,
serialized_end=2729,
serialized_start=1798,
serialized_end=2840,
methods=[
_descriptor.MethodDescriptor(
name='InitDepotBuild',

357
steam/protobufs/steammessages_friendmessages_pb2.py

File diff suppressed because one or more lines are too long

2305
steam/protobufs/steammessages_player_pb2.py

File diff suppressed because one or more lines are too long

330
steam/protobufs/steammessages_publishedfile_pb2.py

File diff suppressed because one or more lines are too long

238
steam/protobufs/steammessages_shader_pb2.py

@ -23,7 +23,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='',
syntax='proto2',
serialized_options=_b('\220\001\001'),
serialized_pb=_b('\n\x1asteammessages_shader.proto\x1a steammessages_unified_base.proto\"\xc9\x01\n\x1e\x43Shader_RegisterShader_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x10\n\x08gpu_desc\x18\x02 \x01(\t\x12\x13\n\x0b\x64river_desc\x18\x03 \x01(\t\x12\x37\n\x07shaders\x18\x04 \x03(\x0b\x32&.CShader_RegisterShader_Request.Shader\x1a\x38\n\x06Shader\x12\x15\n\rcache_key_sha\x18\x01 \x01(\x0c\x12\x17\n\x0fshader_code_sha\x18\x02 \x01(\x0c\"<\n\x1f\x43Shader_RegisterShader_Response\x12\x19\n\x11requested_codeids\x18\x01 \x03(\r\"\xa0\x01\n\x1a\x43Shader_SendShader_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x37\n\x07shaders\x18\x02 \x03(\x0b\x32&.CShader_SendShader_Request.ShaderCode\x1a:\n\nShaderCode\x12\x17\n\x0fshader_code_sha\x18\x01 \x01(\x0c\x12\x13\n\x0bshader_code\x18\x02 \x01(\x0c\"\x1d\n\x1b\x43Shader_SendShader_Response\"Y\n!CShader_GetBucketManifest_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x10\n\x08gpu_desc\x18\x02 \x01(\t\x12\x13\n\x0b\x64river_desc\x18\x03 \x01(\t\"]\n\"CShader_GetBucketManifest_Response\x12\x12\n\nmanifestid\x18\x01 \x01(\x04\x12\x11\n\tdepotsize\x18\x02 \x01(\r\x12\x10\n\x08\x62ucketid\x18\x03 \x01(\x04\x32\x9f\x04\n\x06Shader\x12\xbe\x01\n\x0eRegisterShader\x12\x1f.CShader_RegisterShader_Request\x1a .CShader_RegisterShader_Response\"i\x82\xb5\x18\x65\x43lient just finished playing a game, detected new shader cache entries and is notifying us about them\x12\x8f\x01\n\nSendShader\x12\x1b.CShader_SendShader_Request\x1a\x1c.CShader_SendShader_Response\"F\x82\xb5\x18\x42\x43lient is sending us actual compiled shader code that we requested\x12\xad\x01\n\x11GetBucketManifest\x12\".CShader_GetBucketManifest_Request\x1a#.CShader_GetBucketManifest_Response\"O\x82\xb5\x18KClient wants to know the manifest ID to fetch (if any) for a bucket\'s depot\x1a\x12\x82\xb5\x18\x0eShader methodsB\x03\x90\x01\x01')
serialized_pb=_b('\n\x1asteammessages_shader.proto\x1a steammessages_unified_base.proto\"\xc9\x01\n\x1e\x43Shader_RegisterShader_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x10\n\x08gpu_desc\x18\x02 \x01(\t\x12\x13\n\x0b\x64river_desc\x18\x03 \x01(\t\x12\x37\n\x07shaders\x18\x04 \x03(\x0b\x32&.CShader_RegisterShader_Request.Shader\x1a\x38\n\x06Shader\x12\x15\n\rcache_key_sha\x18\x01 \x01(\x0c\x12\x17\n\x0fshader_code_sha\x18\x02 \x01(\x0c\"<\n\x1f\x43Shader_RegisterShader_Response\x12\x19\n\x11requested_codeids\x18\x01 \x03(\r\"\xa0\x01\n\x1a\x43Shader_SendShader_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x37\n\x07shaders\x18\x02 \x03(\x0b\x32&.CShader_SendShader_Request.ShaderCode\x1a:\n\nShaderCode\x12\x17\n\x0fshader_code_sha\x18\x01 \x01(\x0c\x12\x13\n\x0bshader_code\x18\x02 \x01(\x0c\"\x1d\n\x1b\x43Shader_SendShader_Response\"Y\n!CShader_GetBucketManifest_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x10\n\x08gpu_desc\x18\x02 \x01(\t\x12\x13\n\x0b\x64river_desc\x18\x03 \x01(\t\"]\n\"CShader_GetBucketManifest_Response\x12\x12\n\nmanifestid\x18\x01 \x01(\x04\x12\x11\n\tdepotsize\x18\x02 \x01(\x04\x12\x10\n\x08\x62ucketid\x18\x03 \x01(\x04\"G\n\x1e\x43Shader_GetStaleBucket_Request\x12\x10\n\x08gpu_desc\x18\x01 \x01(\t\x12\x13\n\x0b\x64river_desc\x18\x02 \x01(\t\"V\n\x1f\x43Shader_GetStaleBucket_Response\x12\x10\n\x08\x62ucketid\x18\x01 \x01(\x04\x12\r\n\x05\x61ppid\x18\x02 \x01(\r\x12\x12\n\nmanifestid\x18\x03 \x01(\x04\"\xb7\x01\n#CShader_ReportExternalBuild_Request\x12\r\n\x05\x61ppid\x18\x01 \x01(\r\x12\x10\n\x08gpu_desc\x18\x02 \x01(\t\x12\x13\n\x0b\x64river_desc\x18\x03 \x01(\t\x12\x12\n\nmanifestid\x18\x04 \x01(\x04\x12\x17\n\x0fsource_gpu_desc\x18\x05 \x01(\t\x12\x1a\n\x12source_driver_desc\x18\x06 \x01(\t\x12\x11\n\tdepotsize\x18\x07 \x01(\x04\"&\n$CShader_ReportExternalBuild_Response2\xbb\x06\n\x06Shader\x12\xbe\x01\n\x0eRegisterShader\x12\x1f.CShader_RegisterShader_Request\x1a .CShader_RegisterShader_Response\"i\x82\xb5\x18\x65\x43lient just finished playing a game, detected new shader cache entries and is notifying us about them\x12\x8f\x01\n\nSendShader\x12\x1b.CShader_SendShader_Request\x1a\x1c.CShader_SendShader_Response\"F\x82\xb5\x18\x42\x43lient is sending us actual compiled shader code that we requested\x12\xad\x01\n\x11GetBucketManifest\x12\".CShader_GetBucketManifest_Request\x1a#.CShader_GetBucketManifest_Response\"O\x82\xb5\x18KClient wants to know the manifest ID to fetch (if any) for a bucket\'s depot\x12\x8e\x01\n\x0eGetStaleBucket\x12\x1f.CShader_GetStaleBucket_Request\x1a .CShader_GetStaleBucket_Response\"9\x82\xb5\x18\x35Job to get a stale bucket given a gpu and driver desc\x12\x88\x01\n\x13ReportExternalBuild\x12$.CShader_ReportExternalBuild_Request\x1a%.CShader_ReportExternalBuild_Response\"$\x82\xb5\x18 Report an exernally built bucket\x1a\x12\x82\xb5\x18\x0eShader methodsB\x03\x90\x01\x01')
,
dependencies=[steammessages__unified__base__pb2.DESCRIPTOR,])
@ -310,7 +310,7 @@ _CSHADER_GETBUCKETMANIFEST_RESPONSE = _descriptor.Descriptor(
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='depotsize', full_name='CShader_GetBucketManifest_Response.depotsize', index=1,
number=2, type=13, cpp_type=3, label=1,
number=2, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
@ -338,6 +338,186 @@ _CSHADER_GETBUCKETMANIFEST_RESPONSE = _descriptor.Descriptor(
serialized_end=708,
)
_CSHADER_GETSTALEBUCKET_REQUEST = _descriptor.Descriptor(
name='CShader_GetStaleBucket_Request',
full_name='CShader_GetStaleBucket_Request',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='gpu_desc', full_name='CShader_GetStaleBucket_Request.gpu_desc', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='driver_desc', full_name='CShader_GetStaleBucket_Request.driver_desc', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=710,
serialized_end=781,
)
_CSHADER_GETSTALEBUCKET_RESPONSE = _descriptor.Descriptor(
name='CShader_GetStaleBucket_Response',
full_name='CShader_GetStaleBucket_Response',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='bucketid', full_name='CShader_GetStaleBucket_Response.bucketid', index=0,
number=1, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='appid', full_name='CShader_GetStaleBucket_Response.appid', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='manifestid', full_name='CShader_GetStaleBucket_Response.manifestid', index=2,
number=3, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=783,
serialized_end=869,
)
_CSHADER_REPORTEXTERNALBUILD_REQUEST = _descriptor.Descriptor(
name='CShader_ReportExternalBuild_Request',
full_name='CShader_ReportExternalBuild_Request',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='appid', full_name='CShader_ReportExternalBuild_Request.appid', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='gpu_desc', full_name='CShader_ReportExternalBuild_Request.gpu_desc', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='driver_desc', full_name='CShader_ReportExternalBuild_Request.driver_desc', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='manifestid', full_name='CShader_ReportExternalBuild_Request.manifestid', index=3,
number=4, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='source_gpu_desc', full_name='CShader_ReportExternalBuild_Request.source_gpu_desc', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='source_driver_desc', full_name='CShader_ReportExternalBuild_Request.source_driver_desc', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='depotsize', full_name='CShader_ReportExternalBuild_Request.depotsize', index=6,
number=7, type=4, cpp_type=4, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=872,
serialized_end=1055,
)
_CSHADER_REPORTEXTERNALBUILD_RESPONSE = _descriptor.Descriptor(
name='CShader_ReportExternalBuild_Response',
full_name='CShader_ReportExternalBuild_Response',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1057,
serialized_end=1095,
)
_CSHADER_REGISTERSHADER_REQUEST_SHADER.containing_type = _CSHADER_REGISTERSHADER_REQUEST
_CSHADER_REGISTERSHADER_REQUEST.fields_by_name['shaders'].message_type = _CSHADER_REGISTERSHADER_REQUEST_SHADER
_CSHADER_SENDSHADER_REQUEST_SHADERCODE.containing_type = _CSHADER_SENDSHADER_REQUEST
@ -348,6 +528,10 @@ DESCRIPTOR.message_types_by_name['CShader_SendShader_Request'] = _CSHADER_SENDSH
DESCRIPTOR.message_types_by_name['CShader_SendShader_Response'] = _CSHADER_SENDSHADER_RESPONSE
DESCRIPTOR.message_types_by_name['CShader_GetBucketManifest_Request'] = _CSHADER_GETBUCKETMANIFEST_REQUEST
DESCRIPTOR.message_types_by_name['CShader_GetBucketManifest_Response'] = _CSHADER_GETBUCKETMANIFEST_RESPONSE
DESCRIPTOR.message_types_by_name['CShader_GetStaleBucket_Request'] = _CSHADER_GETSTALEBUCKET_REQUEST
DESCRIPTOR.message_types_by_name['CShader_GetStaleBucket_Response'] = _CSHADER_GETSTALEBUCKET_RESPONSE
DESCRIPTOR.message_types_by_name['CShader_ReportExternalBuild_Request'] = _CSHADER_REPORTEXTERNALBUILD_REQUEST
DESCRIPTOR.message_types_by_name['CShader_ReportExternalBuild_Response'] = _CSHADER_REPORTEXTERNALBUILD_RESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
CShader_RegisterShader_Request = _reflection.GeneratedProtocolMessageType('CShader_RegisterShader_Request', (_message.Message,), dict(
@ -408,6 +592,34 @@ CShader_GetBucketManifest_Response = _reflection.GeneratedProtocolMessageType('C
))
_sym_db.RegisterMessage(CShader_GetBucketManifest_Response)
CShader_GetStaleBucket_Request = _reflection.GeneratedProtocolMessageType('CShader_GetStaleBucket_Request', (_message.Message,), dict(
DESCRIPTOR = _CSHADER_GETSTALEBUCKET_REQUEST,
__module__ = 'steammessages_shader_pb2'
# @@protoc_insertion_point(class_scope:CShader_GetStaleBucket_Request)
))
_sym_db.RegisterMessage(CShader_GetStaleBucket_Request)
CShader_GetStaleBucket_Response = _reflection.GeneratedProtocolMessageType('CShader_GetStaleBucket_Response', (_message.Message,), dict(
DESCRIPTOR = _CSHADER_GETSTALEBUCKET_RESPONSE,
__module__ = 'steammessages_shader_pb2'
# @@protoc_insertion_point(class_scope:CShader_GetStaleBucket_Response)
))
_sym_db.RegisterMessage(CShader_GetStaleBucket_Response)
CShader_ReportExternalBuild_Request = _reflection.GeneratedProtocolMessageType('CShader_ReportExternalBuild_Request', (_message.Message,), dict(
DESCRIPTOR = _CSHADER_REPORTEXTERNALBUILD_REQUEST,
__module__ = 'steammessages_shader_pb2'
# @@protoc_insertion_point(class_scope:CShader_ReportExternalBuild_Request)
))
_sym_db.RegisterMessage(CShader_ReportExternalBuild_Request)
CShader_ReportExternalBuild_Response = _reflection.GeneratedProtocolMessageType('CShader_ReportExternalBuild_Response', (_message.Message,), dict(
DESCRIPTOR = _CSHADER_REPORTEXTERNALBUILD_RESPONSE,
__module__ = 'steammessages_shader_pb2'
# @@protoc_insertion_point(class_scope:CShader_ReportExternalBuild_Response)
))
_sym_db.RegisterMessage(CShader_ReportExternalBuild_Response)
DESCRIPTOR._options = None
@ -417,8 +629,8 @@ _SHADER = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=_b('\202\265\030\016Shader methods'),
serialized_start=711,
serialized_end=1254,
serialized_start=1098,
serialized_end=1925,
methods=[
_descriptor.MethodDescriptor(
name='RegisterShader',
@ -447,6 +659,24 @@ _SHADER = _descriptor.ServiceDescriptor(
output_type=_CSHADER_GETBUCKETMANIFEST_RESPONSE,
serialized_options=_b('\202\265\030KClient wants to know the manifest ID to fetch (if any) for a bucket\'s depot'),
),
_descriptor.MethodDescriptor(
name='GetStaleBucket',
full_name='Shader.GetStaleBucket',
index=3,
containing_service=None,
input_type=_CSHADER_GETSTALEBUCKET_REQUEST,
output_type=_CSHADER_GETSTALEBUCKET_RESPONSE,
serialized_options=_b('\202\265\0305Job to get a stale bucket given a gpu and driver desc'),
),
_descriptor.MethodDescriptor(
name='ReportExternalBuild',
full_name='Shader.ReportExternalBuild',
index=4,
containing_service=None,
input_type=_CSHADER_REPORTEXTERNALBUILD_REQUEST,
output_type=_CSHADER_REPORTEXTERNALBUILD_RESPONSE,
serialized_options=_b('\202\265\030 Report an exernally built bucket'),
),
])
_sym_db.RegisterServiceDescriptor(_SHADER)

196
steam/protobufs/steammessages_store_pb2.py

@ -24,7 +24,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='',
syntax='proto2',
serialized_options=_b('\220\001\001'),
serialized_pb=_b('\n\x19steammessages_store.proto\x1a steammessages_unified_base.proto\"J\n&CStore_GetLocalizedNameForTags_Request\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x0e\n\x06tagids\x18\x02 \x03(\r\"\x9f\x01\n\'CStore_GetLocalizedNameForTags_Response\x12:\n\x04tags\x18\x01 \x03(\x0b\x32,.CStore_GetLocalizedNameForTags_Response.Tag\x1a\x38\n\x03Tag\x12\r\n\x05tagid\x18\x01 \x01(\r\x12\x14\n\x0c\x65nglish_name\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\"$\n\"CStore_GetStorePreferences_Request\"\xb1\x03\n\x16\x43Store_UserPreferences\x12\x18\n\x10primary_language\x18\x01 \x01(\r\x12\x1b\n\x13secondary_languages\x18\x02 \x01(\r\x12\x18\n\x10platform_windows\x18\x03 \x01(\x08\x12\x14\n\x0cplatform_mac\x18\x04 \x01(\x08\x12\x16\n\x0eplatform_linux\x18\x05 \x01(\x08\x12#\n\x1bhide_adult_content_violence\x18\x06 \x01(\x08\x12\x1e\n\x16hide_adult_content_sex\x18\x07 \x01(\x08\x12\x19\n\x11timestamp_updated\x18\x08 \x01(\r\x12\x1c\n\x14hide_store_broadcast\x18\t \x01(\x08\x12`\n\x17review_score_preference\x18\n \x01(\x0e\x32\x1b.EUserReviewScorePreference:\"k_EUserReviewScorePreference_Unset\x12\x38\n0timestamp_content_descriptor_preferences_updated\x18\x0b \x01(\x05\"\x91\x01\n\x19\x43Store_UserTagPreferences\x12\x37\n\x0ftags_to_exclude\x18\x01 \x03(\x0b\x32\x1e.CStore_UserTagPreferences.Tag\x1a;\n\x03Tag\x12\r\n\x05tagid\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x17\n\x0ftimestamp_added\x18\x03 \x01(\r\"\xd9\x01\n\'CStore_UserContentDescriptorPreferences\x12\x62\n\x1e\x63ontent_descriptors_to_exclude\x18\x01 \x03(\x0b\x32:.CStore_UserContentDescriptorPreferences.ContentDescriptor\x1aJ\n\x11\x43ontentDescriptor\x12\x1c\n\x14\x63ontent_descriptorid\x18\x01 \x01(\r\x12\x17\n\x0ftimestamp_added\x18\x02 \x01(\r\"\xda\x01\n#CStore_GetStorePreferences_Response\x12,\n\x0bpreferences\x18\x01 \x01(\x0b\x32\x17.CStore_UserPreferences\x12\x33\n\x0ftag_preferences\x18\x02 \x01(\x0b\x32\x1a.CStore_UserTagPreferences\x12P\n\x1e\x63ontent_descriptor_preferences\x18\x03 \x01(\x0b\x32(.CStore_UserContentDescriptorPreferences\"\xe2\x01\n+CStore_StorePreferencesChanged_Notification\x12,\n\x0bpreferences\x18\x01 \x01(\x0b\x32\x17.CStore_UserPreferences\x12\x33\n\x0ftag_preferences\x18\x02 \x01(\x0b\x32\x1a.CStore_UserTagPreferences\x12P\n\x1e\x63ontent_descriptor_preferences\x18\x03 \x01(\x0b\x32(.CStore_UserContentDescriptorPreferences*\xa0\x01\n\x1a\x45UserReviewScorePreference\x12&\n\"k_EUserReviewScorePreference_Unset\x10\x00\x12+\n\'k_EUserReviewScorePreference_IncludeAll\x10\x01\x12-\n)k_EUserReviewScorePreference_ExcludeBombs\x10\x02\x32\xf9\x02\n\x05Store\x12\x98\x01\n\x17GetLocalizedNameForTags\x12\'.CStore_GetLocalizedNameForTags_Request\x1a(.CStore_GetLocalizedNameForTags_Response\"*\x82\xb5\x18&Gets tag names in a different language\x12\xaf\x01\n\x13GetStorePreferences\x12#.CStore_GetStorePreferences_Request\x1a$.CStore_GetStorePreferences_Response\"M\x82\xb5\x18IReturns the desired ratings board and maximum rating to show on the store\x1a#\x82\xb5\x18\x1f\x41 service to access store data.2\xee\x01\n\x0bStoreClient\x12\xb1\x01\n\x1dNotifyStorePreferencesChanged\x12,.CStore_StorePreferencesChanged_Notification\x1a\x0b.NoResponse\"U\x82\xb5\x18QNotification from server to client that the user\'s store preferences have changed\x1a+\x82\xb5\x18#Steam store to client notifications\xc0\xb5\x18\x02\x42\x03\x90\x01\x01')
serialized_pb=_b('\n\x19steammessages_store.proto\x1a steammessages_unified_base.proto\"5\n!CStore_GetMostPopularTags_Request\x12\x10\n\x08language\x18\x01 \x01(\t\"\x7f\n\"CStore_GetMostPopularTags_Response\x12\x35\n\x04tags\x18\x01 \x03(\x0b\x32\'.CStore_GetMostPopularTags_Response.Tag\x1a\"\n\x03Tag\x12\r\n\x05tagid\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t\"J\n&CStore_GetLocalizedNameForTags_Request\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x0e\n\x06tagids\x18\x02 \x03(\r\"\x9f\x01\n\'CStore_GetLocalizedNameForTags_Response\x12:\n\x04tags\x18\x01 \x03(\x0b\x32,.CStore_GetLocalizedNameForTags_Response.Tag\x1a\x38\n\x03Tag\x12\r\n\x05tagid\x18\x01 \x01(\r\x12\x14\n\x0c\x65nglish_name\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\"$\n\"CStore_GetStorePreferences_Request\"\xb1\x03\n\x16\x43Store_UserPreferences\x12\x18\n\x10primary_language\x18\x01 \x01(\r\x12\x1b\n\x13secondary_languages\x18\x02 \x01(\r\x12\x18\n\x10platform_windows\x18\x03 \x01(\x08\x12\x14\n\x0cplatform_mac\x18\x04 \x01(\x08\x12\x16\n\x0eplatform_linux\x18\x05 \x01(\x08\x12#\n\x1bhide_adult_content_violence\x18\x06 \x01(\x08\x12\x1e\n\x16hide_adult_content_sex\x18\x07 \x01(\x08\x12\x19\n\x11timestamp_updated\x18\x08 \x01(\r\x12\x1c\n\x14hide_store_broadcast\x18\t \x01(\x08\x12`\n\x17review_score_preference\x18\n \x01(\x0e\x32\x1b.EUserReviewScorePreference:\"k_EUserReviewScorePreference_Unset\x12\x38\n0timestamp_content_descriptor_preferences_updated\x18\x0b \x01(\x05\"\x91\x01\n\x19\x43Store_UserTagPreferences\x12\x37\n\x0ftags_to_exclude\x18\x01 \x03(\x0b\x32\x1e.CStore_UserTagPreferences.Tag\x1a;\n\x03Tag\x12\r\n\x05tagid\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x17\n\x0ftimestamp_added\x18\x03 \x01(\r\"\xd9\x01\n\'CStore_UserContentDescriptorPreferences\x12\x62\n\x1e\x63ontent_descriptors_to_exclude\x18\x01 \x03(\x0b\x32:.CStore_UserContentDescriptorPreferences.ContentDescriptor\x1aJ\n\x11\x43ontentDescriptor\x12\x1c\n\x14\x63ontent_descriptorid\x18\x01 \x01(\r\x12\x17\n\x0ftimestamp_added\x18\x02 \x01(\r\"\xda\x01\n#CStore_GetStorePreferences_Response\x12,\n\x0bpreferences\x18\x01 \x01(\x0b\x32\x17.CStore_UserPreferences\x12\x33\n\x0ftag_preferences\x18\x02 \x01(\x0b\x32\x1a.CStore_UserTagPreferences\x12P\n\x1e\x63ontent_descriptor_preferences\x18\x03 \x01(\x0b\x32(.CStore_UserContentDescriptorPreferences\"\xe2\x01\n+CStore_StorePreferencesChanged_Notification\x12,\n\x0bpreferences\x18\x01 \x01(\x0b\x32\x17.CStore_UserPreferences\x12\x33\n\x0ftag_preferences\x18\x02 \x01(\x0b\x32\x1a.CStore_UserTagPreferences\x12P\n\x1e\x63ontent_descriptor_preferences\x18\x03 \x01(\x0b\x32(.CStore_UserContentDescriptorPreferences*\xa0\x01\n\x1a\x45UserReviewScorePreference\x12&\n\"k_EUserReviewScorePreference_Unset\x10\x00\x12+\n\'k_EUserReviewScorePreference_IncludeAll\x10\x01\x12-\n)k_EUserReviewScorePreference_ExcludeBombs\x10\x02\x32\x8e\x04\n\x05Store\x12\x92\x01\n\x12GetMostPopularTags\x12\".CStore_GetMostPopularTags_Request\x1a#.CStore_GetMostPopularTags_Response\"3\x82\xb5\x18/Get all whitelisted tags, with localized names.\x12\x98\x01\n\x17GetLocalizedNameForTags\x12\'.CStore_GetLocalizedNameForTags_Request\x1a(.CStore_GetLocalizedNameForTags_Response\"*\x82\xb5\x18&Gets tag names in a different language\x12\xaf\x01\n\x13GetStorePreferences\x12#.CStore_GetStorePreferences_Request\x1a$.CStore_GetStorePreferences_Response\"M\x82\xb5\x18IReturns the desired ratings board and maximum rating to show on the store\x1a#\x82\xb5\x18\x1f\x41 service to access store data.2\xee\x01\n\x0bStoreClient\x12\xb1\x01\n\x1dNotifyStorePreferencesChanged\x12,.CStore_StorePreferencesChanged_Notification\x1a\x0b.NoResponse\"U\x82\xb5\x18QNotification from server to client that the user\'s store preferences have changed\x1a+\x82\xb5\x18#Steam store to client notifications\xc0\xb5\x18\x02\x42\x03\x90\x01\x01')
,
dependencies=[steammessages__unified__base__pb2.DESCRIPTOR,])
@ -49,8 +49,8 @@ _EUSERREVIEWSCOREPREFERENCE = _descriptor.EnumDescriptor(
],
containing_type=None,
serialized_options=None,
serialized_start=1594,
serialized_end=1754,
serialized_start=1778,
serialized_end=1938,
)
_sym_db.RegisterEnumDescriptor(_EUSERREVIEWSCOREPREFERENCE)
@ -61,6 +61,105 @@ k_EUserReviewScorePreference_ExcludeBombs = 2
_CSTORE_GETMOSTPOPULARTAGS_REQUEST = _descriptor.Descriptor(
name='CStore_GetMostPopularTags_Request',
full_name='CStore_GetMostPopularTags_Request',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='language', full_name='CStore_GetMostPopularTags_Request.language', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=63,
serialized_end=116,
)
_CSTORE_GETMOSTPOPULARTAGS_RESPONSE_TAG = _descriptor.Descriptor(
name='Tag',
full_name='CStore_GetMostPopularTags_Response.Tag',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='tagid', full_name='CStore_GetMostPopularTags_Response.Tag.tagid', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='name', full_name='CStore_GetMostPopularTags_Response.Tag.name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=211,
serialized_end=245,
)
_CSTORE_GETMOSTPOPULARTAGS_RESPONSE = _descriptor.Descriptor(
name='CStore_GetMostPopularTags_Response',
full_name='CStore_GetMostPopularTags_Response',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='tags', full_name='CStore_GetMostPopularTags_Response.tags', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_CSTORE_GETMOSTPOPULARTAGS_RESPONSE_TAG, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=118,
serialized_end=245,
)
_CSTORE_GETLOCALIZEDNAMEFORTAGS_REQUEST = _descriptor.Descriptor(
name='CStore_GetLocalizedNameForTags_Request',
full_name='CStore_GetLocalizedNameForTags_Request',
@ -94,8 +193,8 @@ _CSTORE_GETLOCALIZEDNAMEFORTAGS_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=63,
serialized_end=137,
serialized_start=247,
serialized_end=321,
)
@ -139,8 +238,8 @@ _CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE_TAG = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=243,
serialized_end=299,
serialized_start=427,
serialized_end=483,
)
_CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE = _descriptor.Descriptor(
@ -169,8 +268,8 @@ _CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=140,
serialized_end=299,
serialized_start=324,
serialized_end=483,
)
@ -193,8 +292,8 @@ _CSTORE_GETSTOREPREFERENCES_REQUEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=301,
serialized_end=337,
serialized_start=485,
serialized_end=521,
)
@ -294,8 +393,8 @@ _CSTORE_USERPREFERENCES = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=340,
serialized_end=773,
serialized_start=524,
serialized_end=957,
)
@ -339,8 +438,8 @@ _CSTORE_USERTAGPREFERENCES_TAG = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=862,
serialized_end=921,
serialized_start=1046,
serialized_end=1105,
)
_CSTORE_USERTAGPREFERENCES = _descriptor.Descriptor(
@ -369,8 +468,8 @@ _CSTORE_USERTAGPREFERENCES = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=776,
serialized_end=921,
serialized_start=960,
serialized_end=1105,
)
@ -407,8 +506,8 @@ _CSTORE_USERCONTENTDESCRIPTORPREFERENCES_CONTENTDESCRIPTOR = _descriptor.Descrip
extension_ranges=[],
oneofs=[
],
serialized_start=1067,
serialized_end=1141,
serialized_start=1251,
serialized_end=1325,
)
_CSTORE_USERCONTENTDESCRIPTORPREFERENCES = _descriptor.Descriptor(
@ -437,8 +536,8 @@ _CSTORE_USERCONTENTDESCRIPTORPREFERENCES = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=924,
serialized_end=1141,
serialized_start=1108,
serialized_end=1325,
)
@ -482,8 +581,8 @@ _CSTORE_GETSTOREPREFERENCES_RESPONSE = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1144,
serialized_end=1362,
serialized_start=1328,
serialized_end=1546,
)
@ -527,10 +626,12 @@ _CSTORE_STOREPREFERENCESCHANGED_NOTIFICATION = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=1365,
serialized_end=1591,
serialized_start=1549,
serialized_end=1775,
)
_CSTORE_GETMOSTPOPULARTAGS_RESPONSE_TAG.containing_type = _CSTORE_GETMOSTPOPULARTAGS_RESPONSE
_CSTORE_GETMOSTPOPULARTAGS_RESPONSE.fields_by_name['tags'].message_type = _CSTORE_GETMOSTPOPULARTAGS_RESPONSE_TAG
_CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE_TAG.containing_type = _CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE
_CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE.fields_by_name['tags'].message_type = _CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE_TAG
_CSTORE_USERPREFERENCES.fields_by_name['review_score_preference'].enum_type = _EUSERREVIEWSCOREPREFERENCE
@ -544,6 +645,8 @@ _CSTORE_GETSTOREPREFERENCES_RESPONSE.fields_by_name['content_descriptor_preferen
_CSTORE_STOREPREFERENCESCHANGED_NOTIFICATION.fields_by_name['preferences'].message_type = _CSTORE_USERPREFERENCES
_CSTORE_STOREPREFERENCESCHANGED_NOTIFICATION.fields_by_name['tag_preferences'].message_type = _CSTORE_USERTAGPREFERENCES
_CSTORE_STOREPREFERENCESCHANGED_NOTIFICATION.fields_by_name['content_descriptor_preferences'].message_type = _CSTORE_USERCONTENTDESCRIPTORPREFERENCES
DESCRIPTOR.message_types_by_name['CStore_GetMostPopularTags_Request'] = _CSTORE_GETMOSTPOPULARTAGS_REQUEST
DESCRIPTOR.message_types_by_name['CStore_GetMostPopularTags_Response'] = _CSTORE_GETMOSTPOPULARTAGS_RESPONSE
DESCRIPTOR.message_types_by_name['CStore_GetLocalizedNameForTags_Request'] = _CSTORE_GETLOCALIZEDNAMEFORTAGS_REQUEST
DESCRIPTOR.message_types_by_name['CStore_GetLocalizedNameForTags_Response'] = _CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE
DESCRIPTOR.message_types_by_name['CStore_GetStorePreferences_Request'] = _CSTORE_GETSTOREPREFERENCES_REQUEST
@ -555,6 +658,28 @@ DESCRIPTOR.message_types_by_name['CStore_StorePreferencesChanged_Notification']
DESCRIPTOR.enum_types_by_name['EUserReviewScorePreference'] = _EUSERREVIEWSCOREPREFERENCE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
CStore_GetMostPopularTags_Request = _reflection.GeneratedProtocolMessageType('CStore_GetMostPopularTags_Request', (_message.Message,), dict(
DESCRIPTOR = _CSTORE_GETMOSTPOPULARTAGS_REQUEST,
__module__ = 'steammessages_store_pb2'
# @@protoc_insertion_point(class_scope:CStore_GetMostPopularTags_Request)
))
_sym_db.RegisterMessage(CStore_GetMostPopularTags_Request)
CStore_GetMostPopularTags_Response = _reflection.GeneratedProtocolMessageType('CStore_GetMostPopularTags_Response', (_message.Message,), dict(
Tag = _reflection.GeneratedProtocolMessageType('Tag', (_message.Message,), dict(
DESCRIPTOR = _CSTORE_GETMOSTPOPULARTAGS_RESPONSE_TAG,
__module__ = 'steammessages_store_pb2'
# @@protoc_insertion_point(class_scope:CStore_GetMostPopularTags_Response.Tag)
))
,
DESCRIPTOR = _CSTORE_GETMOSTPOPULARTAGS_RESPONSE,
__module__ = 'steammessages_store_pb2'
# @@protoc_insertion_point(class_scope:CStore_GetMostPopularTags_Response)
))
_sym_db.RegisterMessage(CStore_GetMostPopularTags_Response)
_sym_db.RegisterMessage(CStore_GetMostPopularTags_Response.Tag)
CStore_GetLocalizedNameForTags_Request = _reflection.GeneratedProtocolMessageType('CStore_GetLocalizedNameForTags_Request', (_message.Message,), dict(
DESCRIPTOR = _CSTORE_GETLOCALIZEDNAMEFORTAGS_REQUEST,
__module__ = 'steammessages_store_pb2'
@ -644,13 +769,22 @@ _STORE = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
serialized_options=_b('\202\265\030\037A service to access store data.'),
serialized_start=1757,
serialized_end=2134,
serialized_start=1941,
serialized_end=2467,
methods=[
_descriptor.MethodDescriptor(
name='GetMostPopularTags',
full_name='Store.GetMostPopularTags',
index=0,
containing_service=None,
input_type=_CSTORE_GETMOSTPOPULARTAGS_REQUEST,
output_type=_CSTORE_GETMOSTPOPULARTAGS_RESPONSE,
serialized_options=_b('\202\265\030/Get all whitelisted tags, with localized names.'),
),
_descriptor.MethodDescriptor(
name='GetLocalizedNameForTags',
full_name='Store.GetLocalizedNameForTags',
index=0,
index=1,
containing_service=None,
input_type=_CSTORE_GETLOCALIZEDNAMEFORTAGS_REQUEST,
output_type=_CSTORE_GETLOCALIZEDNAMEFORTAGS_RESPONSE,
@ -659,7 +793,7 @@ _STORE = _descriptor.ServiceDescriptor(
_descriptor.MethodDescriptor(
name='GetStorePreferences',
full_name='Store.GetStorePreferences',
index=1,
index=2,
containing_service=None,
input_type=_CSTORE_GETSTOREPREFERENCES_REQUEST,
output_type=_CSTORE_GETSTOREPREFERENCES_RESPONSE,
@ -677,8 +811,8 @@ _STORECLIENT = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=1,
serialized_options=_b('\202\265\030#Steam store to client notifications\300\265\030\002'),
serialized_start=2137,
serialized_end=2375,
serialized_start=2470,
serialized_end=2708,
methods=[
_descriptor.MethodDescriptor(
name='NotifyStorePreferencesChanged',

7218
steam/protobufs/steammessages_webui_friends_pb2.py

File diff suppressed because one or more lines are too long

49
steam/utils/__init__.py

@ -1,31 +1,56 @@
"""Utility package with various useful functions
"""
import six
from six.moves import xrange as _range
import sys
if six.PY2 and sys.platform == 'win32':
import win_inet_pton
import weakref
import struct
import socket
import sys
from six.moves import xrange as _range
def ip_from_int(ip):
"""Convert IP to :py:class:`int`
def ip4_from_int(ip):
"""Convert :py:class:`int` to IPv4 string
:param ip: int representing an IPv4
:type ip: int
:return: IP in dot-decimal notation
:rtype: str
"""
return socket.inet_ntoa(struct.pack(">L", ip))
def ip4_to_int(ip):
"""Convert IPv4 string to :py:class:`int`
:param ip: IP in dot-decimal notation
:param ip: IPv4 in dot-decimal notation
:type ip: str
:rtype: int
"""
return socket.inet_ntoa(struct.pack(">L", ip))
return struct.unpack(">L", socket.inet_aton(ip))[0]
def ip_to_int(ip):
"""Convert :py:class:`int` to IP
ip_to_int = ip4_to_int
ip_from_int = ip4_from_int
:param ip: int representing an IP
:type ip: int
:return: IP in dot-decimal notation
def ip6_from_bytes(ip):
"""Convert :py:class:`bytes` to IPv6 string
:param ip: IPv6 in dot-decimal notation
:type ip: bytes
:rtype: str
"""
return struct.unpack(">L", socket.inet_aton(ip))[0]
return socket.inet_ntop(socket.AF_INET6, ip)
def ip6_to_bytes(ip):
"""Convert IPv6 string to :py:class:`bytes`
:param ip: IPv6 in dot-decimal notation
:type ip: str
:rtype: bytes
"""
return socket.inet_pton(socket.AF_INET6, ip)
def chunks(arr, size):

33
tests/test_utils.py

@ -5,22 +5,33 @@ import steam.utils.web as uweb
import requests
from steam.protobufs.test_messages_pb2 import ComplexProtoMessage
proto_mask = 0x80000000
class Util_Functions(unittest.TestCase):
def test_ip_from_int(self):
self.assertEqual('0.0.0.0', ut.ip_from_int(0))
self.assertEqual('12.34.56.78', ut.ip_from_int(203569230))
self.assertEqual('255.255.255.255', ut.ip_from_int(4294967295))
def test_ip_to_int(self):
self.assertEqual(ut.ip_to_int('0.0.0.0'), 0)
self.assertEqual(ut.ip_to_int('12.34.56.78'), 203569230)
self.assertEqual(ut.ip_to_int('255.255.255.255'), 4294967295)
def test_ip4_from_int(self):
self.assertEqual('0.0.0.0', ut.ip4_from_int(0))
self.assertEqual('12.34.56.78', ut.ip4_from_int(203569230))
self.assertEqual('255.255.255.255', ut.ip4_from_int(4294967295))
def test_ip4_to_int(self):
self.assertEqual(ut.ip4_to_int('0.0.0.0'), 0)
self.assertEqual(ut.ip4_to_int('12.34.56.78'), 203569230)
self.assertEqual(ut.ip4_to_int('255.255.255.255'), 4294967295)
def test_ip6_from_bytes(self):
self.assertEqual('::1', ut.ip6_from_bytes(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'))
self.assertEqual('1:2:3:4:5:6:7:8', ut.ip6_from_bytes(b'\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08'))
self.assertEqual('1234:5678:9abc:def0:0:dead:beef:1', ut.ip6_from_bytes(b'\x12\x34\x56\x78\x9a\xbc\xde\xf0\x00\x00\xde\xad\xbe\xef\x00\x01'))
def test_ip6_to_bytes(self):
self.assertEqual(ut.ip6_to_bytes('::1'), b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01')
self.assertEqual(ut.ip6_to_bytes('1:2:3:4:5:6:7:8'), b'\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08')
self.assertEqual(ut.ip6_to_bytes('1234:5678:9abc:def0:0:dead:beef:1'), b'\x12\x34\x56\x78\x9a\xbc\xde\xf0\x00\x00\xde\xad\xbe\xef\x00\x01')
def test_make_requests_session(self):
self.assertIsInstance(uweb.make_requests_session(), requests.Session)
proto_mask = 0x80000000
class Util_Proto_Functions(unittest.TestCase):
def test_is_proto(self):
self.assertTrue(utp.is_proto(proto_mask))

Loading…
Cancel
Save