#ifndef OTDefines_h
#define OTDefines_h
#if OCTAGON
#include <Foundation/Foundation.h>
#include <utilities/debugging.h>
#import "keychain/ot/OTConstants.h"
NS_ASSUME_NONNULL_BEGIN
extern NSString* const OctagonEventAttributeZoneName;
extern NSString* const OctagonEventAttributeFailureReason;
extern NSString* const OctagonEventAttributeTimeSinceLastPostedFollowUp;
extern NSString* OTCKContainerName;
extern NSString* const CuttlefishTrustZone;
extern NSString* const TrustedPeersHelperErrorDomain;
typedef NS_ERROR_ENUM(OctagonErrorDomain, OctagonError) {
OTErrorNoIdentity = 5,
OTErrorDeserializationFailure = 10,
OTErrorFeatureNotEnabled = 20,
OTErrorCKCallback = 21,
OTErrorCKTimeOut = 23,
OTErrorNoNetwork = 24,
OTErrorNotSignedIn = 25,
OTErrorRecordNotFound = 26,
OTErrorNotSupported = 29,
OTErrorUnexpectedStateTransition = 30,
OTErrorNoSuchContext = 31,
OTErrorLimitedPeer = 35,
OTErrorOctagonAdapter = 38,
OTErrorSOSAdapter = 39,
OTErrorRecoveryKeyMalformed = 41,
OTAuthKitNoAltDSID = 42,
OTAuthKitAKDeviceListRequestContextClass = 43,
OTAuthKitNoPrimaryAccount = 44,
OTAuthKitNoAuthenticationController = 45,
OTAuthKitMachineIDMissing = 46,
OTAuthKitPrimaryAccountHaveNoDSID = 47,
OTErrorFailedToLeaveClique = 48,
OTErrorSyncPolicyMissing = 49,
};
#define OTMasterSecretLength 72
typedef NS_ENUM(NSInteger, TrustedPeersHelperErrorCode) {
TrustedPeersHelperErrorNoPreparedIdentity = 1,
TrustedPeersHelperErrorNoPeersPreapprovePreparedIdentity = 14,
TrustedPeersHelperErrorCodeUntrustedRecoveryKeys = 32,
TrustedPeersHelperErrorCodeNotEnrolled = 34,
TrustedPeersHelperErrorNoPeersPreapprovedBySelf = 47,
};
typedef NS_ENUM(NSInteger, CuttlefishErrorCode) {
CuttlefishErrorEstablishFailed = 1001,
CuttlefishErrorJoinFailed = 1002,
CuttlefishErrorUpdateTrustFailed = 1004,
CuttlefishErrorInvalidChangeToken = 1005,
CuttlefishErrorMalformedRecord = 1006,
CuttlefishErrorResultGraphNotFullyReachable = 1007,
CuttlefishErrorResultGraphHasNoPotentiallyTrustedPeers = 1008,
CuttlefishErrorResultGraphHasSplitKnowledge = 1009,
CuttlefishErrorResultGraphHasPeerWithNoSelf = 1010,
CuttlefishErrorInvalidEscrowProxyOperation = 1011,
CuttlefishErrorRecordWrongType = 1012,
CuttlefishErrorMissingMandatoryField = 1013,
CuttlefishErrorMalformedViewKeyHierarchy = 1014,
CuttlefishErrorUnknownView = 1015,
CuttlefishErrorEstablishPeerFailed = 1016,
CuttlefishErrorEstablishBottleFailed = 1017,
CuttlefishErrorChangeTokenExpired = 1018,
CuttlefishErrorTransactionalFailure = 1019,
CuttlefishErrorSetRecoveryKeyFailed = 1020,
CuttlefishErrorRetryableServerFailure = 1021,
CuttlefishErrorPreflightGraphValidationError = 1022,
CuttlefishErrorKeyHierarchyAlreadyExists = 1033,
CuttlefishErrorDuplicatePeerIdUnderConsideration = 1034,
CuttlefishErrorIneligibleExclusionDenied = 1035,
CuttlefishErrorMultiplePreapprovedJoinDenied = 1036,
CuttlefishErrorUpdateTrustPeerNotFound = 1037,
};
NS_ASSUME_NONNULL_END
#endif
#endif