@movmo_app/types 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/auth.d.ts CHANGED
@@ -36,3 +36,9 @@ export type MovmoRecoveryCancelRequest = {
36
36
  token: string;
37
37
  };
38
38
  export type AuthErrorCode = 'invalid_email' | 'rate_limited' | 'resend_too_soon' | 'flow_expired' | 'invalid_code' | 'too_many_attempts' | 'invalid_request' | 'invalid_credential' | 'topOrigin_required' | 'passkey_limit' | 'credential_exists' | 'not_found' | 'reauth_required' | 'movmo_session_required' | 'first_party_only' | 'issuer_unavailable' | 'passkey_failed' | 'sign_in_failed' | 'recovery_required' | 'recovery_blocked' | 'recovery_cooldown' | 'code_sends_paused';
39
+ /**
40
+ * ContactType represents the types of contact information that can be changed
41
+ * through the contact-change flow (initiate, verify-identity, confirm).
42
+ * JSON values use snake_case to match the Go backend (MOVMO-687).
43
+ */
44
+ export type ContactType = 'email' | 'phone' | 'backup_email';
@@ -7,6 +7,10 @@ export type SecurityPreferences = {
7
7
  phone_number_verified: boolean;
8
8
  /** RFC3339 end of the account-recovery cool-down, or null when none is active (MOVMO-687). */
9
9
  recovery_until: string | null;
10
+ /** Backup email (masked by the server), or null when none is set (MOVMO-687). */
11
+ backup_email: string | null;
12
+ /** Whether the backup email address has been verified (MOVMO-687). */
13
+ backup_email_verified: boolean;
10
14
  };
11
15
  /**
12
16
  * AuthEvent represents a recorded authentication event returned by
@@ -15,7 +19,7 @@ export type SecurityPreferences = {
15
19
  export type AuthEvent = {
16
20
  id: string;
17
21
  user_id: string;
18
- event_type: 'sign_in' | 'sign_up' | 'email_change' | 'phone_change' | 'passkey_added' | 'passkey_removed' | 'recovery_started' | 'recovery_blocked' | 'recovery_cancelled';
22
+ event_type: 'sign_in' | 'sign_up' | 'email_change' | 'phone_change' | 'backup_email_change' | 'backup_email_remove' | 'passkey_added' | 'passkey_removed' | 'recovery_started' | 'recovery_blocked' | 'recovery_cancelled';
19
23
  browser: string;
20
24
  device_type: string;
21
25
  os: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movmo_app/types",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "A collection of Movmo's types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",