@movmo_app/types 1.21.0 → 1.22.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 +0 -25
- package/dist/auth.js +1 -22
- package/dist/sessions.d.ts +2 -7
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -1,32 +1,7 @@
|
|
|
1
|
-
export declare enum AuthenticationUsernameType {
|
|
2
|
-
EMAIL = "email",
|
|
3
|
-
PHONE_NUMBER = "phoneNumber"
|
|
4
|
-
}
|
|
5
|
-
export declare enum AuthenticationUserStatus {
|
|
6
|
-
CONFIRMED = "CONFIRMED",
|
|
7
|
-
UNCONFIRMED = "UNCONFIRMED"
|
|
8
|
-
}
|
|
9
|
-
export declare enum AuthenticationChallengeName {
|
|
10
|
-
SMS_OTP = "SMS_OTP",
|
|
11
|
-
EMAIL_OTP = "EMAIL_OTP",
|
|
12
|
-
CONFIRM_SIGN_UP = "CONFIRM_SIGN_UP"
|
|
13
|
-
}
|
|
14
|
-
export declare enum AuthenticationChallengeResponse {
|
|
15
|
-
SMS_OTP_CODE = "SMS_OTP_CODE",
|
|
16
|
-
EMAIL_OTP_CODE = "EMAIL_OTP_CODE"
|
|
17
|
-
}
|
|
18
1
|
export declare enum OTPAction {
|
|
19
2
|
EMAILED = "emailed",
|
|
20
3
|
TEXTED = "texted"
|
|
21
4
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Response from the login endpoint.
|
|
24
|
-
*/
|
|
25
|
-
export type LoginUserResponse = {
|
|
26
|
-
session: string;
|
|
27
|
-
challengeName?: AuthenticationChallengeName;
|
|
28
|
-
username?: string;
|
|
29
|
-
};
|
|
30
5
|
export type WebAuthnOptionsJSON = {
|
|
31
6
|
publicKey: Record<string, unknown>;
|
|
32
7
|
mediation?: string;
|
package/dist/auth.js
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OTPAction =
|
|
4
|
-
var AuthenticationUsernameType;
|
|
5
|
-
(function (AuthenticationUsernameType) {
|
|
6
|
-
AuthenticationUsernameType["EMAIL"] = "email";
|
|
7
|
-
AuthenticationUsernameType["PHONE_NUMBER"] = "phoneNumber";
|
|
8
|
-
})(AuthenticationUsernameType || (exports.AuthenticationUsernameType = AuthenticationUsernameType = {}));
|
|
9
|
-
var AuthenticationUserStatus;
|
|
10
|
-
(function (AuthenticationUserStatus) {
|
|
11
|
-
AuthenticationUserStatus["CONFIRMED"] = "CONFIRMED";
|
|
12
|
-
AuthenticationUserStatus["UNCONFIRMED"] = "UNCONFIRMED";
|
|
13
|
-
})(AuthenticationUserStatus || (exports.AuthenticationUserStatus = AuthenticationUserStatus = {}));
|
|
14
|
-
var AuthenticationChallengeName;
|
|
15
|
-
(function (AuthenticationChallengeName) {
|
|
16
|
-
AuthenticationChallengeName["SMS_OTP"] = "SMS_OTP";
|
|
17
|
-
AuthenticationChallengeName["EMAIL_OTP"] = "EMAIL_OTP";
|
|
18
|
-
AuthenticationChallengeName["CONFIRM_SIGN_UP"] = "CONFIRM_SIGN_UP";
|
|
19
|
-
})(AuthenticationChallengeName || (exports.AuthenticationChallengeName = AuthenticationChallengeName = {}));
|
|
20
|
-
var AuthenticationChallengeResponse;
|
|
21
|
-
(function (AuthenticationChallengeResponse) {
|
|
22
|
-
AuthenticationChallengeResponse["SMS_OTP_CODE"] = "SMS_OTP_CODE";
|
|
23
|
-
AuthenticationChallengeResponse["EMAIL_OTP_CODE"] = "EMAIL_OTP_CODE";
|
|
24
|
-
})(AuthenticationChallengeResponse || (exports.AuthenticationChallengeResponse = AuthenticationChallengeResponse = {}));
|
|
3
|
+
exports.OTPAction = void 0;
|
|
25
4
|
var OTPAction;
|
|
26
5
|
(function (OTPAction) {
|
|
27
6
|
OTPAction["EMAILED"] = "emailed";
|
package/dist/sessions.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
export type OTPDeliveryMethod = 'email_and_phone' | 'email_only' | 'phone_only';
|
|
5
|
-
/**
|
|
6
|
-
* SecurityPreferences represents a user's OTP delivery preference settings.
|
|
2
|
+
* SecurityPreferences represents a user's security settings.
|
|
3
|
+
* phone_number_verified comes from Postgres `users.phone_verified_at` since MOVMO-706.
|
|
7
4
|
*/
|
|
8
5
|
export type SecurityPreferences = {
|
|
9
6
|
user_id: string;
|
|
10
|
-
otp_delivery_method: OTPDeliveryMethod;
|
|
11
7
|
phone_number_verified: boolean;
|
|
12
|
-
updated_at?: string;
|
|
13
8
|
};
|
|
14
9
|
/**
|
|
15
10
|
* AuthEvent represents a recorded authentication event returned by
|