1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

Run formatting (#2230)

This commit is contained in:
Justin Baur
2022-08-29 16:06:55 -04:00
committed by GitHub
parent 9b7aef0763
commit 7f5f010e1e
1205 changed files with 73813 additions and 75022 deletions

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum ApplicationCacheMessageType : byte
{
public enum ApplicationCacheMessageType : byte
{
UpsertOrganizationAbility = 0,
DeleteOrganizationAbility = 1
}
UpsertOrganizationAbility = 0,
DeleteOrganizationAbility = 1
}

View File

@ -1,13 +1,12 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public static class BitwardenClient
{
public static class BitwardenClient
{
public const string
Web = "web",
Browser = "browser",
Desktop = "desktop",
Mobile = "mobile",
Cli = "cli",
DirectoryConnector = "connector";
}
public const string
Web = "web",
Browser = "browser",
Desktop = "desktop",
Mobile = "mobile",
Cli = "cli",
DirectoryConnector = "connector";
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum CipherRepromptType : byte
{
public enum CipherRepromptType : byte
{
None = 0,
Password = 1,
}
None = 0,
Password = 1,
}

View File

@ -1,9 +1,8 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum CipherStateAction
{
public enum CipherStateAction
{
Restore,
SoftDelete,
HardDelete,
}
Restore,
SoftDelete,
HardDelete,
}

View File

@ -1,12 +1,11 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum CipherType : byte
{
public enum CipherType : byte
{
// Folder is deprecated
//Folder = 0,
Login = 1,
SecureNote = 2,
Card = 3,
Identity = 4
}
// Folder is deprecated
//Folder = 0,
Login = 1,
SecureNote = 2,
Card = 3,
Identity = 4
}

View File

@ -1,50 +1,49 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum DeviceType : byte
{
public enum DeviceType : byte
{
[Display(Name = "Android")]
Android = 0,
[Display(Name = "iOS")]
iOS = 1,
[Display(Name = "Chrome Extension")]
ChromeExtension = 2,
[Display(Name = "Firefox Extension")]
FirefoxExtension = 3,
[Display(Name = "Opera Extension")]
OperaExtension = 4,
[Display(Name = "Edge Extension")]
EdgeExtension = 5,
[Display(Name = "Windows")]
WindowsDesktop = 6,
[Display(Name = "macOS")]
MacOsDesktop = 7,
[Display(Name = "Linux")]
LinuxDesktop = 8,
[Display(Name = "Chrome")]
ChromeBrowser = 9,
[Display(Name = "Firefox")]
FirefoxBrowser = 10,
[Display(Name = "Opera")]
OperaBrowser = 11,
[Display(Name = "Edge")]
EdgeBrowser = 12,
[Display(Name = "Internet Explorer")]
IEBrowser = 13,
[Display(Name = "Unknown Browser")]
UnknownBrowser = 14,
[Display(Name = "Android")]
AndroidAmazon = 15,
[Display(Name = "UWP")]
UWP = 16,
[Display(Name = "Safari")]
SafariBrowser = 17,
[Display(Name = "Vivaldi")]
VivaldiBrowser = 18,
[Display(Name = "Vivaldi Extension")]
VivaldiExtension = 19,
[Display(Name = "Safari Extension")]
SafariExtension = 20
}
[Display(Name = "Android")]
Android = 0,
[Display(Name = "iOS")]
iOS = 1,
[Display(Name = "Chrome Extension")]
ChromeExtension = 2,
[Display(Name = "Firefox Extension")]
FirefoxExtension = 3,
[Display(Name = "Opera Extension")]
OperaExtension = 4,
[Display(Name = "Edge Extension")]
EdgeExtension = 5,
[Display(Name = "Windows")]
WindowsDesktop = 6,
[Display(Name = "macOS")]
MacOsDesktop = 7,
[Display(Name = "Linux")]
LinuxDesktop = 8,
[Display(Name = "Chrome")]
ChromeBrowser = 9,
[Display(Name = "Firefox")]
FirefoxBrowser = 10,
[Display(Name = "Opera")]
OperaBrowser = 11,
[Display(Name = "Edge")]
EdgeBrowser = 12,
[Display(Name = "Internet Explorer")]
IEBrowser = 13,
[Display(Name = "Unknown Browser")]
UnknownBrowser = 14,
[Display(Name = "Android")]
AndroidAmazon = 15,
[Display(Name = "UWP")]
UWP = 16,
[Display(Name = "Safari")]
SafariBrowser = 17,
[Display(Name = "Vivaldi")]
VivaldiBrowser = 18,
[Display(Name = "Vivaldi Extension")]
VivaldiExtension = 19,
[Display(Name = "Safari Extension")]
SafariExtension = 20
}

View File

@ -1,11 +1,10 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum EmergencyAccessStatusType : byte
{
public enum EmergencyAccessStatusType : byte
{
Invited = 0,
Accepted = 1,
Confirmed = 2,
RecoveryInitiated = 3,
RecoveryApproved = 4,
}
Invited = 0,
Accepted = 1,
Confirmed = 2,
RecoveryInitiated = 3,
RecoveryApproved = 4,
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum EmergencyAccessType : byte
{
public enum EmergencyAccessType : byte
{
View = 0,
Takeover = 1,
}
View = 0,
Takeover = 1,
}

View File

@ -1,13 +1,12 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum EncryptionType : byte
{
public enum EncryptionType : byte
{
AesCbc256_B64 = 0,
AesCbc128_HmacSha256_B64 = 1,
AesCbc256_HmacSha256_B64 = 2,
Rsa2048_OaepSha256_B64 = 3,
Rsa2048_OaepSha1_B64 = 4,
Rsa2048_OaepSha256_HmacSha256_B64 = 5,
Rsa2048_OaepSha1_HmacSha256_B64 = 6
}
AesCbc256_B64 = 0,
AesCbc128_HmacSha256_B64 = 1,
AesCbc256_HmacSha256_B64 = 2,
Rsa2048_OaepSha256_B64 = 3,
Rsa2048_OaepSha1_B64 = 4,
Rsa2048_OaepSha256_HmacSha256_B64 = 5,
Rsa2048_OaepSha1_HmacSha256_B64 = 6
}

View File

@ -1,79 +1,78 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum EventType : int
{
public enum EventType : int
{
User_LoggedIn = 1000,
User_ChangedPassword = 1001,
User_Updated2fa = 1002,
User_Disabled2fa = 1003,
User_Recovered2fa = 1004,
User_FailedLogIn = 1005,
User_FailedLogIn2fa = 1006,
User_ClientExportedVault = 1007,
User_UpdatedTempPassword = 1008,
User_MigratedKeyToKeyConnector = 1009,
User_LoggedIn = 1000,
User_ChangedPassword = 1001,
User_Updated2fa = 1002,
User_Disabled2fa = 1003,
User_Recovered2fa = 1004,
User_FailedLogIn = 1005,
User_FailedLogIn2fa = 1006,
User_ClientExportedVault = 1007,
User_UpdatedTempPassword = 1008,
User_MigratedKeyToKeyConnector = 1009,
Cipher_Created = 1100,
Cipher_Updated = 1101,
Cipher_Deleted = 1102,
Cipher_AttachmentCreated = 1103,
Cipher_AttachmentDeleted = 1104,
Cipher_Shared = 1105,
Cipher_UpdatedCollections = 1106,
Cipher_ClientViewed = 1107,
Cipher_ClientToggledPasswordVisible = 1108,
Cipher_ClientToggledHiddenFieldVisible = 1109,
Cipher_ClientToggledCardCodeVisible = 1110,
Cipher_ClientCopiedPassword = 1111,
Cipher_ClientCopiedHiddenField = 1112,
Cipher_ClientCopiedCardCode = 1113,
Cipher_ClientAutofilled = 1114,
Cipher_SoftDeleted = 1115,
Cipher_Restored = 1116,
Cipher_ClientToggledCardNumberVisible = 1117,
Cipher_Created = 1100,
Cipher_Updated = 1101,
Cipher_Deleted = 1102,
Cipher_AttachmentCreated = 1103,
Cipher_AttachmentDeleted = 1104,
Cipher_Shared = 1105,
Cipher_UpdatedCollections = 1106,
Cipher_ClientViewed = 1107,
Cipher_ClientToggledPasswordVisible = 1108,
Cipher_ClientToggledHiddenFieldVisible = 1109,
Cipher_ClientToggledCardCodeVisible = 1110,
Cipher_ClientCopiedPassword = 1111,
Cipher_ClientCopiedHiddenField = 1112,
Cipher_ClientCopiedCardCode = 1113,
Cipher_ClientAutofilled = 1114,
Cipher_SoftDeleted = 1115,
Cipher_Restored = 1116,
Cipher_ClientToggledCardNumberVisible = 1117,
Collection_Created = 1300,
Collection_Updated = 1301,
Collection_Deleted = 1302,
Collection_Created = 1300,
Collection_Updated = 1301,
Collection_Deleted = 1302,
Group_Created = 1400,
Group_Updated = 1401,
Group_Deleted = 1402,
Group_Created = 1400,
Group_Updated = 1401,
Group_Deleted = 1402,
OrganizationUser_Invited = 1500,
OrganizationUser_Confirmed = 1501,
OrganizationUser_Updated = 1502,
OrganizationUser_Removed = 1503,
OrganizationUser_UpdatedGroups = 1504,
OrganizationUser_UnlinkedSso = 1505,
OrganizationUser_ResetPassword_Enroll = 1506,
OrganizationUser_ResetPassword_Withdraw = 1507,
OrganizationUser_AdminResetPassword = 1508,
OrganizationUser_ResetSsoLink = 1509,
OrganizationUser_FirstSsoLogin = 1510,
OrganizationUser_Revoked = 1511,
OrganizationUser_Restored = 1512,
OrganizationUser_Invited = 1500,
OrganizationUser_Confirmed = 1501,
OrganizationUser_Updated = 1502,
OrganizationUser_Removed = 1503,
OrganizationUser_UpdatedGroups = 1504,
OrganizationUser_UnlinkedSso = 1505,
OrganizationUser_ResetPassword_Enroll = 1506,
OrganizationUser_ResetPassword_Withdraw = 1507,
OrganizationUser_AdminResetPassword = 1508,
OrganizationUser_ResetSsoLink = 1509,
OrganizationUser_FirstSsoLogin = 1510,
OrganizationUser_Revoked = 1511,
OrganizationUser_Restored = 1512,
Organization_Updated = 1600,
Organization_PurgedVault = 1601,
Organization_ClientExportedVault = 1602,
Organization_VaultAccessed = 1603,
Organization_EnabledSso = 1604,
Organization_DisabledSso = 1605,
Organization_EnabledKeyConnector = 1606,
Organization_DisabledKeyConnector = 1607,
Organization_SponsorshipsSynced = 1608,
Organization_Updated = 1600,
Organization_PurgedVault = 1601,
Organization_ClientExportedVault = 1602,
Organization_VaultAccessed = 1603,
Organization_EnabledSso = 1604,
Organization_DisabledSso = 1605,
Organization_EnabledKeyConnector = 1606,
Organization_DisabledKeyConnector = 1607,
Organization_SponsorshipsSynced = 1608,
Policy_Updated = 1700,
Policy_Updated = 1700,
ProviderUser_Invited = 1800,
ProviderUser_Confirmed = 1801,
ProviderUser_Updated = 1802,
ProviderUser_Removed = 1803,
ProviderUser_Invited = 1800,
ProviderUser_Confirmed = 1801,
ProviderUser_Updated = 1802,
ProviderUser_Removed = 1803,
ProviderOrganization_Created = 1900,
ProviderOrganization_Added = 1901,
ProviderOrganization_Removed = 1902,
ProviderOrganization_VaultAccessed = 1903,
}
ProviderOrganization_Created = 1900,
ProviderOrganization_Added = 1901,
ProviderOrganization_Removed = 1902,
ProviderOrganization_VaultAccessed = 1903,
}

View File

@ -1,10 +1,9 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum FieldType : byte
{
public enum FieldType : byte
{
Text = 0,
Hidden = 1,
Boolean = 2,
Linked = 3,
}
Text = 0,
Hidden = 1,
Boolean = 2,
Linked = 3,
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum FileUploadType
{
public enum FileUploadType
{
Direct = 0,
Azure = 1,
}
Direct = 0,
Azure = 1,
}

View File

@ -1,22 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum GatewayType : byte
{
public enum GatewayType : byte
{
[Display(Name = "Stripe")]
Stripe = 0,
[Display(Name = "Braintree")]
Braintree = 1,
[Display(Name = "Apple App Store")]
AppStore = 2,
[Display(Name = "Google Play Store")]
PlayStore = 3,
[Display(Name = "BitPay")]
BitPay = 4,
[Display(Name = "PayPal")]
PayPal = 5,
[Display(Name = "Bank")]
Bank = 6,
}
[Display(Name = "Stripe")]
Stripe = 0,
[Display(Name = "Braintree")]
Braintree = 1,
[Display(Name = "Apple App Store")]
AppStore = 2,
[Display(Name = "Google Play Store")]
PlayStore = 3,
[Display(Name = "BitPay")]
BitPay = 4,
[Display(Name = "PayPal")]
PayPal = 5,
[Display(Name = "Bank")]
Bank = 6,
}

View File

@ -1,95 +1,94 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum GlobalEquivalentDomainsType : byte
{
public enum GlobalEquivalentDomainsType : byte
{
Google = 0,
Apple = 1,
Ameritrade = 2,
BoA = 3,
Sprint = 4,
WellsFargo = 5,
Merrill = 6,
Citi = 7,
Cnet = 8,
Gap = 9,
Microsoft = 10,
United = 11,
Yahoo = 12,
Zonelabs = 13,
PayPal = 14,
Avon = 15,
Diapers = 16,
Contacts = 17,
Amazon = 18,
Cox = 19,
Norton = 20,
Verizon = 21,
Buy = 22,
Sirius = 23,
Ea = 24,
Basecamp = 25,
Steam = 26,
Chart = 27,
Gotomeeting = 28,
Gogo = 29,
Oracle = 30,
Discover = 31,
Dcu = 32,
Healthcare = 33,
Pepco = 34,
Century21 = 35,
Comcast = 36,
Cricket = 37,
Mtb = 38,
Dropbox = 39,
Snapfish = 40,
Alibaba = 41,
Playstation = 42,
Mercado = 43,
Zendesk = 44,
Autodesk = 45,
RailNation = 46,
Wpcu = 47,
Mathletics = 48,
Discountbank = 49,
Mi = 50,
Facebook = 51,
Postepay = 52,
Skysports = 53,
Disney = 54,
Pokemon = 55,
Uv = 56,
Yahavo = 57,
Mdsol = 58,
Sears = 59,
Xiami = 60,
Belkin = 61,
Turbotax = 62,
Shopify = 63,
Ebay = 64,
Techdata = 65,
Schwab = 66,
Mozilla = 67, // deprecated
Tesla = 68,
MorganStanley = 69,
TaxAct = 70,
Wikimedia = 71,
Airbnb = 72,
Eventbrite = 73,
StackExchange = 74,
Docusign = 75,
Envato = 76,
X10Hosting = 77,
Cisco = 78,
CedarFair = 79,
Ubiquiti = 80,
Discord = 81,
Netcup = 82,
Yandex = 83,
Sony = 84,
Proton = 85,
Ubisoft = 86,
TransferWise = 87,
TakeawayEU = 88,
}
Google = 0,
Apple = 1,
Ameritrade = 2,
BoA = 3,
Sprint = 4,
WellsFargo = 5,
Merrill = 6,
Citi = 7,
Cnet = 8,
Gap = 9,
Microsoft = 10,
United = 11,
Yahoo = 12,
Zonelabs = 13,
PayPal = 14,
Avon = 15,
Diapers = 16,
Contacts = 17,
Amazon = 18,
Cox = 19,
Norton = 20,
Verizon = 21,
Buy = 22,
Sirius = 23,
Ea = 24,
Basecamp = 25,
Steam = 26,
Chart = 27,
Gotomeeting = 28,
Gogo = 29,
Oracle = 30,
Discover = 31,
Dcu = 32,
Healthcare = 33,
Pepco = 34,
Century21 = 35,
Comcast = 36,
Cricket = 37,
Mtb = 38,
Dropbox = 39,
Snapfish = 40,
Alibaba = 41,
Playstation = 42,
Mercado = 43,
Zendesk = 44,
Autodesk = 45,
RailNation = 46,
Wpcu = 47,
Mathletics = 48,
Discountbank = 49,
Mi = 50,
Facebook = 51,
Postepay = 52,
Skysports = 53,
Disney = 54,
Pokemon = 55,
Uv = 56,
Yahavo = 57,
Mdsol = 58,
Sears = 59,
Xiami = 60,
Belkin = 61,
Turbotax = 62,
Shopify = 63,
Ebay = 64,
Techdata = 65,
Schwab = 66,
Mozilla = 67, // deprecated
Tesla = 68,
MorganStanley = 69,
TaxAct = 70,
Wikimedia = 71,
Airbnb = 72,
Eventbrite = 73,
StackExchange = 74,
Docusign = 75,
Envato = 76,
X10Hosting = 77,
Cisco = 78,
CedarFair = 79,
Ubiquiti = 80,
Discord = 81,
Netcup = 82,
Yandex = 83,
Sony = 84,
Proton = 85,
Ubisoft = 86,
TransferWise = 87,
TakeawayEU = 88,
}

View File

@ -1,7 +1,6 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum KdfType : byte
{
public enum KdfType : byte
{
PBKDF2_SHA256 = 0
}
PBKDF2_SHA256 = 0
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum LicenseType : byte
{
public enum LicenseType : byte
{
User = 0,
Organization = 1,
}
User = 0,
Organization = 1,
}

View File

@ -1,9 +1,8 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum OrganizationApiKeyType : byte
{
public enum OrganizationApiKeyType : byte
{
Default = 0,
BillingSync = 1,
Scim = 2,
}
Default = 0,
BillingSync = 1,
Scim = 2,
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum OrganizationConnectionType : byte
{
public enum OrganizationConnectionType : byte
{
CloudBillingSync = 1,
Scim = 2,
}
CloudBillingSync = 1,
Scim = 2,
}

View File

@ -1,10 +1,9 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum OrganizationUserStatusType : short
{
public enum OrganizationUserStatusType : short
{
Invited = 0,
Accepted = 1,
Confirmed = 2,
Revoked = -1,
}
Invited = 0,
Accepted = 1,
Confirmed = 2,
Revoked = -1,
}

View File

@ -1,11 +1,10 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum OrganizationUserType : byte
{
public enum OrganizationUserType : byte
{
Owner = 0,
Admin = 1,
User = 2,
Manager = 3,
Custom = 4,
}
Owner = 0,
Admin = 1,
User = 2,
Manager = 3,
Custom = 4,
}

View File

@ -1,28 +1,27 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum PaymentMethodType : byte
{
public enum PaymentMethodType : byte
{
[Display(Name = "Card")]
Card = 0,
[Display(Name = "Bank Account")]
BankAccount = 1,
[Display(Name = "PayPal")]
PayPal = 2,
[Display(Name = "BitPay")]
BitPay = 3,
[Display(Name = "Credit")]
Credit = 4,
[Display(Name = "Wire Transfer")]
WireTransfer = 5,
[Display(Name = "Apple In-App Purchase")]
AppleInApp = 6,
[Display(Name = "Google In-App Purchase")]
GoogleInApp = 7,
[Display(Name = "Check")]
Check = 8,
[Display(Name = "None")]
None = 255,
}
[Display(Name = "Card")]
Card = 0,
[Display(Name = "Bank Account")]
BankAccount = 1,
[Display(Name = "PayPal")]
PayPal = 2,
[Display(Name = "BitPay")]
BitPay = 3,
[Display(Name = "Credit")]
Credit = 4,
[Display(Name = "Wire Transfer")]
WireTransfer = 5,
[Display(Name = "Apple In-App Purchase")]
AppleInApp = 6,
[Display(Name = "Google In-App Purchase")]
GoogleInApp = 7,
[Display(Name = "Check")]
Check = 8,
[Display(Name = "None")]
None = 255,
}

View File

@ -1,10 +1,9 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum PlanSponsorshipType : byte
{
public enum PlanSponsorshipType : byte
{
[Display(Name = "Families For Enterprise")]
FamiliesForEnterprise = 0,
}
[Display(Name = "Families For Enterprise")]
FamiliesForEnterprise = 0,
}

View File

@ -1,32 +1,31 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum PlanType : byte
{
public enum PlanType : byte
{
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families 2019")]
FamiliesAnnually2019 = 1,
[Display(Name = "Teams (Monthly) 2019")]
TeamsMonthly2019 = 2,
[Display(Name = "Teams (Annually) 2019")]
TeamsAnnually2019 = 3,
[Display(Name = "Enterprise (Monthly) 2019")]
EnterpriseMonthly2019 = 4,
[Display(Name = "Enterprise (Annually) 2019")]
EnterpriseAnnually2019 = 5,
[Display(Name = "Custom")]
Custom = 6,
[Display(Name = "Families")]
FamiliesAnnually = 7,
[Display(Name = "Teams (Monthly)")]
TeamsMonthly = 8,
[Display(Name = "Teams (Annually)")]
TeamsAnnually = 9,
[Display(Name = "Enterprise (Monthly)")]
EnterpriseMonthly = 10,
[Display(Name = "Enterprise (Annually)")]
EnterpriseAnnually = 11,
}
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families 2019")]
FamiliesAnnually2019 = 1,
[Display(Name = "Teams (Monthly) 2019")]
TeamsMonthly2019 = 2,
[Display(Name = "Teams (Annually) 2019")]
TeamsAnnually2019 = 3,
[Display(Name = "Enterprise (Monthly) 2019")]
EnterpriseMonthly2019 = 4,
[Display(Name = "Enterprise (Annually) 2019")]
EnterpriseAnnually2019 = 5,
[Display(Name = "Custom")]
Custom = 6,
[Display(Name = "Families")]
FamiliesAnnually = 7,
[Display(Name = "Teams (Monthly)")]
TeamsMonthly = 8,
[Display(Name = "Teams (Annually)")]
TeamsAnnually = 9,
[Display(Name = "Enterprise (Monthly)")]
EnterpriseMonthly = 10,
[Display(Name = "Enterprise (Annually)")]
EnterpriseAnnually = 11,
}

View File

@ -1,17 +1,16 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum PolicyType : byte
{
public enum PolicyType : byte
{
TwoFactorAuthentication = 0,
MasterPassword = 1,
PasswordGenerator = 2,
SingleOrg = 3,
RequireSso = 4,
PersonalOwnership = 5,
DisableSend = 6,
SendOptions = 7,
ResetPassword = 8,
MaximumVaultTimeout = 9,
DisablePersonalVaultExport = 10,
}
TwoFactorAuthentication = 0,
MasterPassword = 1,
PasswordGenerator = 2,
SingleOrg = 3,
RequireSso = 4,
PersonalOwnership = 5,
DisableSend = 6,
SendOptions = 7,
ResetPassword = 8,
MaximumVaultTimeout = 9,
DisablePersonalVaultExport = 10,
}

View File

@ -1,17 +1,16 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum ProductType : byte
{
public enum ProductType : byte
{
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families")]
Families = 1,
[Display(Name = "Teams")]
Teams = 2,
[Display(Name = "Enterprise")]
Enterprise = 3,
}
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families")]
Families = 1,
[Display(Name = "Teams")]
Teams = 2,
[Display(Name = "Enterprise")]
Enterprise = 3,
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums.Provider
namespace Bit.Core.Enums.Provider;
public enum ProviderStatusType : byte
{
public enum ProviderStatusType : byte
{
Pending = 0,
Created = 1,
}
Pending = 0,
Created = 1,
}

View File

@ -1,9 +1,8 @@
namespace Bit.Core.Enums.Provider
namespace Bit.Core.Enums.Provider;
public enum ProviderUserStatusType : byte
{
public enum ProviderUserStatusType : byte
{
Invited = 0,
Accepted = 1,
Confirmed = 2,
}
Invited = 0,
Accepted = 1,
Confirmed = 2,
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums.Provider
namespace Bit.Core.Enums.Provider;
public enum ProviderUserType : byte
{
public enum ProviderUserType : byte
{
ProviderAdmin = 0,
ServiceUser = 1,
}
ProviderAdmin = 0,
ServiceUser = 1,
}

View File

@ -1,24 +1,23 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum PushType : byte
{
public enum PushType : byte
{
SyncCipherUpdate = 0,
SyncCipherCreate = 1,
SyncLoginDelete = 2,
SyncFolderDelete = 3,
SyncCiphers = 4,
SyncCipherUpdate = 0,
SyncCipherCreate = 1,
SyncLoginDelete = 2,
SyncFolderDelete = 3,
SyncCiphers = 4,
SyncVault = 5,
SyncOrgKeys = 6,
SyncFolderCreate = 7,
SyncFolderUpdate = 8,
SyncCipherDelete = 9,
SyncSettings = 10,
SyncVault = 5,
SyncOrgKeys = 6,
SyncFolderCreate = 7,
SyncFolderUpdate = 8,
SyncCipherDelete = 9,
SyncSettings = 10,
LogOut = 11,
LogOut = 11,
SyncSendCreate = 12,
SyncSendUpdate = 13,
SyncSendDelete = 14,
}
SyncSendCreate = 12,
SyncSendUpdate = 13,
SyncSendDelete = 14,
}

View File

@ -1,12 +1,11 @@
using System.Runtime.Serialization;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum ReferenceEventSource
{
public enum ReferenceEventSource
{
[EnumMember(Value = "organization")]
Organization,
[EnumMember(Value = "user")]
User,
}
[EnumMember(Value = "organization")]
Organization,
[EnumMember(Value = "user")]
User,
}

View File

@ -1,44 +1,43 @@
using System.Runtime.Serialization;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum ReferenceEventType
{
public enum ReferenceEventType
{
[EnumMember(Value = "signup")]
Signup,
[EnumMember(Value = "upgrade-plan")]
UpgradePlan,
[EnumMember(Value = "adjust-storage")]
AdjustStorage,
[EnumMember(Value = "adjust-seats")]
AdjustSeats,
[EnumMember(Value = "cancel-subscription")]
CancelSubscription,
[EnumMember(Value = "reinstate-subscription")]
ReinstateSubscription,
[EnumMember(Value = "delete-account")]
DeleteAccount,
[EnumMember(Value = "confirm-email")]
ConfirmEmailAddress,
[EnumMember(Value = "invited-users")]
InvitedUsers,
[EnumMember(Value = "rebilled")]
Rebilled,
[EnumMember(Value = "send-created")]
SendCreated,
[EnumMember(Value = "send-accessed")]
SendAccessed,
[EnumMember(Value = "directory-synced")]
DirectorySynced,
[EnumMember(Value = "vault-imported")]
VaultImported,
[EnumMember(Value = "cipher-created")]
CipherCreated,
[EnumMember(Value = "group-created")]
GroupCreated,
[EnumMember(Value = "collection-created")]
CollectionCreated,
[EnumMember(Value = "organization-edited-by-admin")]
OrganizationEditedByAdmin
}
[EnumMember(Value = "signup")]
Signup,
[EnumMember(Value = "upgrade-plan")]
UpgradePlan,
[EnumMember(Value = "adjust-storage")]
AdjustStorage,
[EnumMember(Value = "adjust-seats")]
AdjustSeats,
[EnumMember(Value = "cancel-subscription")]
CancelSubscription,
[EnumMember(Value = "reinstate-subscription")]
ReinstateSubscription,
[EnumMember(Value = "delete-account")]
DeleteAccount,
[EnumMember(Value = "confirm-email")]
ConfirmEmailAddress,
[EnumMember(Value = "invited-users")]
InvitedUsers,
[EnumMember(Value = "rebilled")]
Rebilled,
[EnumMember(Value = "send-created")]
SendCreated,
[EnumMember(Value = "send-accessed")]
SendAccessed,
[EnumMember(Value = "directory-synced")]
DirectorySynced,
[EnumMember(Value = "vault-imported")]
VaultImported,
[EnumMember(Value = "cipher-created")]
CipherCreated,
[EnumMember(Value = "group-created")]
GroupCreated,
[EnumMember(Value = "collection-created")]
CollectionCreated,
[EnumMember(Value = "organization-edited-by-admin")]
OrganizationEditedByAdmin
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum Saml2BindingType : byte
{
public enum Saml2BindingType : byte
{
HttpRedirect = 1,
HttpPost = 2,
}
HttpRedirect = 1,
HttpPost = 2,
}

View File

@ -1,15 +1,14 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum Saml2NameIdFormat : byte
{
public enum Saml2NameIdFormat : byte
{
NotConfigured = 0,
Unspecified = 1,
EmailAddress = 2,
X509SubjectName = 3,
WindowsDomainQualifiedName = 4,
KerberosPrincipalName = 5,
EntityIdentifier = 6,
Persistent = 7,
Transient = 8,
}
NotConfigured = 0,
Unspecified = 1,
EmailAddress = 2,
X509SubjectName = 3,
WindowsDomainQualifiedName = 4,
KerberosPrincipalName = 5,
EntityIdentifier = 6,
Persistent = 7,
Transient = 8,
}

View File

@ -1,9 +1,8 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum Saml2SigningBehavior : byte
{
public enum Saml2SigningBehavior : byte
{
IfIdpWantAuthnRequestsSigned = 0,
Always = 1,
Never = 3
}
IfIdpWantAuthnRequestsSigned = 0,
Always = 1,
Never = 3
}

View File

@ -1,13 +1,12 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum ScimProviderType : byte
{
public enum ScimProviderType : byte
{
Default = 0,
AzureAd = 1,
Okta = 2,
OneLogin = 3,
JumpCloud = 4,
GoogleWorkspace = 5,
Rippling = 6,
}
Default = 0,
AzureAd = 1,
Okta = 2,
OneLogin = 3,
JumpCloud = 4,
GoogleWorkspace = 5,
Rippling = 6,
}

View File

@ -1,7 +1,6 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum SecureNoteType : byte
{
public enum SecureNoteType : byte
{
Generic = 0
}
Generic = 0
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum SendType : byte
{
public enum SendType : byte
{
Text = 0,
File = 1
}
Text = 0,
File = 1
}

View File

@ -1,8 +1,7 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum SsoType : byte
{
public enum SsoType : byte
{
OpenIdConnect = 1,
Saml2 = 2,
}
OpenIdConnect = 1,
Saml2 = 2,
}

View File

@ -1,10 +1,9 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum SupportedDatabaseProviders
{
public enum SupportedDatabaseProviders
{
SqlServer,
MySql,
Postgres,
}
SqlServer,
MySql,
Postgres,
}

View File

@ -1,18 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum TransactionType : byte
{
public enum TransactionType : byte
{
[Display(Name = "Charge")]
Charge = 0,
[Display(Name = "Credit")]
Credit = 1,
[Display(Name = "Promotional Credit")]
PromotionalCredit = 2,
[Display(Name = "Referral Credit")]
ReferralCredit = 3,
[Display(Name = "Refund")]
Refund = 4,
}
[Display(Name = "Charge")]
Charge = 0,
[Display(Name = "Credit")]
Credit = 1,
[Display(Name = "Promotional Credit")]
PromotionalCredit = 2,
[Display(Name = "Referral Credit")]
ReferralCredit = 3,
[Display(Name = "Refund")]
Refund = 4,
}

View File

@ -1,14 +1,13 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum TwoFactorProviderType : byte
{
public enum TwoFactorProviderType : byte
{
Authenticator = 0,
Email = 1,
Duo = 2,
YubiKey = 3,
U2f = 4, // Deprecated
Remember = 5,
OrganizationDuo = 6,
WebAuthn = 7,
}
Authenticator = 0,
Email = 1,
Duo = 2,
YubiKey = 3,
U2f = 4, // Deprecated
Remember = 5,
OrganizationDuo = 6,
WebAuthn = 7,
}

View File

@ -1,12 +1,11 @@
namespace Bit.Core.Enums
namespace Bit.Core.Enums;
public enum UriMatchType : byte
{
public enum UriMatchType : byte
{
Domain = 0,
Host = 1,
StartsWith = 2,
Exact = 3,
RegularExpression = 4,
Never = 5
}
Domain = 0,
Host = 1,
StartsWith = 2,
Exact = 3,
RegularExpression = 4,
Never = 5
}