steamutils 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SteamClient.js +47 -3
- package/package.json +1 -1
- package/protos/base_gcmessages.proto +533 -0
- package/protos/clientmetrics.proto +45 -0
- package/protos/content_manifest.proto +62 -0
- package/protos/cstrike15_gcmessages.proto +1344 -0
- package/protos/cstrike15_usermessages.proto +597 -0
- package/protos/econ_gcmessages.proto +225 -0
- package/protos/encrypted_app_ticket.proto +10 -0
- package/protos/engine_gcmessages.proto +16 -0
- package/protos/enums.proto +285 -0
- package/protos/enums_clientserver.proto +1534 -0
- package/protos/fatdemo.proto +125 -0
- package/protos/gcsdk_gcmessages.proto +302 -0
- package/protos/gcsystemmsgs.proto +246 -0
- package/protos/htmlmessages.proto +993 -0
- package/protos/netmessages.proto +491 -0
- package/protos/network_connection.proto +70 -0
- package/protos/renderer/rendermessages.proto +893 -0
- package/protos/steamdatagram_messages.proto +205 -0
- package/protos/steamdatagram_messages_auth.proto +65 -0
- package/protos/steamdatagram_messages_sdr.proto +518 -0
- package/protos/steammessages.proto +601 -0
- package/protos/steammessages_accounthardware.steamclient.proto +188 -0
- package/protos/steammessages_appoverview.proto +185 -0
- package/protos/steammessages_auth.steamclient.proto +192 -0
- package/protos/steammessages_base.proto +288 -0
- package/protos/steammessages_broadcast.steamclient.proto +756 -0
- package/protos/steammessages_chat.steamclient.proto +1281 -0
- package/protos/steammessages_client_objects.proto +336 -0
- package/protos/steammessages_clientlanp2p.proto +26 -0
- package/protos/steammessages_clientmetrics.steamclient.proto +176 -0
- package/protos/steammessages_clientnotificationtypes.proto +129 -0
- package/protos/steammessages_clientserver.proto +384 -0
- package/protos/steammessages_clientserver_2.proto +776 -0
- package/protos/steammessages_clientserver_appinfo.proto +166 -0
- package/protos/steammessages_clientserver_friends.proto +260 -0
- package/protos/steammessages_clientserver_gameservers.proto +159 -0
- package/protos/steammessages_clientserver_lbs.proto +70 -0
- package/protos/steammessages_clientserver_login.proto +159 -0
- package/protos/steammessages_clientserver_mms.proto +235 -0
- package/protos/steammessages_clientserver_ucm.proto +202 -0
- package/protos/steammessages_clientserver_uds.proto +104 -0
- package/protos/steammessages_clientserver_ufs.proto +172 -0
- package/protos/steammessages_clientserver_userstats.proto +80 -0
- package/protos/steammessages_cloud.steamclient.proto +512 -0
- package/protos/steammessages_contentsystem.steamclient.proto +77 -0
- package/protos/steammessages_credentials.steamclient.proto +141 -0
- package/protos/steammessages_datapublisher.steamclient.proto +67 -0
- package/protos/steammessages_depotbuilder.steamclient.proto +118 -0
- package/protos/steammessages_deviceauth.steamclient.proto +200 -0
- package/protos/steammessages_econ.steamclient.proto +105 -0
- package/protos/steammessages_friendmessages.steamclient.proto +168 -0
- package/protos/steammessages_gamenetworking.steamclient.proto +32 -0
- package/protos/steammessages_gamenetworkingui.proto +42 -0
- package/protos/steammessages_gamenotifications.steamclient.proto +156 -0
- package/protos/steammessages_gameservers.steamclient.proto +152 -0
- package/protos/steammessages_hiddevices.proto +156 -0
- package/protos/steammessages_inventory.steamclient.proto +224 -0
- package/protos/steammessages_linkfilter.steamclient.proto +49 -0
- package/protos/steammessages_lobbymatchmaking.steamclient.proto +33 -0
- package/protos/steammessages_market.steamclient.proto +26 -0
- package/protos/steammessages_offline.steamclient.proto +37 -0
- package/protos/steammessages_parental.steamclient.proto +186 -0
- package/protos/steammessages_parties.steamclient.proto +94 -0
- package/protos/steammessages_partnerapps.steamclient.proto +136 -0
- package/protos/steammessages_player.steamclient.proto +912 -0
- package/protos/steammessages_publishedfile.steamclient.proto +711 -0
- package/protos/steammessages_qms.steamclient.proto +125 -0
- package/protos/steammessages_remoteclient.proto +99 -0
- package/protos/steammessages_remoteclient_discovery.proto +228 -0
- package/protos/steammessages_remoteclient_service.steamclient.proto +90 -0
- package/protos/steammessages_remoteclient_service_messages.proto +196 -0
- package/protos/steammessages_remoteplay.proto +871 -0
- package/protos/steammessages_secrets.steamclient.proto +39 -0
- package/protos/steammessages_shader.steamclient.proto +96 -0
- package/protos/steammessages_site_license.steamclient.proto +128 -0
- package/protos/steammessages_sitelicenseclient.proto +38 -0
- package/protos/steammessages_siteserverui.proto +130 -0
- package/protos/steammessages_star.steamclient.proto +64 -0
- package/protos/steammessages_steamtv.steamclient.proto +630 -0
- package/protos/steammessages_store.steamclient.proto +262 -0
- package/protos/steammessages_timedtrial.steamclient.proto +50 -0
- package/protos/steammessages_twofactor.steamclient.proto +154 -0
- package/protos/steammessages_unified_base.steamclient.proto +33 -0
- package/protos/steammessages_unified_test.steamclient.proto +50 -0
- package/protos/steammessages_useraccount.steamclient.proto +210 -0
- package/protos/steammessages_vac.steamclient.proto +44 -0
- package/protos/steammessages_video.steamclient.proto +84 -0
- package/protos/steammessages_virtualcontroller.proto +138 -0
- package/protos/steammessages_workshop.steamclient.proto +23 -0
- package/protos/steamnetworkingsockets_messages.proto +204 -0
- package/protos/steamnetworkingsockets_messages_certs.proto +38 -0
- package/protos/steamnetworkingsockets_messages_udp.proto +75 -0
- package/protos/uifontfile_format.proto +16 -0
@@ -0,0 +1,262 @@
|
|
1
|
+
import "steammessages_base.proto";
|
2
|
+
import "steammessages_unified_base.steamclient.proto";
|
3
|
+
import "enums.proto";
|
4
|
+
|
5
|
+
option cc_generic_services = true;
|
6
|
+
|
7
|
+
enum EStoreDiscoveryQueueType {
|
8
|
+
k_EStoreDiscoveryQueueTypeNew = 0;
|
9
|
+
k_EStoreDiscoveryQueueTypeComingSoon = 1;
|
10
|
+
k_EStoreDiscoveryQueueTypeRecommended = 2;
|
11
|
+
k_EStoreDiscoveryQueueTypeEveryNewRelease = 3;
|
12
|
+
k_EStoreDiscoveryQueueTypeMLRecommender = 5;
|
13
|
+
k_EStoreDiscoveryQueueTypeWishlistOnSale = 6;
|
14
|
+
k_EStoreDiscoveryQueueTypeDLC = 7;
|
15
|
+
k_EStoreDiscoveryQueueTypeDLCOnSale = 8;
|
16
|
+
k_EStoreDiscoveryQueueTypeRecommendedComingSoon = 9;
|
17
|
+
k_EStoreDiscoveryQueueTypeRecommendedFree = 10;
|
18
|
+
k_EStoreDiscoveryQueueTypeRecommendedOnSale = 11;
|
19
|
+
k_EStoreDiscoveryQueueTypeRecommendedDemos = 12;
|
20
|
+
k_EStoreDiscoveryQueueTypeDLCNewReleases = 13;
|
21
|
+
k_EStoreDiscoveryQueueTypeDLCTopSellers = 14;
|
22
|
+
k_EStoreDiscoveryQueueTypeMAX = 15;
|
23
|
+
}
|
24
|
+
|
25
|
+
enum EUserReviewScorePreference {
|
26
|
+
k_EUserReviewScorePreference_Unset = 0;
|
27
|
+
k_EUserReviewScorePreference_IncludeAll = 1;
|
28
|
+
k_EUserReviewScorePreference_ExcludeBombs = 2;
|
29
|
+
}
|
30
|
+
|
31
|
+
message CStore_RegisterCDKey_Request {
|
32
|
+
optional string activation_code = 1 [(description) = "Key string to register on the logged in user's account"];
|
33
|
+
optional int32 purchase_platform = 2 [(description) = "EPurchasePlatform for platform of request"];
|
34
|
+
optional bool is_request_from_client = 3 [(description) = "True if the request was initiated from inside the Steam client"];
|
35
|
+
}
|
36
|
+
|
37
|
+
message CStore_PurchaseReceiptInfo {
|
38
|
+
message LineItem {
|
39
|
+
optional uint32 packageid = 1;
|
40
|
+
optional uint32 appid = 2;
|
41
|
+
optional string line_item_description = 3;
|
42
|
+
}
|
43
|
+
|
44
|
+
optional uint64 transactionid = 1;
|
45
|
+
optional uint32 packageid = 2;
|
46
|
+
optional uint32 purchase_status = 3;
|
47
|
+
optional uint32 result_detail = 4;
|
48
|
+
optional uint32 transaction_time = 5;
|
49
|
+
optional uint32 payment_method = 6;
|
50
|
+
optional uint64 base_price = 7;
|
51
|
+
optional uint64 total_discount = 8;
|
52
|
+
optional uint64 tax = 9;
|
53
|
+
optional uint64 shipping = 10;
|
54
|
+
optional uint32 currency_code = 11;
|
55
|
+
optional string country_code = 12;
|
56
|
+
optional string error_headline = 13;
|
57
|
+
optional string error_string = 14;
|
58
|
+
optional string error_link_text = 15;
|
59
|
+
optional string error_link_url = 16;
|
60
|
+
optional uint32 error_appid = 17;
|
61
|
+
repeated .CStore_PurchaseReceiptInfo.LineItem line_items = 18;
|
62
|
+
}
|
63
|
+
|
64
|
+
message CStore_RegisterCDKey_Response {
|
65
|
+
optional int32 purchase_result_details = 1 [(description) = "EPurchaseResultDetails from key activation"];
|
66
|
+
optional .CStore_PurchaseReceiptInfo purchase_receipt_info = 2 [(description) = "Purchase receipt info"];
|
67
|
+
}
|
68
|
+
|
69
|
+
message CStore_GetMostPopularTags_Request {
|
70
|
+
optional string language = 1;
|
71
|
+
}
|
72
|
+
|
73
|
+
message CStore_GetMostPopularTags_Response {
|
74
|
+
message Tag {
|
75
|
+
optional uint32 tagid = 1;
|
76
|
+
optional string name = 2;
|
77
|
+
}
|
78
|
+
|
79
|
+
repeated .CStore_GetMostPopularTags_Response.Tag tags = 1;
|
80
|
+
}
|
81
|
+
|
82
|
+
message CStore_GetLocalizedNameForTags_Request {
|
83
|
+
optional string language = 1;
|
84
|
+
repeated uint32 tagids = 2;
|
85
|
+
}
|
86
|
+
|
87
|
+
message CStore_GetLocalizedNameForTags_Response {
|
88
|
+
message Tag {
|
89
|
+
optional uint32 tagid = 1;
|
90
|
+
optional string english_name = 2;
|
91
|
+
optional string name = 3;
|
92
|
+
optional string normalized_name = 4 [(description) = "english_name, lowercase, with homoglyphs replaced and spaces and some punctuation removed."];
|
93
|
+
}
|
94
|
+
|
95
|
+
repeated .CStore_GetLocalizedNameForTags_Response.Tag tags = 1;
|
96
|
+
}
|
97
|
+
|
98
|
+
message CStoreDiscoveryQueueSettings {
|
99
|
+
optional bool os_win = 4;
|
100
|
+
optional bool os_mac = 5;
|
101
|
+
optional bool os_linux = 6;
|
102
|
+
optional bool full_controller_support = 7;
|
103
|
+
optional bool native_steam_controller = 8;
|
104
|
+
optional bool include_coming_soon = 9;
|
105
|
+
repeated uint32 excluded_tagids = 10 [(description) = "Don't return any games with these tags."];
|
106
|
+
optional bool exclude_early_access = 11;
|
107
|
+
optional bool exclude_videos = 12;
|
108
|
+
optional bool exclude_software = 13;
|
109
|
+
optional bool exclude_dlc = 14;
|
110
|
+
optional bool exclude_soundtracks = 15;
|
111
|
+
repeated uint32 featured_tagids = 16 [(description) = "Must be marked with one of these featured tagids (for sale pages and events)"];
|
112
|
+
}
|
113
|
+
|
114
|
+
message CStore_GetDiscoveryQueue_Request {
|
115
|
+
optional .EStoreDiscoveryQueueType queue_type = 1 [default = k_EStoreDiscoveryQueueTypeNew];
|
116
|
+
optional string country_code = 2;
|
117
|
+
optional bool rebuild_queue = 3;
|
118
|
+
optional bool settings_changed = 4;
|
119
|
+
optional .CStoreDiscoveryQueueSettings settings = 5;
|
120
|
+
optional bool rebuild_queue_if_stale = 6;
|
121
|
+
optional bool ignore_user_preferences = 8;
|
122
|
+
optional bool no_experimental_results = 9;
|
123
|
+
optional uint32 experimental_cohort = 10;
|
124
|
+
optional bool debug_get_solr_query = 11;
|
125
|
+
}
|
126
|
+
|
127
|
+
message CStore_GetDiscoveryQueue_Response {
|
128
|
+
repeated uint32 appids = 1;
|
129
|
+
optional string country_code = 2;
|
130
|
+
optional .CStoreDiscoveryQueueSettings settings = 3;
|
131
|
+
optional int32 skipped = 4;
|
132
|
+
optional bool exhausted = 5;
|
133
|
+
optional uint32 experimental_cohort = 6;
|
134
|
+
optional string debug_solr_query = 7;
|
135
|
+
}
|
136
|
+
|
137
|
+
message CStore_GetStorePreferences_Request {
|
138
|
+
}
|
139
|
+
|
140
|
+
message CStore_UserPreferences {
|
141
|
+
optional int32 primary_language = 1;
|
142
|
+
optional uint32 secondary_languages = 2;
|
143
|
+
optional bool platform_windows = 3;
|
144
|
+
optional bool platform_mac = 4;
|
145
|
+
optional bool platform_linux = 5;
|
146
|
+
optional bool hide_adult_content_violence = 6;
|
147
|
+
optional bool hide_adult_content_sex = 7;
|
148
|
+
optional uint32 timestamp_updated = 8;
|
149
|
+
optional bool hide_store_broadcast = 9;
|
150
|
+
optional .EUserReviewScorePreference review_score_preference = 10 [default = k_EUserReviewScorePreference_Unset];
|
151
|
+
optional int32 timestamp_content_descriptor_preferences_updated = 11;
|
152
|
+
optional .EProvideDeckFeedbackPreference provide_deck_feedback = 12 [default = k_EProvideDeckFeedbackPreference_Unset];
|
153
|
+
}
|
154
|
+
|
155
|
+
message CStore_UserTagPreferences {
|
156
|
+
message Tag {
|
157
|
+
optional uint32 tagid = 1;
|
158
|
+
optional string name = 2;
|
159
|
+
optional uint32 timestamp_added = 3;
|
160
|
+
}
|
161
|
+
|
162
|
+
repeated .CStore_UserTagPreferences.Tag tags_to_exclude = 1;
|
163
|
+
}
|
164
|
+
|
165
|
+
message CStore_UserContentDescriptorPreferences {
|
166
|
+
message ContentDescriptor {
|
167
|
+
optional uint32 content_descriptorid = 1;
|
168
|
+
optional uint32 timestamp_added = 2;
|
169
|
+
}
|
170
|
+
|
171
|
+
repeated .CStore_UserContentDescriptorPreferences.ContentDescriptor content_descriptors_to_exclude = 1;
|
172
|
+
}
|
173
|
+
|
174
|
+
message CStore_GetStorePreferences_Response {
|
175
|
+
optional .CStore_UserPreferences preferences = 1;
|
176
|
+
optional .CStore_UserTagPreferences tag_preferences = 2;
|
177
|
+
optional .CStore_UserContentDescriptorPreferences content_descriptor_preferences = 3;
|
178
|
+
}
|
179
|
+
|
180
|
+
message CStore_GetTrendingAppsAmongFriends_Request {
|
181
|
+
optional uint32 num_apps = 1;
|
182
|
+
optional uint32 num_top_friends = 2;
|
183
|
+
}
|
184
|
+
|
185
|
+
message CStore_GetTrendingAppsAmongFriends_Response {
|
186
|
+
message TrendingAppData {
|
187
|
+
optional uint32 appid = 1;
|
188
|
+
repeated uint64 steamids_top_friends = 2;
|
189
|
+
optional uint32 total_friends = 3;
|
190
|
+
}
|
191
|
+
|
192
|
+
repeated .CStore_GetTrendingAppsAmongFriends_Response.TrendingAppData trending_apps = 1;
|
193
|
+
}
|
194
|
+
|
195
|
+
message CSteamDeckCompatibility_SetFeedback_Request {
|
196
|
+
optional uint32 appid = 1;
|
197
|
+
optional .ESteamDeckCompatibilityFeedback feedback = 2 [default = k_ESteamDeckCompatibilityFeedback_Unset];
|
198
|
+
}
|
199
|
+
|
200
|
+
message CSteamDeckCompatibility_SetFeedback_Response {
|
201
|
+
}
|
202
|
+
|
203
|
+
message CSteamDeckCompatibility_ShouldPrompt_Request {
|
204
|
+
optional uint32 appid = 1;
|
205
|
+
}
|
206
|
+
|
207
|
+
message CSteamDeckCompatibility_ShouldPrompt_Response {
|
208
|
+
optional bool prompt = 1;
|
209
|
+
optional bool feedback_eligible = 2;
|
210
|
+
optional .ESteamDeckCompatibilityFeedback existing_feedback = 3 [default = k_ESteamDeckCompatibilityFeedback_Unset];
|
211
|
+
}
|
212
|
+
|
213
|
+
message CStore_StorePreferencesChanged_Notification {
|
214
|
+
optional .CStore_UserPreferences preferences = 1;
|
215
|
+
optional .CStore_UserTagPreferences tag_preferences = 2;
|
216
|
+
optional .CStore_UserContentDescriptorPreferences content_descriptor_preferences = 3;
|
217
|
+
}
|
218
|
+
|
219
|
+
service Store {
|
220
|
+
option (service_description) = "A service to access store data.";
|
221
|
+
|
222
|
+
rpc RegisterCDKey (.CStore_RegisterCDKey_Request) returns (.CStore_RegisterCDKey_Response) {
|
223
|
+
option (method_description) = "Registers a CD key with Steam on the logged in user's account";
|
224
|
+
}
|
225
|
+
|
226
|
+
rpc GetMostPopularTags (.CStore_GetMostPopularTags_Request) returns (.CStore_GetMostPopularTags_Response) {
|
227
|
+
option (method_description) = "Get all whitelisted tags, with localized names.";
|
228
|
+
}
|
229
|
+
|
230
|
+
rpc GetLocalizedNameForTags (.CStore_GetLocalizedNameForTags_Request) returns (.CStore_GetLocalizedNameForTags_Response) {
|
231
|
+
option (method_description) = "Gets tag names in a different language";
|
232
|
+
}
|
233
|
+
|
234
|
+
rpc GetDiscoveryQueue (.CStore_GetDiscoveryQueue_Request) returns (.CStore_GetDiscoveryQueue_Response) {
|
235
|
+
option (method_description) = "Get a list of games for the user to explore on the store.";
|
236
|
+
}
|
237
|
+
|
238
|
+
rpc GetStorePreferences (.CStore_GetStorePreferences_Request) returns (.CStore_GetStorePreferences_Response) {
|
239
|
+
option (method_description) = "Returns the desired ratings board and maximum rating to show on the store";
|
240
|
+
}
|
241
|
+
|
242
|
+
rpc GetTrendingAppsAmongFriends (.CStore_GetTrendingAppsAmongFriends_Request) returns (.CStore_GetTrendingAppsAmongFriends_Response) {
|
243
|
+
option (method_description) = "Get trending apps among friends";
|
244
|
+
}
|
245
|
+
|
246
|
+
rpc SetCompatibilityFeedback (.CSteamDeckCompatibility_SetFeedback_Request) returns (.CSteamDeckCompatibility_SetFeedback_Response) {
|
247
|
+
option (method_description) = "Upserts user feedback regarding the published Steam Deck Compatibility rating for a game";
|
248
|
+
}
|
249
|
+
|
250
|
+
rpc ShouldPromptForCompatibilityFeedback (.CSteamDeckCompatibility_ShouldPrompt_Request) returns (.CSteamDeckCompatibility_ShouldPrompt_Response) {
|
251
|
+
option (method_description) = "Returns whether we should ask the user if the compatibility rating is correct";
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
service StoreClient {
|
256
|
+
option (service_description) = "Steam store to client notifications";
|
257
|
+
option (service_execution_site) = k_EProtoExecutionSiteSteamClient;
|
258
|
+
|
259
|
+
rpc NotifyStorePreferencesChanged (.CStore_StorePreferencesChanged_Notification) returns (.NoResponse) {
|
260
|
+
option (method_description) = "Notification from server to client that the user's store preferences have changed";
|
261
|
+
}
|
262
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import "steammessages_base.proto";
|
2
|
+
import "steammessages_unified_base.steamclient.proto";
|
3
|
+
|
4
|
+
option cc_generic_services = true;
|
5
|
+
|
6
|
+
message CTimedTrial_GetTimeRemaining_Request {
|
7
|
+
optional uint32 appid = 1;
|
8
|
+
}
|
9
|
+
|
10
|
+
message CTimedTrial_GetTimeRemaining_Response {
|
11
|
+
optional uint32 seconds_played = 1;
|
12
|
+
optional uint32 seconds_allowed = 2;
|
13
|
+
optional uint32 packageid = 3;
|
14
|
+
optional uint32 mastersub_appid = 4;
|
15
|
+
}
|
16
|
+
|
17
|
+
message CTimedTrial_RecordPlaytime_Request {
|
18
|
+
optional uint32 appid = 1;
|
19
|
+
optional uint32 seconds_played = 2;
|
20
|
+
}
|
21
|
+
|
22
|
+
message CTimedTrial_RecordPlaytime_Response {
|
23
|
+
optional uint32 seconds_played = 1;
|
24
|
+
optional uint32 seconds_allowed = 2;
|
25
|
+
}
|
26
|
+
|
27
|
+
message CTimedTrial_ResetPlaytime_Request {
|
28
|
+
optional uint32 appid = 1;
|
29
|
+
}
|
30
|
+
|
31
|
+
message CTimedTrial_ResetPlaytime_Response {
|
32
|
+
optional uint32 seconds_played = 1;
|
33
|
+
optional uint32 seconds_allowed = 2;
|
34
|
+
}
|
35
|
+
|
36
|
+
service TimedTrial {
|
37
|
+
option (service_description) = "A service to get user timed trial information";
|
38
|
+
|
39
|
+
rpc GetTimeRemaining (.CTimedTrial_GetTimeRemaining_Request) returns (.CTimedTrial_GetTimeRemaining_Response) {
|
40
|
+
option (method_description) = "Returns the amount of time a user has left on a timed trial for an app";
|
41
|
+
}
|
42
|
+
|
43
|
+
rpc RecordPlaytime (.CTimedTrial_RecordPlaytime_Request) returns (.CTimedTrial_RecordPlaytime_Response) {
|
44
|
+
option (method_description) = "Updates the user's remaining playtime while in game";
|
45
|
+
}
|
46
|
+
|
47
|
+
rpc ResetPlaytime (.CTimedTrial_ResetPlaytime_Request) returns (.CTimedTrial_ResetPlaytime_Response) {
|
48
|
+
option (method_description) = "Reset the user's remaining playtime (developer only)";
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
import "steammessages_base.proto";
|
2
|
+
import "steammessages_unified_base.steamclient.proto";
|
3
|
+
|
4
|
+
option cc_generic_services = true;
|
5
|
+
|
6
|
+
message CTwoFactor_Status_Request {
|
7
|
+
optional fixed64 steamid = 1 [(description) = "steamid to use"];
|
8
|
+
}
|
9
|
+
|
10
|
+
message CTwoFactor_Status_Response {
|
11
|
+
optional uint32 state = 1 [(description) = "Authenticator state"];
|
12
|
+
optional uint32 inactivation_reason = 2 [(description) = "Inactivation reason (if any)"];
|
13
|
+
optional uint32 authenticator_type = 3 [(description) = "Type of authenticator"];
|
14
|
+
optional bool authenticator_allowed = 4 [(description) = "Account allowed to have an authenticator?"];
|
15
|
+
optional uint32 steamguard_scheme = 5 [(description) = "Steam Guard scheme in effect"];
|
16
|
+
optional string token_gid = 6 [(description) = "String rep of token GID assigned by server"];
|
17
|
+
optional bool email_validated = 7 [(description) = "Account has verified email capability"];
|
18
|
+
optional string device_identifier = 8 [(description) = "Authenticator (phone) identifier"];
|
19
|
+
optional uint32 time_created = 9 [(description) = "When the token was created"];
|
20
|
+
optional uint32 revocation_attempts_remaining = 10 [(description) = "Number of revocation code attempts remaining"];
|
21
|
+
optional string classified_agent = 11 [(description) = "Agent that added the authenticator (e.g., ios / android / other)"];
|
22
|
+
optional bool allow_external_authenticator = 12 [(description) = "Allow a third-party authenticator (in addition to two-factor)"];
|
23
|
+
optional uint32 time_transferred = 13 [(description) = "When the token was transferred from another device, if applicable"];
|
24
|
+
}
|
25
|
+
|
26
|
+
message CTwoFactor_AddAuthenticator_Request {
|
27
|
+
optional fixed64 steamid = 1 [(description) = "steamid to use"];
|
28
|
+
optional uint64 authenticator_time = 2 [(description) = "Current authenticator time"];
|
29
|
+
optional fixed64 serial_number = 3 [(description) = "locally computed serial (deprecated)"];
|
30
|
+
optional uint32 authenticator_type = 4 [(description) = "Authenticator type"];
|
31
|
+
optional string device_identifier = 5 [(description) = "Authenticator identifier"];
|
32
|
+
optional string sms_phone_id = 6 [(description) = "ID of phone to use for SMS verification"];
|
33
|
+
repeated string http_headers = 7 [(description) = "HTTP headers alternating by K/V"];
|
34
|
+
}
|
35
|
+
|
36
|
+
message CTwoFactor_AddAuthenticator_Response {
|
37
|
+
optional bytes shared_secret = 1 [(description) = "Shared secret between server and authenticator"];
|
38
|
+
optional fixed64 serial_number = 2 [(description) = "Authenticator serial number (unique per token)"];
|
39
|
+
optional string revocation_code = 3 [(description) = "code used to revoke authenticator"];
|
40
|
+
optional string uri = 4 [(description) = "URI for QR code generation"];
|
41
|
+
optional uint64 server_time = 5 [(description) = "Current server time"];
|
42
|
+
optional string account_name = 6 [(description) = "Account name to display on token client"];
|
43
|
+
optional string token_gid = 7 [(description) = "Token GID assigned by server"];
|
44
|
+
optional bytes identity_secret = 8 [(description) = "Secret used for identity attestation (e.g., for eventing)"];
|
45
|
+
optional bytes secret_1 = 9 [(description) = "Spare shared secret"];
|
46
|
+
optional int32 status = 10 [(description) = "Result code"];
|
47
|
+
}
|
48
|
+
|
49
|
+
message CTwoFactor_SendEmail_Request {
|
50
|
+
optional fixed64 steamid = 1 [(description) = "Steamid to use"];
|
51
|
+
optional uint32 email_type = 2 [(description) = "Type of email to send (ETwoFactorEmailType::*)"];
|
52
|
+
optional bool include_activation_code = 3 [(description) = "Include activation code in email parameters"];
|
53
|
+
}
|
54
|
+
|
55
|
+
message CTwoFactor_SendEmail_Response {
|
56
|
+
}
|
57
|
+
|
58
|
+
message CTwoFactor_FinalizeAddAuthenticator_Request {
|
59
|
+
optional fixed64 steamid = 1 [(description) = "steamid to use"];
|
60
|
+
optional string authenticator_code = 2 [(description) = "Current auth code"];
|
61
|
+
optional uint64 authenticator_time = 3 [(description) = "Current authenticator time"];
|
62
|
+
optional string activation_code = 4 [(description) = "Activation code from out-of-band message"];
|
63
|
+
repeated string http_headers = 5 [(description) = "HTTP headers alternating by K/V"];
|
64
|
+
}
|
65
|
+
|
66
|
+
message CTwoFactor_FinalizeAddAuthenticator_Response {
|
67
|
+
optional bool success = 1 [(description) = "True if succeeded, or want more tries"];
|
68
|
+
optional bool want_more = 2 [(description) = "True if want more tries"];
|
69
|
+
optional uint64 server_time = 3 [(description) = "Current server time"];
|
70
|
+
optional int32 status = 4 [(description) = "Result code"];
|
71
|
+
}
|
72
|
+
|
73
|
+
message CTwoFactor_UpdateTokenVersion_Request {
|
74
|
+
optional uint32 version = 2 [(description) = "What the version of our token should be"];
|
75
|
+
}
|
76
|
+
|
77
|
+
message CTwoFactor_UpdateTokenVersion_Response {
|
78
|
+
}
|
79
|
+
|
80
|
+
message CTwoFactor_RemoveAuthenticator_Request {
|
81
|
+
optional string revocation_code = 2 [(description) = "Password needed to remove token"];
|
82
|
+
optional uint32 revocation_reason = 5 [(description) = "Reason the authenticator is being removed"];
|
83
|
+
optional uint32 steamguard_scheme = 6 [(description) = "Type of Steam Guard to use once token is removed"];
|
84
|
+
optional bool remove_all_steamguard_cookies = 7 [(description) = "Remove all steamguard cookies"];
|
85
|
+
}
|
86
|
+
|
87
|
+
message CTwoFactor_RemoveAuthenticator_Response {
|
88
|
+
optional bool success = 1 [(description) = "True if request succeeeded. The mobile app checks this."];
|
89
|
+
optional uint64 server_time = 3 [(description) = "Current server time"];
|
90
|
+
optional uint32 revocation_attempts_remaining = 5 [(description) = "Number of revocation code attempts remaining"];
|
91
|
+
}
|
92
|
+
|
93
|
+
message CTwoFactor_CreateEmergencyCodes_Request {
|
94
|
+
optional string code = 1;
|
95
|
+
}
|
96
|
+
|
97
|
+
message CTwoFactor_CreateEmergencyCodes_Response {
|
98
|
+
repeated string codes = 1 [(description) = "Emergency codes"];
|
99
|
+
}
|
100
|
+
|
101
|
+
message CTwoFactor_DestroyEmergencyCodes_Request {
|
102
|
+
optional fixed64 steamid = 1 [(description) = "steamid to use"];
|
103
|
+
}
|
104
|
+
|
105
|
+
message CTwoFactor_DestroyEmergencyCodes_Response {
|
106
|
+
}
|
107
|
+
|
108
|
+
message CTwoFactor_ValidateToken_Request {
|
109
|
+
optional string code = 1 [(description) = "code to validate"];
|
110
|
+
}
|
111
|
+
|
112
|
+
message CTwoFactor_ValidateToken_Response {
|
113
|
+
optional bool valid = 1 [(description) = "result of validation"];
|
114
|
+
}
|
115
|
+
|
116
|
+
service TwoFactor {
|
117
|
+
option (service_description) = "Two Factor Authentication Service";
|
118
|
+
|
119
|
+
rpc QueryStatus (.CTwoFactor_Status_Request) returns (.CTwoFactor_Status_Response) {
|
120
|
+
option (method_description) = "Get two-factor authentication settings for the logged-in account";
|
121
|
+
}
|
122
|
+
|
123
|
+
rpc AddAuthenticator (.CTwoFactor_AddAuthenticator_Request) returns (.CTwoFactor_AddAuthenticator_Response) {
|
124
|
+
option (method_description) = "Add two-factor authenticator to the logged-in account";
|
125
|
+
}
|
126
|
+
|
127
|
+
rpc SendEmail (.CTwoFactor_SendEmail_Request) returns (.CTwoFactor_SendEmail_Response) {
|
128
|
+
option (method_description) = "Send email to the account";
|
129
|
+
}
|
130
|
+
|
131
|
+
rpc FinalizeAddAuthenticator (.CTwoFactor_FinalizeAddAuthenticator_Request) returns (.CTwoFactor_FinalizeAddAuthenticator_Response) {
|
132
|
+
option (method_description) = "Finalize two-factor authentication addition to the logged-in account";
|
133
|
+
}
|
134
|
+
|
135
|
+
rpc UpdateTokenVersion (.CTwoFactor_UpdateTokenVersion_Request) returns (.CTwoFactor_UpdateTokenVersion_Response) {
|
136
|
+
option (method_description) = "Update the version for my token";
|
137
|
+
}
|
138
|
+
|
139
|
+
rpc RemoveAuthenticator (.CTwoFactor_RemoveAuthenticator_Request) returns (.CTwoFactor_RemoveAuthenticator_Response) {
|
140
|
+
option (method_description) = "Remove two-factor authentication addition from the logged-in account";
|
141
|
+
}
|
142
|
+
|
143
|
+
rpc CreateEmergencyCodes (.CTwoFactor_CreateEmergencyCodes_Request) returns (.CTwoFactor_CreateEmergencyCodes_Response) {
|
144
|
+
option (method_description) = "Generate emergency authenticator codes";
|
145
|
+
}
|
146
|
+
|
147
|
+
rpc DestroyEmergencyCodes (.CTwoFactor_DestroyEmergencyCodes_Request) returns (.CTwoFactor_DestroyEmergencyCodes_Response) {
|
148
|
+
option (method_description) = "Destroy emergency authenticator codes for the account";
|
149
|
+
}
|
150
|
+
|
151
|
+
rpc ValidateToken (.CTwoFactor_ValidateToken_Request) returns (.CTwoFactor_ValidateToken_Response) {
|
152
|
+
option (method_description) = "Validate (and consume) a token";
|
153
|
+
}
|
154
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import "google/protobuf/descriptor.proto";
|
2
|
+
|
3
|
+
option optimize_for = SPEED;
|
4
|
+
option cc_generic_services = false;
|
5
|
+
|
6
|
+
extend .google.protobuf.FieldOptions {
|
7
|
+
optional string description = 50000;
|
8
|
+
}
|
9
|
+
|
10
|
+
extend .google.protobuf.ServiceOptions {
|
11
|
+
optional string service_description = 50000;
|
12
|
+
optional .EProtoExecutionSite service_execution_site = 50008 [default = k_EProtoExecutionSiteUnknown];
|
13
|
+
}
|
14
|
+
|
15
|
+
extend .google.protobuf.MethodOptions {
|
16
|
+
optional string method_description = 50000;
|
17
|
+
}
|
18
|
+
|
19
|
+
extend .google.protobuf.EnumOptions {
|
20
|
+
optional string enum_description = 50000;
|
21
|
+
}
|
22
|
+
|
23
|
+
extend .google.protobuf.EnumValueOptions {
|
24
|
+
optional string enum_value_description = 50000;
|
25
|
+
}
|
26
|
+
|
27
|
+
enum EProtoExecutionSite {
|
28
|
+
k_EProtoExecutionSiteUnknown = 0;
|
29
|
+
k_EProtoExecutionSiteSteamClient = 2;
|
30
|
+
}
|
31
|
+
|
32
|
+
message NoResponse {
|
33
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import "steammessages_base.proto";
|
2
|
+
import "steammessages_unified_base.steamclient.proto";
|
3
|
+
|
4
|
+
option cc_generic_services = true;
|
5
|
+
|
6
|
+
message CMsgTest_MessageToClient_Request {
|
7
|
+
optional string some_text = 1 [(description) = "Some string."];
|
8
|
+
}
|
9
|
+
|
10
|
+
message CMsgTest_MessageToClient_Response {
|
11
|
+
optional string some_text = 1 [(description) = "Some string."];
|
12
|
+
}
|
13
|
+
|
14
|
+
message CMsgTest_NotifyClient_Notification {
|
15
|
+
optional string some_text = 1 [(description) = "Some string."];
|
16
|
+
}
|
17
|
+
|
18
|
+
message CMsgTest_MessageToServer_Request {
|
19
|
+
optional string some_text = 1 [(description) = "Some string."];
|
20
|
+
}
|
21
|
+
|
22
|
+
message CMsgTest_MessageToServer_Response {
|
23
|
+
optional string some_text = 1 [(description) = "Some string."];
|
24
|
+
}
|
25
|
+
|
26
|
+
message CMsgTest_NotifyServer_Notification {
|
27
|
+
optional string some_text = 1 [(description) = "Some string."];
|
28
|
+
}
|
29
|
+
|
30
|
+
service TestSteamClient {
|
31
|
+
option (service_execution_site) = k_EProtoExecutionSiteSteamClient;
|
32
|
+
|
33
|
+
rpc MessageToClient (.CMsgTest_MessageToClient_Request) returns (.CMsgTest_MessageToClient_Response) {
|
34
|
+
option (method_description) = "Some description - MessageToClient.";
|
35
|
+
}
|
36
|
+
|
37
|
+
rpc NotifyClient (.CMsgTest_NotifyClient_Notification) returns (.NoResponse) {
|
38
|
+
option (method_description) = "Some description - NotifyClient.";
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
service TestServerFromClient {
|
43
|
+
rpc MessageToServer (.CMsgTest_MessageToServer_Request) returns (.CMsgTest_MessageToServer_Response) {
|
44
|
+
option (method_description) = "Some description - MessageToServer.";
|
45
|
+
}
|
46
|
+
|
47
|
+
rpc NotifyServer (.CMsgTest_NotifyServer_Notification) returns (.NoResponse) {
|
48
|
+
option (method_description) = "Some description - NotifyServer.";
|
49
|
+
}
|
50
|
+
}
|