@movmo_app/types 1.6.1 → 1.6.3
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 +1 -0
- package/dist/sessions.d.ts +10 -1
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
package/dist/sessions.d.ts
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
* OTPDeliveryMethod represents how one-time passcodes are delivered.
|
|
3
3
|
*/
|
|
4
4
|
export type OTPDeliveryMethod = 'email_and_phone' | 'email_only' | 'phone_only';
|
|
5
|
+
/**
|
|
6
|
+
* SecurityPreferences represents a user's OTP delivery preference settings.
|
|
7
|
+
*/
|
|
8
|
+
export type SecurityPreferences = {
|
|
9
|
+
user_id: string;
|
|
10
|
+
otp_delivery_method: OTPDeliveryMethod;
|
|
11
|
+
phone_number_verified: boolean;
|
|
12
|
+
updated_at?: string;
|
|
13
|
+
};
|
|
5
14
|
/**
|
|
6
15
|
* AuthEvent represents a recorded authentication event returned by
|
|
7
16
|
* GET /v1/users/me/auth-events.
|
|
@@ -9,7 +18,7 @@ export type OTPDeliveryMethod = 'email_and_phone' | 'email_only' | 'phone_only';
|
|
|
9
18
|
export type AuthEvent = {
|
|
10
19
|
id: string;
|
|
11
20
|
user_id: string;
|
|
12
|
-
event_type: 'sign_in' | 'sign_up';
|
|
21
|
+
event_type: 'sign_in' | 'sign_up' | 'email_change' | 'phone_change';
|
|
13
22
|
browser: string;
|
|
14
23
|
device_type: string;
|
|
15
24
|
os: string;
|