CKKSManifestLeafRecord.h [plain text]
#if OCTAGON
#import "CKKSRecordHolder.h"
#import <Foundation/Foundation.h>
@class CKRecord;
@class CKKSItem;
NS_ASSUME_NONNULL_BEGIN
@interface CKKSManifestLeafRecord : CKKSCKRecordHolder
+ (BOOL)recordExistsForID:(NSString*)recordID;
+ (instancetype)leafRecordForID:(NSString*)recordID error:(NSError* __autoreleasing *)error;
+ (instancetype)tryLeafRecordForID:(NSString*)recordID error:(NSError* __autoreleasing *)error;
+ (NSString*)leafUUIDForRecordID:(NSString*)recordID;
@property (nonatomic, readonly) NSString* uuid;
@property (nonatomic, readonly) NSData* digestValue;
@property (nonatomic, readonly) NSDictionary<NSString*, NSData*>* recordDigestDict;
@end
@interface CKKSManifestPendingLeafRecord : CKKSManifestLeafRecord
- (nullable CKKSManifestLeafRecord*)commitToDatabaseWithError:(NSError**)error;
@end
@interface CKKSEgoManifestLeafRecord : CKKSManifestLeafRecord
+ (instancetype)newLeafRecordInZone:(NSString*)zone;
- (void)addOrUpdateRecordUUID:(NSString*)uuid withEncryptedItemData:(NSData*)itemData;
- (void)addOrUpdateRecord:(CKRecord*)record;
- (void)deleteItemWithUUID:(NSString*)uuid;
@end
NS_ASSUME_NONNULL_END
#endif