chore: add u2f permissions and features (#2246)
Co-authored-by: Karol Sójko <karolsojko@protonmail.com>
This commit is contained in:
@@ -15,6 +15,7 @@ export enum FeatureIdentifier {
|
|||||||
SmartFilters = 'org.standardnotes.smart-filters',
|
SmartFilters = 'org.standardnotes.smart-filters',
|
||||||
TagNesting = 'org.standardnotes.tag-nesting',
|
TagNesting = 'org.standardnotes.tag-nesting',
|
||||||
TwoFactorAuth = 'org.standardnotes.two-factor-auth',
|
TwoFactorAuth = 'org.standardnotes.two-factor-auth',
|
||||||
|
UniversalSecondFactor = 'org.standardnotes.universal-second-factor',
|
||||||
SubscriptionSharing = 'org.standardnotes.subscription-sharing',
|
SubscriptionSharing = 'org.standardnotes.subscription-sharing',
|
||||||
|
|
||||||
AutobiographyTheme = 'org.standardnotes.theme-autobiography',
|
AutobiographyTheme = 'org.standardnotes.theme-autobiography',
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ export function serverFeatures(): ServerFeatureDescription[] {
|
|||||||
identifier: FeatureIdentifier.TwoFactorAuth,
|
identifier: FeatureIdentifier.TwoFactorAuth,
|
||||||
permission_name: PermissionName.TwoFactorAuth,
|
permission_name: PermissionName.TwoFactorAuth,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
availableInSubscriptions: [SubscriptionName.ProPlan],
|
||||||
|
name: 'U2F authentication',
|
||||||
|
identifier: FeatureIdentifier.UniversalSecondFactor,
|
||||||
|
permission_name: PermissionName.UniversalSecondFactor,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
availableInSubscriptions: [SubscriptionName.ProPlan],
|
availableInSubscriptions: [SubscriptionName.ProPlan],
|
||||||
name: 'Unlimited note history',
|
name: 'Unlimited note history',
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export enum PermissionName {
|
|||||||
TitaniumTheme = 'theme:titanium',
|
TitaniumTheme = 'theme:titanium',
|
||||||
TokenVaultEditor = 'editor:token-vault',
|
TokenVaultEditor = 'editor:token-vault',
|
||||||
TwoFactorAuth = 'server:two-factor-auth',
|
TwoFactorAuth = 'server:two-factor-auth',
|
||||||
|
UniversalSecondFactor = 'server:universal-second-factor',
|
||||||
SubscriptionSharing = 'server:subscription-sharing',
|
SubscriptionSharing = 'server:subscription-sharing',
|
||||||
SuperEditor = 'editor:super-editor',
|
SuperEditor = 'editor:super-editor',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user