-
Notifications
You must be signed in to change notification settings - Fork 7
/
OnePasswordDefines.h
42 lines (34 loc) · 2.23 KB
/
OnePasswordDefines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Keychain location defines
#define kOldKeychainLocation @"~/Library/Application Support/1Password/1Password.agilekeychain"
#define kNewMASKeychainLocation @"~/Library/Containers/com.agilebits.onepassword-osx-helper/Data/Documents/1Password.agilekeychain"
#define kDropboxLocation @"~/Dropbox/1Password/1Password.agilekeychain"
#define kOldDropboxLocation @"~/Dropbox/1Password.agilekeychain"
#define kKeychainPathArray [NSArray arrayWithObjects:kOldKeychainLocation,kNewMASKeychainLocation,kDropboxLocation,kOldDropboxLocation,nil]
// QSObject type defines
#define QS1PasswordItemType @"QS1PasswordItemType"
#define QS1PasswordURLType @"QS1PasswordURLType" // URLs found in Logins
#define kOnePasswordAction @"OnePasswordAction"
#define kOnePasswordItemDetails @"details-1password"
#define kOnePasswordItemURLs @"kOnePasswordItemURLs"
#define kOnePasswordItemCategory @"categoryUUID"
// see https://support.1password.com/integration-mac/#appendix-categories
#define kOnePasswordCategoryLogin @"001"
#define kOnePasswordVaultIdentifier @"vault-1password"
// Some things from Carbon
#define kASAppleScriptSuite 'ascr'
#define kASSubroutineEvent 'psbr'
#define keyASSubroutineName 'snam'
// JSON defines
#define kItemType @"type"
// OnePassword Bundle IDs
#define kNonMASBundleID @"com.agilebits.onepassword4"
#define kMASBundleID @"com.agilebits.onepassword-osx"
#define kVersion7BundleID @"com.agilebits.onepassword7"
#define kOnePasswordBundleIDs @[kVersion7BundleID, kMASBundleID, @"ws.agile.1Password", kNonMASBundleID]
#define kOnePasswordPrefs @[kNonMASBundleID, [[@"~/Library/Containers/com.agilebits.onepassword-osx/Data/Library/Preferences/" stringByStandardizingPath] stringByAppendingPathComponent:kMASBundleID]]
// Key for storing the keychain path in the prefs
#define k1PPath @"QS1PasswordKeychainPath"
#define kQS1PasswordIcon @"QS1PasswordIcon"
#define kMAS1Password3rdPartyFile @"~/Library/Containers/2BUA8C4S2C.com.agilebits.onepassword-osx-helper/Data/Library/3rd Party Integration/bookmarks-default.json"
#define kNonMAS1Password3rdPartyFile @"~/Library/Application Support/1Password 4/3rd Party Integration/bookmarks-default.json"
#define k1Password3rdPartyItemsPath @"~/Library/Containers/com.agilebits.onepassword7/Data/Library/Caches/Metadata/1Password"