2 #import <Foundation/Foundation.h>
4 #import "keychain/ot/OTControl.h"
6 NS_ASSUME_NONNULL_BEGIN
9 @interface OTControlCLI
: NSObject
10 @property OTControl
* control
;
12 - (instancetype
)initWithOTControl
:(OTControl
*)control
;
14 - (long)startOctagonStateMachine
:(NSString
*)container context
:(NSString
*)contextID
;
16 - (long)signIn
:(NSString
*)altDSID container
:(NSString
* _Nullable
)container context
:(NSString
*)contextID
;
18 - (long)signOut
:(NSString
* _Nullable
)container context
:(NSString
*)contextID
;
20 - (long)depart
:(NSString
* _Nullable
)container context
:(NSString
*)contextID
;
22 - (long)resetOctagon
:(NSString
*)container context
:(NSString
*)contextID altDSID
:(NSString
*)altDSID
;
24 - (long)resetProtectedData
:(NSString
*)container context
:(NSString
*)contextID altDSID
:(NSString
*)altDSID appleID
:(NSString
*)appleID dsid
:(NSString
*)dsid
;
26 - (long)status
:(NSString
* _Nullable
)container context
:(NSString
*)contextID json
:(bool)json
;
28 - (long)recoverUsingBottleID
:(NSString
*)bottleID
29 entropy
:(NSData
*)entropy
30 altDSID
:(NSString
*)altDSID
31 containerName
:(NSString
*)containerName
32 context
:(NSString
*)context
33 control
:(OTControl
*)control
;
35 - (long)fetchAllBottles
:(NSString
*)altDSID
36 containerName
:(NSString
*)containerName
37 context
:(NSString
*)context
38 control
:(OTControl
*)control
;
40 - (long)fetchEscrowRecords
:(NSString
* _Nullable
)container context
:(NSString
*)contextID
;
41 - (long)fetchAllEscrowRecords
:(NSString
* _Nullable
)container context
:(NSString
*)contextID
;
43 - (long)healthCheck
:(NSString
* _Nullable
)container context
:(NSString
*)contextID skipRateLimitingCheck
:(BOOL
)skipRateLimitingCheck
;
44 - (long)refetchCKKSPolicy
:(NSString
*)container context
:(NSString
*)contextID
;
46 - (long)tapToRadar
:(NSString
*)action description
:(NSString
*)description radar
:(NSString
*)radar
;
48 - (long)performEscrowRecovery
:(NSString
* _Nullable
)container
49 context
:(NSString
*)contextID
50 recordID
:(NSString
*)recordID
51 appleID
:(NSString
*)appleID
52 secret
:(NSString
*)secret
;
54 - (long)performSilentEscrowRecovery
:(NSString
* _Nullable
)container context
:(NSString
*)contextID appleID
:(NSString
*)appleID secret
:(NSString
*)secret
;
56 - (long)setUserControllableViewsSyncStatus
:(NSString
* _Nullable
)containerName
57 contextID
:(NSString
*)contextID
58 enabled
:(BOOL
)enabled
;
60 - (long)fetchUserControllableViewsSyncStatus
:(NSString
* _Nullable
)containerName
61 contextID
:(NSString
*)contextID
;