-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathsteammessages_deviceauth.proto
201 lines (159 loc) · 6.42 KB
/
steammessages_deviceauth.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
syntax = "proto2";
import "steammessages_base.proto";
import "steammessages_unified_base.proto";
option py_generic_services = true;
message CDeviceAuth_GetOwnAuthorizedDevices_Request {
optional fixed64 steamid = 1;
optional bool include_canceled = 2;
}
message CDeviceAuth_GetOwnAuthorizedDevices_Response {
message Device {
optional fixed64 auth_device_token = 1;
optional string device_name = 2;
optional bool is_pending = 3;
optional bool is_canceled = 4;
optional uint32 last_time_used = 5;
optional fixed64 last_borrower_id = 6;
optional uint32 last_app_played = 7;
optional bool is_limited = 8;
}
repeated .CDeviceAuth_GetOwnAuthorizedDevices_Response.Device devices = 1;
}
message CDeviceAuth_AcceptAuthorizationRequest_Request {
optional fixed64 steamid = 1;
optional fixed64 auth_device_token = 2;
optional fixed64 auth_code = 3;
optional fixed64 from_steamid = 4;
}
message CDeviceAuth_AcceptAuthorizationRequest_Response {
}
message CDeviceAuth_AuthorizeRemoteDevice_Request {
optional fixed64 steamid = 1;
optional fixed64 auth_device_token = 2;
}
message CDeviceAuth_AuthorizeRemoteDevice_Response {
}
message CDeviceAuth_DeauthorizeRemoteDevice_Request {
optional fixed64 steamid = 1;
optional fixed64 auth_device_token = 2;
}
message CDeviceAuth_DeauthorizeRemoteDevice_Response {
}
message CDeviceAuth_GetUsedAuthorizedDevices_Request {
optional fixed64 steamid = 1;
}
message CDeviceAuth_GetUsedAuthorizedDevices_Response {
message Device {
optional fixed64 auth_device_token = 1;
optional string device_name = 2;
optional fixed64 owner_steamid = 3;
optional uint32 last_time_used = 4;
optional uint32 last_app_played = 5;
}
repeated .CDeviceAuth_GetUsedAuthorizedDevices_Response.Device devices = 1;
}
message CDeviceAuth_GetAuthorizedBorrowers_Request {
optional fixed64 steamid = 1;
optional bool include_canceled = 2;
optional bool include_pending = 3;
}
message CDeviceAuth_GetAuthorizedBorrowers_Response {
message Borrower {
optional fixed64 steamid = 1;
optional bool is_pending = 2;
optional bool is_canceled = 3;
optional uint32 time_created = 4;
}
repeated .CDeviceAuth_GetAuthorizedBorrowers_Response.Borrower borrowers = 1;
}
message CDeviceAuth_AddAuthorizedBorrowers_Request {
optional fixed64 steamid = 1;
repeated fixed64 steamid_borrower = 2;
}
message CDeviceAuth_AddAuthorizedBorrowers_Response {
optional int32 seconds_to_wait = 1;
}
message CDeviceAuth_RemoveAuthorizedBorrowers_Request {
optional fixed64 steamid = 1;
repeated fixed64 steamid_borrower = 2;
}
message CDeviceAuth_RemoveAuthorizedBorrowers_Response {
}
message CDeviceAuth_GetAuthorizedAsBorrower_Request {
optional fixed64 steamid = 1;
optional bool include_canceled = 2;
optional bool include_pending = 3;
}
message CDeviceAuth_GetAuthorizedAsBorrower_Response {
message Lender {
optional fixed64 steamid = 1;
optional uint32 time_created = 2;
optional bool is_pending = 3;
optional bool is_canceled = 4;
optional bool is_used = 5;
}
repeated .CDeviceAuth_GetAuthorizedAsBorrower_Response.Lender lenders = 1;
}
message CDeviceAuth_GetExcludedGamesInLibrary_Request {
optional fixed64 steamid = 1;
}
message CDeviceAuth_GetExcludedGamesInLibrary_Response {
message ExcludedGame {
optional uint32 appid = 1;
optional string game_name = 2;
optional bool vac_banned = 3;
optional bool package_excluded = 4;
}
repeated .CDeviceAuth_GetExcludedGamesInLibrary_Response.ExcludedGame excluded_games = 1;
}
message CDeviceAuth_GetBorrowerPlayHistory_Request {
optional fixed64 steamid = 1;
}
message CDeviceAuth_GetBorrowerPlayHistory_Response {
message GameHistory {
optional uint32 appid = 1;
optional uint32 time_last = 2;
optional uint32 time_total = 3;
}
message LenderHistory {
optional fixed64 steamid = 1;
repeated .CDeviceAuth_GetBorrowerPlayHistory_Response.GameHistory game_history = 2;
}
repeated .CDeviceAuth_GetBorrowerPlayHistory_Response.LenderHistory lender_history = 1;
}
service DeviceAuth {
option (service_description) = "Library Sharing settings service";
rpc GetOwnAuthorizedDevices (.CDeviceAuth_GetOwnAuthorizedDevices_Request) returns (.CDeviceAuth_GetOwnAuthorizedDevices_Response) {
option (method_description) = "Get list of authorized devices";
}
rpc AcceptAuthorizationRequest (.CDeviceAuth_AcceptAuthorizationRequest_Request) returns (.CDeviceAuth_AcceptAuthorizationRequest_Response) {
option (method_description) = "Accept an authorization request by another users";
}
rpc AuthorizeRemoteDevice (.CDeviceAuth_AuthorizeRemoteDevice_Request) returns (.CDeviceAuth_AuthorizeRemoteDevice_Response) {
option (method_description) = "Authorize own remote device that has pending request";
}
rpc DeauthorizeRemoteDevice (.CDeviceAuth_DeauthorizeRemoteDevice_Request) returns (.CDeviceAuth_DeauthorizeRemoteDevice_Response) {
option (method_description) = "Revoke own device authorization";
}
rpc GetUsedAuthorizedDevices (.CDeviceAuth_GetUsedAuthorizedDevices_Request) returns (.CDeviceAuth_GetUsedAuthorizedDevices_Response) {
option (method_description) = "Get list of authorized devices user played borrowed games on";
}
rpc GetAuthorizedBorrowers (.CDeviceAuth_GetAuthorizedBorrowers_Request) returns (.CDeviceAuth_GetAuthorizedBorrowers_Response) {
option (method_description) = "Get list of users that can borrow on an authorized device";
}
rpc AddAuthorizedBorrowers (.CDeviceAuth_AddAuthorizedBorrowers_Request) returns (.CDeviceAuth_AddAuthorizedBorrowers_Response) {
option (method_description) = "Add users that can borrow on limited authorized devices";
}
rpc RemoveAuthorizedBorrowers (.CDeviceAuth_RemoveAuthorizedBorrowers_Request) returns (.CDeviceAuth_RemoveAuthorizedBorrowers_Response) {
option (method_description) = "Remove users that can borrow on limited authorized devices";
}
rpc GetAuthorizedAsBorrower (.CDeviceAuth_GetAuthorizedAsBorrower_Request) returns (.CDeviceAuth_GetAuthorizedAsBorrower_Response) {
option (method_description) = "Get list of lenders that authorized given account as borrower";
}
rpc GetExcludedGamesInLibrary (.CDeviceAuth_GetExcludedGamesInLibrary_Request) returns (.CDeviceAuth_GetExcludedGamesInLibrary_Response) {
option (method_description) = "Get list of excluded games in lenders library";
}
rpc GetBorrowerPlayHistory (.CDeviceAuth_GetBorrowerPlayHistory_Request) returns (.CDeviceAuth_GetBorrowerPlayHistory_Response) {
option (method_description) = "Get list played games as borrower";
}
}