@movmo_app/types 1.27.0 → 1.29.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 +1 -1
- package/dist/passkeys.d.ts +15 -0
- package/dist/users.d.ts +14 -0
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type MovmoVerifyResponse = {
|
|
|
41
41
|
export type MovmoRecoveryCancelRequest = {
|
|
42
42
|
token: string;
|
|
43
43
|
};
|
|
44
|
-
export type AuthErrorCode = 'invalid_email' | 'rate_limited' | 'resend_too_soon' | 'flow_expired' | 'invalid_code' | 'too_many_attempts' | 'invalid_request' | 'invalid_credential' | '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';
|
|
44
|
+
export type AuthErrorCode = 'invalid_email' | 'rate_limited' | 'resend_too_soon' | 'flow_expired' | 'invalid_code' | 'too_many_attempts' | 'invalid_request' | 'invalid_credential' | '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' | 'account_deletion_pending' | 'booking_in_progress' | 'deletion_pending' | 'deletion_in_progress' | 'admin_account';
|
|
45
45
|
/**
|
|
46
46
|
* ContactType represents the types of contact information that can be changed
|
|
47
47
|
* through the contact-change flow (initiate, verify-identity, confirm).
|
package/dist/passkeys.d.ts
CHANGED
|
@@ -16,3 +16,18 @@ export type PasskeyRegistrationStart = {
|
|
|
16
16
|
flow_id: string;
|
|
17
17
|
options: WebAuthnOptionsJSON;
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* `GET /v1/users/me/passkeys` (MOVMO-738). The four optional keys are present
|
|
21
|
+
* only when the user has at least one passkey, and are absent on a monolith
|
|
22
|
+
* that predates the WebAuthn Signal API support. `user_name` and
|
|
23
|
+
* `user_display_name` are exactly what the server registered with the
|
|
24
|
+
* authenticator; clients pass them through and never recompute them.
|
|
25
|
+
*/
|
|
26
|
+
export interface PasskeyListResponse {
|
|
27
|
+
passkeys: PasskeySummary[];
|
|
28
|
+
/** base64url, no padding: the WebAuthn user handle. */
|
|
29
|
+
user_handle?: string;
|
|
30
|
+
rp_id?: string;
|
|
31
|
+
user_name?: string;
|
|
32
|
+
user_display_name?: string;
|
|
33
|
+
}
|
package/dist/users.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { Gender } from './types';
|
|
2
2
|
import { TravelerType } from './booking';
|
|
3
|
+
/** Present on `GET /v1/users/me` only while an account deletion is pending. */
|
|
4
|
+
export type AccountDeletion = {
|
|
5
|
+
status: 'pending';
|
|
6
|
+
requested_at: string;
|
|
7
|
+
scheduled_for: string;
|
|
8
|
+
};
|
|
9
|
+
/** Body of `403` answered by any authenticated route while a deletion is pending. */
|
|
10
|
+
export type AccountDeletionPendingBody = {
|
|
11
|
+
code: 'account_deletion_pending';
|
|
12
|
+
scheduled_for?: string;
|
|
13
|
+
restore_url?: string;
|
|
14
|
+
};
|
|
3
15
|
/**
|
|
4
16
|
* User represents a registered user in the system.
|
|
5
17
|
* JSON field names use snake_case to match the Go backend.
|
|
@@ -20,6 +32,8 @@ export type User = {
|
|
|
20
32
|
last_login?: string;
|
|
21
33
|
created_at?: string;
|
|
22
34
|
updated_at?: string;
|
|
35
|
+
/** Set only while the account is scheduled for deletion. */
|
|
36
|
+
account_deletion?: AccountDeletion;
|
|
23
37
|
};
|
|
24
38
|
/**
|
|
25
39
|
* UserPassenger represents a passenger owned by a specific user.
|