blob: 58e436166c1ca18fd8b96bcb1dca64102d4ac0ae (
plain)
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
|
syntax = "proto2";
package Battlenet.JSON.Login;
option optimize_for = CODE_SIZE;
message ErrorResponse {
}
enum FormType {
LOGIN_FORM = 1;
}
message FormInput {
required string input_id = 1;
required string type = 2;
required string label = 3;
optional uint32 max_length = 4;
}
message FormInputs {
required FormType type = 1;
repeated FormInput inputs = 2;
}
message FormInputValue {
required string input_id = 1;
required string value = 2;
}
message LoginForm {
required string platform_id = 1;
required string program_id = 2;
required string version = 3;
repeated FormInputValue inputs = 4;
}
enum AuthenticationState {
LOGIN = 1;
LEGAL = 2;
AUTHENTICATOR = 3;
DONE = 4;
}
message LoginResult {
required AuthenticationState authentication_state = 1;
optional string error_code = 2;
optional string error_message = 3;
optional string url = 4;
optional string login_ticket = 5;
}
message LoginRefreshResult {
required uint64 login_ticket_expiry = 1;
optional bool is_expired = 2;
}
message GameAccountInfo {
required string display_name = 1;
required uint32 expansion = 2;
optional bool is_suspended = 3;
optional bool is_banned = 4;
optional uint64 suspension_expires = 5;
optional string suspension_reason = 6;
}
message GameAccountList {
repeated GameAccountInfo game_accounts = 1;
}
|