steamutils 1.0.4 → 1.0.6

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.
Files changed (95) hide show
  1. package/SteamClient.js +5 -0
  2. package/package.json +1 -1
  3. package/protos/base_gcmessages.proto +533 -0
  4. package/protos/clientmetrics.proto +45 -0
  5. package/protos/content_manifest.proto +62 -0
  6. package/protos/cstrike15_gcmessages.proto +1344 -0
  7. package/protos/cstrike15_usermessages.proto +597 -0
  8. package/protos/econ_gcmessages.proto +225 -0
  9. package/protos/encrypted_app_ticket.proto +10 -0
  10. package/protos/engine_gcmessages.proto +16 -0
  11. package/protos/enums.proto +285 -0
  12. package/protos/enums_clientserver.proto +1534 -0
  13. package/protos/fatdemo.proto +125 -0
  14. package/protos/gcsdk_gcmessages.proto +302 -0
  15. package/protos/gcsystemmsgs.proto +246 -0
  16. package/protos/htmlmessages.proto +993 -0
  17. package/protos/netmessages.proto +491 -0
  18. package/protos/network_connection.proto +70 -0
  19. package/protos/renderer/rendermessages.proto +893 -0
  20. package/protos/steamdatagram_messages.proto +205 -0
  21. package/protos/steamdatagram_messages_auth.proto +65 -0
  22. package/protos/steamdatagram_messages_sdr.proto +518 -0
  23. package/protos/steammessages.proto +601 -0
  24. package/protos/steammessages_accounthardware.steamclient.proto +188 -0
  25. package/protos/steammessages_appoverview.proto +185 -0
  26. package/protos/steammessages_auth.steamclient.proto +192 -0
  27. package/protos/steammessages_base.proto +288 -0
  28. package/protos/steammessages_broadcast.steamclient.proto +756 -0
  29. package/protos/steammessages_chat.steamclient.proto +1281 -0
  30. package/protos/steammessages_client_objects.proto +336 -0
  31. package/protos/steammessages_clientlanp2p.proto +26 -0
  32. package/protos/steammessages_clientmetrics.steamclient.proto +176 -0
  33. package/protos/steammessages_clientnotificationtypes.proto +129 -0
  34. package/protos/steammessages_clientserver.proto +384 -0
  35. package/protos/steammessages_clientserver_2.proto +776 -0
  36. package/protos/steammessages_clientserver_appinfo.proto +166 -0
  37. package/protos/steammessages_clientserver_friends.proto +260 -0
  38. package/protos/steammessages_clientserver_gameservers.proto +159 -0
  39. package/protos/steammessages_clientserver_lbs.proto +70 -0
  40. package/protos/steammessages_clientserver_login.proto +159 -0
  41. package/protos/steammessages_clientserver_mms.proto +235 -0
  42. package/protos/steammessages_clientserver_ucm.proto +202 -0
  43. package/protos/steammessages_clientserver_uds.proto +104 -0
  44. package/protos/steammessages_clientserver_ufs.proto +172 -0
  45. package/protos/steammessages_clientserver_userstats.proto +80 -0
  46. package/protos/steammessages_cloud.steamclient.proto +512 -0
  47. package/protos/steammessages_contentsystem.steamclient.proto +77 -0
  48. package/protos/steammessages_credentials.steamclient.proto +141 -0
  49. package/protos/steammessages_datapublisher.steamclient.proto +67 -0
  50. package/protos/steammessages_depotbuilder.steamclient.proto +118 -0
  51. package/protos/steammessages_deviceauth.steamclient.proto +200 -0
  52. package/protos/steammessages_econ.steamclient.proto +105 -0
  53. package/protos/steammessages_friendmessages.steamclient.proto +168 -0
  54. package/protos/steammessages_gamenetworking.steamclient.proto +32 -0
  55. package/protos/steammessages_gamenetworkingui.proto +42 -0
  56. package/protos/steammessages_gamenotifications.steamclient.proto +156 -0
  57. package/protos/steammessages_gameservers.steamclient.proto +152 -0
  58. package/protos/steammessages_hiddevices.proto +156 -0
  59. package/protos/steammessages_inventory.steamclient.proto +224 -0
  60. package/protos/steammessages_linkfilter.steamclient.proto +49 -0
  61. package/protos/steammessages_lobbymatchmaking.steamclient.proto +33 -0
  62. package/protos/steammessages_market.steamclient.proto +26 -0
  63. package/protos/steammessages_offline.steamclient.proto +37 -0
  64. package/protos/steammessages_parental.steamclient.proto +186 -0
  65. package/protos/steammessages_parties.steamclient.proto +94 -0
  66. package/protos/steammessages_partnerapps.steamclient.proto +136 -0
  67. package/protos/steammessages_player.steamclient.proto +912 -0
  68. package/protos/steammessages_publishedfile.steamclient.proto +711 -0
  69. package/protos/steammessages_qms.steamclient.proto +125 -0
  70. package/protos/steammessages_remoteclient.proto +99 -0
  71. package/protos/steammessages_remoteclient_discovery.proto +228 -0
  72. package/protos/steammessages_remoteclient_service.steamclient.proto +90 -0
  73. package/protos/steammessages_remoteclient_service_messages.proto +196 -0
  74. package/protos/steammessages_remoteplay.proto +871 -0
  75. package/protos/steammessages_secrets.steamclient.proto +39 -0
  76. package/protos/steammessages_shader.steamclient.proto +96 -0
  77. package/protos/steammessages_site_license.steamclient.proto +128 -0
  78. package/protos/steammessages_sitelicenseclient.proto +38 -0
  79. package/protos/steammessages_siteserverui.proto +130 -0
  80. package/protos/steammessages_star.steamclient.proto +64 -0
  81. package/protos/steammessages_steamtv.steamclient.proto +630 -0
  82. package/protos/steammessages_store.steamclient.proto +262 -0
  83. package/protos/steammessages_timedtrial.steamclient.proto +50 -0
  84. package/protos/steammessages_twofactor.steamclient.proto +154 -0
  85. package/protos/steammessages_unified_base.steamclient.proto +33 -0
  86. package/protos/steammessages_unified_test.steamclient.proto +50 -0
  87. package/protos/steammessages_useraccount.steamclient.proto +210 -0
  88. package/protos/steammessages_vac.steamclient.proto +44 -0
  89. package/protos/steammessages_video.steamclient.proto +84 -0
  90. package/protos/steammessages_virtualcontroller.proto +138 -0
  91. package/protos/steammessages_workshop.steamclient.proto +23 -0
  92. package/protos/steamnetworkingsockets_messages.proto +204 -0
  93. package/protos/steamnetworkingsockets_messages_certs.proto +38 -0
  94. package/protos/steamnetworkingsockets_messages_udp.proto +75 -0
  95. package/protos/uifontfile_format.proto +16 -0
@@ -0,0 +1,141 @@
1
+ import "steammessages_base.proto";
2
+ import "steammessages_unified_base.steamclient.proto";
3
+
4
+ option cc_generic_services = true;
5
+
6
+ message CCredentials_TestAvailablePassword_Request {
7
+ optional string password = 1;
8
+ optional bytes sha_digest_password = 2;
9
+ optional string account_name = 3;
10
+ }
11
+
12
+ message CCredentials_TestAvailablePassword_Response {
13
+ optional bool is_valid = 3;
14
+ }
15
+
16
+ message CCredentials_GetSteamGuardDetails_Request {
17
+ optional bool include_new_authentications = 1 [default = true, (description) = "Whether or not to populate the newauthentication field in the response"];
18
+ optional string webcookie = 2 [(description) = "The user's Steam Guard machine auth cookie. If present, it'll be used to get the user's machine ID instead of the AM session."];
19
+ optional fixed32 timestamp_minimum_wanted = 3;
20
+ optional int32 deprecated_ipaddress = 4;
21
+ optional .CMsgIPAddress ip_address = 5;
22
+ }
23
+
24
+ message CCredentials_GetSteamGuardDetails_Response {
25
+ message NewAuthentication {
26
+ optional fixed32 timestamp_steamguard_enabled = 1;
27
+ optional bool is_web_cookie = 2;
28
+ optional int32 deprecated_ipaddress = 3;
29
+ optional string geoloc_info = 4;
30
+ optional bool is_remembered = 5;
31
+ optional string machine_name_user_supplied = 6;
32
+ optional int32 status = 7;
33
+ optional .CMsgIPAddress ip_address = 8;
34
+ }
35
+
36
+ message SessionData {
37
+ optional uint64 machine_id = 1;
38
+ optional string machine_name_userchosen = 2;
39
+ optional fixed32 timestamp_machine_steamguard_enabled = 3;
40
+ optional bool authentication_exists_from_geoloc_before_mintime = 4;
41
+ repeated .CCredentials_GetSteamGuardDetails_Response.NewAuthentication newauthentication = 5;
42
+ optional bool authentication_exists_from_same_ip_before_mintime = 6;
43
+ optional uint32 public_ipv4 = 7;
44
+ optional string public_ip_address = 8;
45
+ }
46
+
47
+ optional bool is_steamguard_enabled = 1;
48
+ optional fixed32 timestamp_steamguard_enabled = 2;
49
+ repeated .CCredentials_GetSteamGuardDetails_Response.NewAuthentication deprecated_newauthentication = 3;
50
+ optional string deprecated_machine_name_userchosen = 4;
51
+ optional fixed32 deprecated_timestamp_machine_steamguard_enabled = 5;
52
+ optional bool deprecated_authentication_exists_from_geoloc_before_mintime = 6;
53
+ optional uint64 deprecated_machine_id = 7;
54
+ repeated .CCredentials_GetSteamGuardDetails_Response.SessionData session_data = 8;
55
+ optional bool is_twofactor_enabled = 9;
56
+ optional fixed32 timestamp_twofactor_enabled = 10;
57
+ optional bool is_phone_verified = 11;
58
+ }
59
+
60
+ message CCredentials_NewMachineNotificationDialog_Request {
61
+ optional bool is_approved = 1;
62
+ optional bool is_wizard_complete = 2;
63
+ }
64
+
65
+ message CCredentials_NewMachineNotificationDialog_Response {
66
+ }
67
+
68
+ message CCredentials_ValidateEmailAddress_Request {
69
+ optional string stoken = 1;
70
+ }
71
+
72
+ message CCredentials_ValidateEmailAddress_Response {
73
+ optional bool was_validated = 1;
74
+ }
75
+
76
+ message CCredentials_SteamGuardPhishingReport_Request {
77
+ optional string param_string = 1;
78
+ optional string ipaddress_actual = 2;
79
+ }
80
+
81
+ message CCredentials_SteamGuardPhishingReport_Response {
82
+ optional string ipaddress_loginattempt = 1;
83
+ optional string countryname_loginattempt = 2;
84
+ optional string statename_loginattempt = 3;
85
+ optional string cityname_loginattempt = 4;
86
+ optional string ipaddress_actual = 5;
87
+ optional string countryname_actual = 6;
88
+ optional string statename_actual = 7;
89
+ optional string cityname_actual = 8;
90
+ optional string steamguard_code = 9;
91
+ }
92
+
93
+ message CCredentials_LastCredentialChangeTime_Request {
94
+ optional bool user_changes_only = 1;
95
+ }
96
+
97
+ message CCredentials_LastCredentialChangeTime_Response {
98
+ optional fixed32 timestamp_last_password_change = 1;
99
+ optional fixed32 timestamp_last_email_change = 2;
100
+ optional fixed32 timestamp_last_password_reset = 3;
101
+ }
102
+
103
+ message CCredentials_GetAccountAuthSecret_Request {
104
+ }
105
+
106
+ message CCredentials_GetAccountAuthSecret_Response {
107
+ optional int32 secret_id = 1;
108
+ optional bytes secret = 2;
109
+ }
110
+
111
+ service Credentials {
112
+ option (service_description) = "Credentials service";
113
+
114
+ rpc TestAvailablePassword (.CCredentials_TestAvailablePassword_Request) returns (.CCredentials_TestAvailablePassword_Response) {
115
+ option (method_description) = "TestAvailablePassword.";
116
+ }
117
+
118
+ rpc GetSteamGuardDetails (.CCredentials_GetSteamGuardDetails_Request) returns (.CCredentials_GetSteamGuardDetails_Response) {
119
+ option (method_description) = "GetSteamGuardDetails.";
120
+ }
121
+
122
+ rpc NewMachineNotificationDialogResult (.CCredentials_NewMachineNotificationDialog_Request) returns (.CCredentials_NewMachineNotificationDialog_Response) {
123
+ option (method_description) = "NewMachineNotificationDialogResult.";
124
+ }
125
+
126
+ rpc ValidateEmailAddress (.CCredentials_ValidateEmailAddress_Request) returns (.CCredentials_ValidateEmailAddress_Response) {
127
+ option (method_description) = "Validate an email address given a token";
128
+ }
129
+
130
+ rpc SteamGuardPhishingReport (.CCredentials_SteamGuardPhishingReport_Request) returns (.CCredentials_SteamGuardPhishingReport_Response) {
131
+ option (method_description) = "SteamGuardPhishingReport";
132
+ }
133
+
134
+ rpc GetCredentialChangeTimeDetails (.CCredentials_LastCredentialChangeTime_Request) returns (.CCredentials_LastCredentialChangeTime_Response) {
135
+ option (method_description) = "GetCredentialChangeTimeDetails.";
136
+ }
137
+
138
+ rpc GetAccountAuthSecret (.CCredentials_GetAccountAuthSecret_Request) returns (.CCredentials_GetAccountAuthSecret_Response) {
139
+ option (method_description) = "GetAccountAuthSecret";
140
+ }
141
+ }
@@ -0,0 +1,67 @@
1
+ import "steammessages_base.proto";
2
+ import "steammessages_unified_base.steamclient.proto";
3
+
4
+ option cc_generic_services = true;
5
+
6
+ message CDataPublisher_ClientContentCorruptionReport_Notification {
7
+ optional uint32 appid = 1;
8
+ optional uint32 depotid = 2;
9
+ optional string download_source = 3 [(description) = "host name of download source"];
10
+ optional string objectid = 4 [(description) = "Chunk SHA or Manifest ID"];
11
+ optional uint32 cellid = 5 [(description) = "Client Cell ID"];
12
+ optional bool is_manifest = 6 [(description) = "The object is a manifest, not a chunk"];
13
+ optional uint64 object_size = 7 [(description) = "object size in bytes"];
14
+ optional uint32 corruption_type = 8 [(description) = "See EContentCorruptionType"];
15
+ optional bool used_https = 9 [(description) = "the request was HTTPS"];
16
+ optional bool oc_proxy_detected = 10 [(description) = "detected an OpenCache proxy"];
17
+ }
18
+
19
+ message CDataPublisher_ClientUpdateAppJob_Notification {
20
+ optional uint32 app_id = 1;
21
+ repeated uint32 depot_ids = 2;
22
+ optional uint32 app_state = 3;
23
+ optional uint32 job_app_error = 4;
24
+ optional string error_details = 5;
25
+ optional uint32 job_duration = 6;
26
+ optional uint32 files_validation_failed = 7;
27
+ optional uint64 job_bytes_downloaded = 8;
28
+ optional uint64 job_bytes_staged = 9;
29
+ optional uint64 bytes_comitted = 10;
30
+ optional uint32 start_app_state = 11;
31
+ optional fixed64 stats_machine_id = 12;
32
+ optional string branch_name = 13;
33
+ optional uint64 total_bytes_downloaded = 14;
34
+ optional uint64 total_bytes_staged = 15;
35
+ optional uint64 total_bytes_restored = 16;
36
+ optional bool is_borrowed = 17;
37
+ optional bool is_free_weekend = 18;
38
+ optional uint64 total_bytes_legacy = 19;
39
+ optional uint64 total_bytes_patched = 20;
40
+ optional uint64 total_bytes_saved = 21;
41
+ optional uint32 cell_id = 22;
42
+ }
43
+
44
+ message CValveHWSurvey_GetSurveySchedule_Request {
45
+ optional string surveydatetoken = 1;
46
+ optional fixed64 surveydatetokenversion = 2;
47
+ }
48
+
49
+ message CValveHWSurvey_GetSurveySchedule_Response {
50
+ optional uint32 surveydatetoken = 1;
51
+ optional fixed64 surveydatetokenversion = 2;
52
+ }
53
+
54
+ service DataPublisher {
55
+ option (service_description) = "Data Publisher (DP) server services";
56
+
57
+ rpc ClientContentCorruptionReport (.CDataPublisher_ClientContentCorruptionReport_Notification) returns (.NoResponse);
58
+ rpc ClientUpdateAppJobReport (.CDataPublisher_ClientUpdateAppJob_Notification) returns (.NoResponse);
59
+ }
60
+
61
+ service ValveHWSurvey {
62
+ option (service_description) = "ValveHWSurvey";
63
+
64
+ rpc GetSurveySchedule (.CValveHWSurvey_GetSurveySchedule_Request) returns (.CValveHWSurvey_GetSurveySchedule_Response) {
65
+ option (method_description) = "Should I run the survey";
66
+ }
67
+ }
@@ -0,0 +1,118 @@
1
+ import "steammessages_base.proto";
2
+ import "steammessages_unified_base.steamclient.proto";
3
+
4
+ option cc_generic_services = true;
5
+
6
+ message CContentBuilder_InitDepotBuild_Request {
7
+ optional uint32 appid = 1;
8
+ optional uint32 depotid = 2;
9
+ optional uint64 workshop_itemid = 3;
10
+ optional bool for_local_cs = 4;
11
+ optional string target_branch = 5;
12
+ }
13
+
14
+ message CContentBuilder_InitDepotBuild_Response {
15
+ optional uint64 baseline_manifestid = 1;
16
+ optional uint32 chunk_size = 2;
17
+ optional bytes aes_key = 3;
18
+ optional bytes rsa_key = 4;
19
+ optional string url_host = 5;
20
+ optional bool offset_detection_enabled = 6;
21
+ optional uint32 offset_detection_min_clean_chunk = 7;
22
+ optional uint32 offset_detection_blast_radius_pre = 8;
23
+ optional uint32 offset_detection_blast_radius_post = 9;
24
+ optional uint32 offset_detection_max_distance_pre = 10;
25
+ optional uint32 offset_detection_max_distance_post = 11;
26
+ }
27
+
28
+ message CContentBuilder_StartDepotUpload_Request {
29
+ optional uint32 appid = 1;
30
+ optional uint32 depotid = 2;
31
+ optional uint64 workshop_itemid = 3;
32
+ optional bool for_local_cs = 4;
33
+ optional uint64 baseline_manifestid = 5;
34
+ optional uint32 manifest_size = 6;
35
+ }
36
+
37
+ message CContentBuilder_StartDepotUpload_Response {
38
+ optional uint64 depot_build_handle = 1;
39
+ }
40
+
41
+ message CContentBuilder_GetMissingDepotChunks_Request {
42
+ optional uint32 appid = 1;
43
+ optional uint64 depot_build_handle = 2;
44
+ }
45
+
46
+ message CContentBuilder_GetMissingDepotChunks_Response {
47
+ message Chunks {
48
+ optional bytes sha = 1;
49
+ }
50
+
51
+ repeated .CContentBuilder_GetMissingDepotChunks_Response.Chunks missing_chunks = 1;
52
+ optional uint32 total_missing_chunks = 2;
53
+ optional uint64 total_missing_bytes = 3;
54
+ }
55
+
56
+ message CContentBuilder_FinishDepotUpload_Request {
57
+ optional uint32 appid = 1;
58
+ optional uint64 depot_build_handle = 2;
59
+ }
60
+
61
+ message CContentBuilder_FinishDepotUpload_Response {
62
+ optional uint64 manifestid = 1;
63
+ optional bool prev_reused = 2;
64
+ }
65
+
66
+ message CContentBuilder_CommitAppBuild_Request {
67
+ message Depots {
68
+ optional uint32 depotid = 1;
69
+ optional uint64 manifestid = 2;
70
+ }
71
+
72
+ optional uint32 appid = 1;
73
+ repeated .CContentBuilder_CommitAppBuild_Request.Depots depot_manifests = 2;
74
+ optional string build_notes = 4;
75
+ optional string live_branch = 5;
76
+ }
77
+
78
+ message CContentBuilder_CommitAppBuild_Response {
79
+ optional uint32 buildid = 1;
80
+ }
81
+
82
+ message CContentBuilder_SignInstallScript_Request {
83
+ optional uint32 appid = 1;
84
+ optional uint32 depotid = 2;
85
+ optional string install_script = 3;
86
+ }
87
+
88
+ message CContentBuilder_SignInstallScript_Response {
89
+ optional string signed_install_script = 1;
90
+ }
91
+
92
+ service ContentBuilder {
93
+ option (service_description) = "Interface to build and upload depot content";
94
+
95
+ rpc InitDepotBuild (.CContentBuilder_InitDepotBuild_Request) returns (.CContentBuilder_InitDepotBuild_Response) {
96
+ option (method_description) = "Get inital parameters to start building a depot";
97
+ }
98
+
99
+ rpc StartDepotUpload (.CContentBuilder_StartDepotUpload_Request) returns (.CContentBuilder_StartDepotUpload_Response) {
100
+ option (method_description) = "Start uploading manifest and chunks for a depot";
101
+ }
102
+
103
+ rpc GetMissingDepotChunks (.CContentBuilder_GetMissingDepotChunks_Request) returns (.CContentBuilder_GetMissingDepotChunks_Response) {
104
+ option (method_description) = "Get list of missing chunks for depot upload";
105
+ }
106
+
107
+ rpc FinishDepotUpload (.CContentBuilder_FinishDepotUpload_Request) returns (.CContentBuilder_FinishDepotUpload_Response) {
108
+ option (method_description) = "Commit a depot build after manifest and all chunks are uploaded";
109
+ }
110
+
111
+ rpc CommitAppBuild (.CContentBuilder_CommitAppBuild_Request) returns (.CContentBuilder_CommitAppBuild_Response) {
112
+ option (method_description) = "Combine previous depot uploads into an app build and commit it";
113
+ }
114
+
115
+ rpc SignInstallScript (.CContentBuilder_SignInstallScript_Request) returns (.CContentBuilder_SignInstallScript_Response) {
116
+ option (method_description) = "Sign an install script";
117
+ }
118
+ }
@@ -0,0 +1,200 @@
1
+ import "steammessages_base.proto";
2
+ import "steammessages_unified_base.steamclient.proto";
3
+
4
+ option cc_generic_services = true;
5
+
6
+ message CDeviceAuth_GetOwnAuthorizedDevices_Request {
7
+ optional fixed64 steamid = 1;
8
+ optional bool include_canceled = 2;
9
+ }
10
+
11
+ message CDeviceAuth_GetOwnAuthorizedDevices_Response {
12
+ message Device {
13
+ optional fixed64 auth_device_token = 1;
14
+ optional string device_name = 2;
15
+ optional bool is_pending = 3;
16
+ optional bool is_canceled = 4;
17
+ optional uint32 last_time_used = 5;
18
+ optional fixed64 last_borrower_id = 6;
19
+ optional uint32 last_app_played = 7;
20
+ optional bool is_limited = 8;
21
+ }
22
+
23
+ repeated .CDeviceAuth_GetOwnAuthorizedDevices_Response.Device devices = 1;
24
+ }
25
+
26
+ message CDeviceAuth_AcceptAuthorizationRequest_Request {
27
+ optional fixed64 steamid = 1;
28
+ optional fixed64 auth_device_token = 2;
29
+ optional fixed64 auth_code = 3;
30
+ optional fixed64 from_steamid = 4;
31
+ }
32
+
33
+ message CDeviceAuth_AcceptAuthorizationRequest_Response {
34
+ }
35
+
36
+ message CDeviceAuth_AuthorizeRemoteDevice_Request {
37
+ optional fixed64 steamid = 1;
38
+ optional fixed64 auth_device_token = 2;
39
+ }
40
+
41
+ message CDeviceAuth_AuthorizeRemoteDevice_Response {
42
+ }
43
+
44
+ message CDeviceAuth_DeauthorizeRemoteDevice_Request {
45
+ optional fixed64 steamid = 1;
46
+ optional fixed64 auth_device_token = 2;
47
+ }
48
+
49
+ message CDeviceAuth_DeauthorizeRemoteDevice_Response {
50
+ }
51
+
52
+ message CDeviceAuth_GetUsedAuthorizedDevices_Request {
53
+ optional fixed64 steamid = 1;
54
+ }
55
+
56
+ message CDeviceAuth_GetUsedAuthorizedDevices_Response {
57
+ message Device {
58
+ optional fixed64 auth_device_token = 1;
59
+ optional string device_name = 2;
60
+ optional fixed64 owner_steamid = 3;
61
+ optional uint32 last_time_used = 4;
62
+ optional uint32 last_app_played = 5;
63
+ }
64
+
65
+ repeated .CDeviceAuth_GetUsedAuthorizedDevices_Response.Device devices = 1;
66
+ }
67
+
68
+ message CDeviceAuth_GetAuthorizedBorrowers_Request {
69
+ optional fixed64 steamid = 1;
70
+ optional bool include_canceled = 2;
71
+ optional bool include_pending = 3;
72
+ }
73
+
74
+ message CDeviceAuth_GetAuthorizedBorrowers_Response {
75
+ message Borrower {
76
+ optional fixed64 steamid = 1;
77
+ optional bool is_pending = 2;
78
+ optional bool is_canceled = 3;
79
+ optional uint32 time_created = 4;
80
+ }
81
+
82
+ repeated .CDeviceAuth_GetAuthorizedBorrowers_Response.Borrower borrowers = 1;
83
+ }
84
+
85
+ message CDeviceAuth_AddAuthorizedBorrowers_Request {
86
+ optional fixed64 steamid = 1;
87
+ repeated fixed64 steamid_borrower = 2;
88
+ }
89
+
90
+ message CDeviceAuth_AddAuthorizedBorrowers_Response {
91
+ optional int32 seconds_to_wait = 1;
92
+ }
93
+
94
+ message CDeviceAuth_RemoveAuthorizedBorrowers_Request {
95
+ optional fixed64 steamid = 1;
96
+ repeated fixed64 steamid_borrower = 2;
97
+ }
98
+
99
+ message CDeviceAuth_RemoveAuthorizedBorrowers_Response {
100
+ }
101
+
102
+ message CDeviceAuth_GetAuthorizedAsBorrower_Request {
103
+ optional fixed64 steamid = 1;
104
+ optional bool include_canceled = 2;
105
+ optional bool include_pending = 3;
106
+ }
107
+
108
+ message CDeviceAuth_GetAuthorizedAsBorrower_Response {
109
+ message Lender {
110
+ optional fixed64 steamid = 1;
111
+ optional uint32 time_created = 2;
112
+ optional bool is_pending = 3;
113
+ optional bool is_canceled = 4;
114
+ optional bool is_used = 5;
115
+ }
116
+
117
+ repeated .CDeviceAuth_GetAuthorizedAsBorrower_Response.Lender lenders = 1;
118
+ }
119
+
120
+ message CDeviceAuth_GetExcludedGamesInLibrary_Request {
121
+ optional fixed64 steamid = 1;
122
+ }
123
+
124
+ message CDeviceAuth_GetExcludedGamesInLibrary_Response {
125
+ message ExcludedGame {
126
+ optional uint32 appid = 1;
127
+ optional string game_name = 2;
128
+ optional bool vac_banned = 3;
129
+ optional bool package_excluded = 4;
130
+ }
131
+
132
+ repeated .CDeviceAuth_GetExcludedGamesInLibrary_Response.ExcludedGame excluded_games = 1;
133
+ }
134
+
135
+ message CDeviceAuth_GetBorrowerPlayHistory_Request {
136
+ optional fixed64 steamid = 1;
137
+ }
138
+
139
+ message CDeviceAuth_GetBorrowerPlayHistory_Response {
140
+ message GameHistory {
141
+ optional uint32 appid = 1;
142
+ optional uint32 time_last = 2;
143
+ optional uint32 time_total = 3;
144
+ }
145
+
146
+ message LenderHistory {
147
+ optional fixed64 steamid = 1;
148
+ repeated .CDeviceAuth_GetBorrowerPlayHistory_Response.GameHistory game_history = 2;
149
+ }
150
+
151
+ repeated .CDeviceAuth_GetBorrowerPlayHistory_Response.LenderHistory lender_history = 1;
152
+ }
153
+
154
+ service DeviceAuth {
155
+ option (service_description) = "Library Sharing settings service";
156
+
157
+ rpc GetOwnAuthorizedDevices (.CDeviceAuth_GetOwnAuthorizedDevices_Request) returns (.CDeviceAuth_GetOwnAuthorizedDevices_Response) {
158
+ option (method_description) = "Get list of authorized devices";
159
+ }
160
+
161
+ rpc AcceptAuthorizationRequest (.CDeviceAuth_AcceptAuthorizationRequest_Request) returns (.CDeviceAuth_AcceptAuthorizationRequest_Response) {
162
+ option (method_description) = "Accept an authorization request by another users";
163
+ }
164
+
165
+ rpc AuthorizeRemoteDevice (.CDeviceAuth_AuthorizeRemoteDevice_Request) returns (.CDeviceAuth_AuthorizeRemoteDevice_Response) {
166
+ option (method_description) = "Authorize own remote device that has pending request";
167
+ }
168
+
169
+ rpc DeauthorizeRemoteDevice (.CDeviceAuth_DeauthorizeRemoteDevice_Request) returns (.CDeviceAuth_DeauthorizeRemoteDevice_Response) {
170
+ option (method_description) = "Revoke own device authorization";
171
+ }
172
+
173
+ rpc GetUsedAuthorizedDevices (.CDeviceAuth_GetUsedAuthorizedDevices_Request) returns (.CDeviceAuth_GetUsedAuthorizedDevices_Response) {
174
+ option (method_description) = "Get list of authorized devices user played borrowed games on";
175
+ }
176
+
177
+ rpc GetAuthorizedBorrowers (.CDeviceAuth_GetAuthorizedBorrowers_Request) returns (.CDeviceAuth_GetAuthorizedBorrowers_Response) {
178
+ option (method_description) = "Get list of users that can borrow on an authorized device";
179
+ }
180
+
181
+ rpc AddAuthorizedBorrowers (.CDeviceAuth_AddAuthorizedBorrowers_Request) returns (.CDeviceAuth_AddAuthorizedBorrowers_Response) {
182
+ option (method_description) = "Add users that can borrow on limited authorized devices";
183
+ }
184
+
185
+ rpc RemoveAuthorizedBorrowers (.CDeviceAuth_RemoveAuthorizedBorrowers_Request) returns (.CDeviceAuth_RemoveAuthorizedBorrowers_Response) {
186
+ option (method_description) = "Remove users that can borrow on limited authorized devices";
187
+ }
188
+
189
+ rpc GetAuthorizedAsBorrower (.CDeviceAuth_GetAuthorizedAsBorrower_Request) returns (.CDeviceAuth_GetAuthorizedAsBorrower_Response) {
190
+ option (method_description) = "Get list of lenders that authorized given account as borrower";
191
+ }
192
+
193
+ rpc GetExcludedGamesInLibrary (.CDeviceAuth_GetExcludedGamesInLibrary_Request) returns (.CDeviceAuth_GetExcludedGamesInLibrary_Response) {
194
+ option (method_description) = "Get list of excluded games in lenders library";
195
+ }
196
+
197
+ rpc GetBorrowerPlayHistory (.CDeviceAuth_GetBorrowerPlayHistory_Request) returns (.CDeviceAuth_GetBorrowerPlayHistory_Response) {
198
+ option (method_description) = "Get list played games as borrower";
199
+ }
200
+ }
@@ -0,0 +1,105 @@
1
+ import "steammessages_base.proto";
2
+ import "steammessages_unified_base.steamclient.proto";
3
+
4
+ option cc_generic_services = true;
5
+
6
+ message CEcon_GetTradeOfferAccessToken_Request {
7
+ optional bool generate_new_token = 1;
8
+ }
9
+
10
+ message CEcon_GetTradeOfferAccessToken_Response {
11
+ optional string trade_offer_access_token = 1;
12
+ }
13
+
14
+ message CEcon_ClientGetItemShopOverlayAuthURL_Request {
15
+ optional string return_url = 1;
16
+ }
17
+
18
+ message CEcon_ClientGetItemShopOverlayAuthURL_Response {
19
+ optional string url = 1;
20
+ }
21
+
22
+ message CEcon_GetAssetClassInfo_Request {
23
+ message Class {
24
+ optional uint64 classid = 1;
25
+ optional uint64 instanceid = 2;
26
+ }
27
+
28
+ optional string language = 1;
29
+ optional uint32 appid = 2;
30
+ repeated .CEcon_GetAssetClassInfo_Request.Class classes = 3;
31
+ }
32
+
33
+ message CEconItem_DescriptionLine {
34
+ optional string type = 1;
35
+ optional string value = 2;
36
+ optional string color = 3;
37
+ optional string label = 4;
38
+ }
39
+
40
+ message CEconItem_Action {
41
+ optional string link = 1;
42
+ optional string name = 2;
43
+ }
44
+
45
+ message CEconItem_Description {
46
+ optional int32 appid = 1;
47
+ optional uint64 classid = 2;
48
+ optional uint64 instanceid = 3;
49
+ optional bool currency = 4;
50
+ optional string background_color = 5;
51
+ optional string icon_url = 6;
52
+ optional string icon_url_large = 7;
53
+ repeated .CEconItem_DescriptionLine descriptions = 8;
54
+ optional bool tradable = 9;
55
+ repeated .CEconItem_Action actions = 10;
56
+ repeated .CEconItem_DescriptionLine owner_descriptions = 11;
57
+ repeated .CEconItem_Action owner_actions = 12;
58
+ repeated string fraudwarnings = 13;
59
+ optional string name = 14;
60
+ optional string name_color = 15;
61
+ optional string type = 16;
62
+ optional string market_name = 17;
63
+ optional string market_hash_name = 18;
64
+ optional string market_fee = 19;
65
+ optional int32 market_fee_app = 28;
66
+ optional .CEconItem_Description contained_item = 20;
67
+ repeated .CEconItem_Action market_actions = 21;
68
+ optional bool commodity = 22;
69
+ optional int32 market_tradable_restriction = 23;
70
+ optional int32 market_marketable_restriction = 24;
71
+ optional bool marketable = 25;
72
+ repeated .CEconItem_Tag tags = 26;
73
+ optional string item_expiration = 27;
74
+ optional string market_buy_country_restriction = 30;
75
+ optional string market_sell_country_restriction = 31;
76
+ }
77
+
78
+ message CEconItem_Tag {
79
+ optional uint32 appid = 1 [(description) = "The app that contains the item"];
80
+ optional string category = 2 [(description) = "The internal name of the category the tag belongs to"];
81
+ optional string internal_name = 3 [(description) = "The internal name of the tag"];
82
+ optional string localized_category_name = 4 [(description) = "The localized name of the category"];
83
+ optional string localized_tag_name = 5 [(description) = "The localized name of the tag"];
84
+ optional string color = 6 [(description) = "The color to use when displaying the tag to the user"];
85
+ }
86
+
87
+ message CEcon_GetAssetClassInfo_Response {
88
+ repeated .CEconItem_Description descriptions = 1;
89
+ }
90
+
91
+ service Econ {
92
+ option (service_description) = "A service that provides communication with the econ servers";
93
+
94
+ rpc GetTradeOfferAccessToken (.CEcon_GetTradeOfferAccessToken_Request) returns (.CEcon_GetTradeOfferAccessToken_Response) {
95
+ option (method_description) = "Get the user's trade offer access token";
96
+ }
97
+
98
+ rpc ClientGetItemShopOverlayAuthURL (.CEcon_ClientGetItemShopOverlayAuthURL_Request) returns (.CEcon_ClientGetItemShopOverlayAuthURL_Response) {
99
+ option (method_description) = "Generates a URL which sets a secure cookie for in-game-browser itemshop purchases";
100
+ }
101
+
102
+ rpc GetAssetClassInfo (.CEcon_GetAssetClassInfo_Request) returns (.CEcon_GetAssetClassInfo_Response) {
103
+ option (method_description) = "Returns description information about the passed in asset classes";
104
+ }
105
+ }