-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathstate.model.ts
More file actions
72 lines (60 loc) · 2.09 KB
/
Copy pathstate.model.ts
File metadata and controls
72 lines (60 loc) · 2.09 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Storage Keys (Flat key-value structure)
// ===================================================================
//
export type StorageKey = (typeof StorageKeys)[keyof typeof StorageKeys];
export type SecureStorageKey = (typeof SecureStorageKeys)[keyof typeof SecureStorageKeys];
export const StorageKeys = {
stateVersion: "stateVersion",
directoryType: "directoryType",
organizationId: "organizationId",
directoryLdap: "directoryLdap",
directoryGsuite: "directoryGsuite",
directoryEntra: "directoryEntra",
directoryOkta: "directoryOkta",
directoryOnelogin: "directoryOnelogin",
sync: "sync",
syncingDir: "syncingDir",
lastSyncHash: "lastSyncHash",
// Window/Tray settings
window: "window",
enableAlwaysOnTop: "enableAlwaysOnTop",
enableTray: "enableTray",
enableMinimizeToTray: "enableMinimizeToTray",
enableCloseToTray: "enableCloseToTray",
alwaysShowDock: "alwaysShowDock",
// Environment URLs
environmentUrls: "environmentUrls",
// App settings
locale: "locale",
installedVersion: "installedVersion",
entityId: "entityId",
global: "global",
// TODO: Remove when jslib cleanup PR is merged
appId: "appId",
anonymousAppId: "anonymousAppId",
userDelta: "userDeltaToken",
groupDelta: "groupDeltaToken",
lastUserSync: "lastUserSync",
lastGroupSync: "lastGroupSync",
};
export const SecureStorageKeys = {
// Directory service credentials
ldap: "secretLdap",
gsuite: "secretGsuite",
// Azure Active Directory was renamed to Entra ID, but we've kept the old property name
// to be backwards compatible with existing configurations.
azure: "secretAzure",
entra: "secretEntra",
okta: "secretOkta",
oneLogin: "secretOneLogin",
// Authentication tokens
accessToken: "accessToken",
refreshToken: "refreshToken",
apiKeyClientId: "apiKeyClientId",
apiKeyClientSecret: "apiKeyClientSecret",
twoFactorToken: "twoFactorToken",
};
// ===================================================================
// Shared Constants
// ===================================================================
export const StoredSecurely = "[STORED SECURELY]";