]> git.saurik.com Git - apple/security.git/blob - keychain/otctl/OTControlCLI.h
Security-59306.41.2.tar.gz
[apple/security.git] / keychain / otctl / OTControlCLI.h
1
2 #import <Foundation/Foundation.h>
3
4 #import "keychain/ot/OTControl.h"
5
6 NS_ASSUME_NONNULL_BEGIN
7
8
9 @interface OTControlCLI : NSObject
10 @property OTControl* control;
11
12 - (instancetype)initWithOTControl:(OTControl*)control;
13
14 - (long)startOctagonStateMachine:(NSString*)container context:(NSString*)contextID;
15
16 - (long)signIn:(NSString*)altDSID container:(NSString* _Nullable)container context:(NSString*)contextID;
17
18 - (long)signOut:(NSString* _Nullable)container context:(NSString*)contextID;
19
20 - (long)depart:(NSString* _Nullable)container context:(NSString*)contextID;
21
22 - (long)resetOctagon:(NSString*)container context:(NSString*)contextID altDSID:(NSString*)altDSID;
23
24 - (long)status:(NSString* _Nullable)container context:(NSString*)contextID json:(bool)json;
25
26 - (long)recoverUsingBottleID:(NSString*)bottleID
27 entropy:(NSData*)entropy
28 altDSID:(NSString*)altDSID
29 containerName:(NSString*)containerName
30 context:(NSString*)context
31 control:(OTControl*)control;
32
33 - (long)fetchAllBottles:(NSString*)altDSID
34 containerName:(NSString*)containerName
35 context:(NSString*)context
36 control:(OTControl*)control;
37
38 - (long)healthCheck:(NSString* _Nullable)container context:(NSString*)contextID skipRateLimitingCheck:(BOOL)skipRateLimitingCheck;
39
40 - (long)tapToRadar:(NSString *)action description:(NSString *)description radar:(NSString *)radar;
41
42 @end
43
44 NS_ASSUME_NONNULL_END