Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add AuthEventType enum to shared models (#900)

Leendert de Borst4619fe615cd7
diff --git a/apps/browser-extension/src/utils/shared/models/index.d.ts b/apps/browser-extension/src/utils/shared/models/index.d.ts
index 0065eeafb..475810070 100644
--- a/apps/browser-extension/src/utils/shared/models/index.d.ts
+++ b/apps/browser-extension/src/utils/shared/models/index.d.ts
@@ -307,4 +307,50 @@ type BadRequestResponse = {
traceId: string;
};
-export type { Attachment, AuthLogModel, BadRequestResponse, DeleteAccountInitiateRequest, DeleteAccountInitiateResponse, DeleteAccountRequest, Email, FaviconExtractModel, LoginRequest, LoginResponse, MailboxBulkRequest, MailboxBulkResponse, MailboxEmail, PasswordChangeInitiateResponse, RefreshToken, StatusResponse, ValidateLoginRequest, ValidateLoginRequest2Fa, ValidateLoginResponse, Vault, VaultPasswordChangeRequest, VaultPostResponse, VaultResponse };
+/**
+ * Represents the type of authentication event.
+ */
+declare enum AuthEventType {
+ /**
+ * Represents a standard login attempt.
+ */
+ Login = 1,
+ /**
+ * Represents a two-factor authentication attempt.
+ */
+ TwoFactorAuthentication = 2,
+ /**
+ * Represents a user logout event.
+ */
+ Logout = 3,
+ /**
+ * Represents JWT access token refresh event issued by client to API.
+ */
+ TokenRefresh = 10,
+ /**
+ * Represents a password reset event.
+ */
+ PasswordReset = 20,
+ /**
+ * Represents a password change event.
+ */
+ PasswordChange = 21,
+ /**
+ * Represents enabling two-factor authentication in settings.
+ */
+ TwoFactorAuthEnable = 22,
+ /**
+ * Represents disabling two-factor authentication in settings.
+ */
+ TwoFactorAuthDisable = 23,
+ /**
+ * Represents a user registration event.
+ */
+ Register = 30,
+ /**
+ * Represents a user account deletion event.
+ */
+ AccountDeletion = 99
+}
+
+export { type Attachment, AuthEventType, type AuthLogModel, type BadRequestResponse, type DeleteAccountInitiateRequest, type DeleteAccountInitiateResponse, type DeleteAccountRequest, type Email, type FaviconExtractModel, type LoginRequest, type LoginResponse, type MailboxBulkRequest, type MailboxBulkResponse, type MailboxEmail, type PasswordChangeInitiateResponse, type RefreshToken, type StatusResponse, type ValidateLoginRequest, type ValidateLoginRequest2Fa, type ValidateLoginResponse, type Vault, type VaultPasswordChangeRequest, type VaultPostResponse, type VaultResponse };
diff --git a/apps/browser-extension/src/utils/shared/models/index.js b/apps/browser-extension/src/utils/shared/models/index.js
index a41e52c7b..501fdc30b 100644
--- a/apps/browser-extension/src/utils/shared/models/index.js
+++ b/apps/browser-extension/src/utils/shared/models/index.js
@@ -1,3 +1,22 @@
+// <auto-generated>
+// This file was automatically generated. Do not edit manually.
+
+// src/webapi/AuthEventType.ts
+var AuthEventType = /* @__PURE__ */ ((AuthEventType2) => {
+ AuthEventType2[AuthEventType2["Login"] = 1] = "Login";
+ AuthEventType2[AuthEventType2["TwoFactorAuthentication"] = 2] = "TwoFactorAuthentication";
+ AuthEventType2[AuthEventType2["Logout"] = 3] = "Logout";
+ AuthEventType2[AuthEventType2["TokenRefresh"] = 10] = "TokenRefresh";
+ AuthEventType2[AuthEventType2["PasswordReset"] = 20] = "PasswordReset";
+ AuthEventType2[AuthEventType2["PasswordChange"] = 21] = "PasswordChange";
+ AuthEventType2[AuthEventType2["TwoFactorAuthEnable"] = 22] = "TwoFactorAuthEnable";
+ AuthEventType2[AuthEventType2["TwoFactorAuthDisable"] = 23] = "TwoFactorAuthDisable";
+ AuthEventType2[AuthEventType2["Register"] = 30] = "Register";
+ AuthEventType2[AuthEventType2["AccountDeletion"] = 99] = "AccountDeletion";
+ return AuthEventType2;
+})(AuthEventType || {});
+
+export { AuthEventType };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/apps/mobile-app/utils/shared/models/index.d.ts b/apps/mobile-app/utils/shared/models/index.d.ts
index 0065eeafb..475810070 100644
--- a/apps/mobile-app/utils/shared/models/index.d.ts
+++ b/apps/mobile-app/utils/shared/models/index.d.ts
@@ -307,4 +307,50 @@ type BadRequestResponse = {
traceId: string;
};
-export type { Attachment, AuthLogModel, BadRequestResponse, DeleteAccountInitiateRequest, DeleteAccountInitiateResponse, DeleteAccountRequest, Email, FaviconExtractModel, LoginRequest, LoginResponse, MailboxBulkRequest, MailboxBulkResponse, MailboxEmail, PasswordChangeInitiateResponse, RefreshToken, StatusResponse, ValidateLoginRequest, ValidateLoginRequest2Fa, ValidateLoginResponse, Vault, VaultPasswordChangeRequest, VaultPostResponse, VaultResponse };
+/**
+ * Represents the type of authentication event.
+ */
+declare enum AuthEventType {
+ /**
+ * Represents a standard login attempt.
+ */
+ Login = 1,
+ /**
+ * Represents a two-factor authentication attempt.
+ */
+ TwoFactorAuthentication = 2,
+ /**
+ * Represents a user logout event.
+ */
+ Logout = 3,
+ /**
+ * Represents JWT access token refresh event issued by client to API.
+ */
+ TokenRefresh = 10,
+ /**
+ * Represents a password reset event.
+ */
+ PasswordReset = 20,
+ /**
+ * Represents a password change event.
+ */
+ PasswordChange = 21,
+ /**
+ * Represents enabling two-factor authentication in settings.
+ */
+ TwoFactorAuthEnable = 22,
+ /**
+ * Represents disabling two-factor authentication in settings.
+ */
+ TwoFactorAuthDisable = 23,
+ /**
+ * Represents a user registration event.
+ */
+ Register = 30,
+ /**
+ * Represents a user account deletion event.
+ */
+ AccountDeletion = 99
+}
+
+export { type Attachment, AuthEventType, type AuthLogModel, type BadRequestResponse, type DeleteAccountInitiateRequest, type DeleteAccountInitiateResponse, type DeleteAccountRequest, type Email, type FaviconExtractModel, type LoginRequest, type LoginResponse, type MailboxBulkRequest, type MailboxBulkResponse, type MailboxEmail, type PasswordChangeInitiateResponse, type RefreshToken, type StatusResponse, type ValidateLoginRequest, type ValidateLoginRequest2Fa, type ValidateLoginResponse, type Vault, type VaultPasswordChangeRequest, type VaultPostResponse, type VaultResponse };
diff --git a/apps/mobile-app/utils/shared/models/index.js b/apps/mobile-app/utils/shared/models/index.js
index a41e52c7b..501fdc30b 100644
--- a/apps/mobile-app/utils/shared/models/index.js
+++ b/apps/mobile-app/utils/shared/models/index.js
@@ -1,3 +1,22 @@
+// <auto-generated>
+// This file was automatically generated. Do not edit manually.
+
+// src/webapi/AuthEventType.ts
+var AuthEventType = /* @__PURE__ */ ((AuthEventType2) => {
+ AuthEventType2[AuthEventType2["Login"] = 1] = "Login";
+ AuthEventType2[AuthEventType2["TwoFactorAuthentication"] = 2] = "TwoFactorAuthentication";
+ AuthEventType2[AuthEventType2["Logout"] = 3] = "Logout";
+ AuthEventType2[AuthEventType2["TokenRefresh"] = 10] = "TokenRefresh";
+ AuthEventType2[AuthEventType2["PasswordReset"] = 20] = "PasswordReset";
+ AuthEventType2[AuthEventType2["PasswordChange"] = 21] = "PasswordChange";
+ AuthEventType2[AuthEventType2["TwoFactorAuthEnable"] = 22] = "TwoFactorAuthEnable";
+ AuthEventType2[AuthEventType2["TwoFactorAuthDisable"] = 23] = "TwoFactorAuthDisable";
+ AuthEventType2[AuthEventType2["Register"] = 30] = "Register";
+ AuthEventType2[AuthEventType2["AccountDeletion"] = 99] = "AccountDeletion";
+ return AuthEventType2;
+})(AuthEventType || {});
+
+export { AuthEventType };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/shared/models/src/index.ts b/shared/models/src/index.ts
index 89df3f825..4fb035a5e 100644
--- a/shared/models/src/index.ts
+++ b/shared/models/src/index.ts
@@ -17,3 +17,4 @@ export * from './webapi/DeleteAccountRequest';
export * from './webapi/PasswordChangeInitiateResponse';
export * from './webapi/VaultPasswordChangeRequest';
export * from './webapi/BadRequestResponse';
+export * from './webapi/AuthEventType';