]> git.saurik.com Git - apple/security.git/blob - keychain/ot/proto/OTAccountMetadataClassC.proto
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / ot / proto / OTAccountMetadataClassC.proto
1
2 syntax = "proto2";
3
4 option objc_class_naming = "extended";
5 option objc_class_visibility = "hidden";
6
7 package OT;
8
9 message AccountMetadataClassC {
10
11 // The state of accounts on the system is complicated. Here's how we handle them:
12 // If there is no account, we will be in NO_ACCOUNT and have no altDSID
13 // If there is an SA account, we will bt in NO_ACCOUNT and have an altDSID
14 // If there is an HSA2 account, we will be in ACCOUNT_AVAILABLE and have an altDSID
15
16 enum AccountState {
17 UNKNOWN = 0;
18 NO_ACCOUNT = 1;
19 ACCOUNT_AVAILABLE = 2;
20 ACCOUNT_AVAILABLE_UNUSED = 3;
21 }
22
23 enum TrustState {
24 UNKNOWN = 0;
25 UNTRUSTED = 1;
26 TRUSTED = 2;
27 }
28
29 enum AttemptedAJoinState {
30 UNKNOWN = 0;
31 NOTATTEMPTED = 1;
32 ATTEMPTED = 2;
33 }
34
35 optional string peerID = 1;
36 optional AccountState icloudAccountState = 2;
37 optional int64 epoch = 3;
38 optional string altDSID = 4;
39
40 optional TrustState trustState = 5;
41
42 // Holds the time, in milliseconds since 1970, that the last health checkup query to Cuttlefish was successfully performed
43 optional uint64 lastHealthCheckup = 6;
44
45 optional AttemptedAJoinState attemptedJoin = 7;
46 }