@mitumba/sdk 1.23.0 → 1.24.1

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/index.d.mts CHANGED
@@ -133,6 +133,8 @@ interface UserProfile {
133
133
  totp_enabled: boolean;
134
134
  totp_configured: boolean;
135
135
  two_factor_methods_count?: number;
136
+ sms_2fa_available?: boolean;
137
+ email_2fa_available?: boolean;
136
138
  is_active: boolean;
137
139
  created_at: string;
138
140
  roles: string[];
@@ -1092,6 +1094,16 @@ declare class AuthModule {
1092
1094
  * Verify 2FA code during login. Tokens are auto-persisted.
1093
1095
  */
1094
1096
  verify2FA(input: Verify2FAInput, options?: RequestOptions): Promise<AuthTokens>;
1097
+ /**
1098
+ * Send a 2FA challenge during login (for SMS/email methods).
1099
+ * Call before verify2FA when the user picks a non-TOTP method.
1100
+ */
1101
+ sendLogin2FAChallenge(input: {
1102
+ temp_token: string;
1103
+ method_id: string;
1104
+ }, options?: RequestOptions): Promise<{
1105
+ ok: true;
1106
+ }>;
1095
1107
  /**
1096
1108
  * Send a verification code to the user's email.
1097
1109
  */
package/dist/index.d.ts CHANGED
@@ -133,6 +133,8 @@ interface UserProfile {
133
133
  totp_enabled: boolean;
134
134
  totp_configured: boolean;
135
135
  two_factor_methods_count?: number;
136
+ sms_2fa_available?: boolean;
137
+ email_2fa_available?: boolean;
136
138
  is_active: boolean;
137
139
  created_at: string;
138
140
  roles: string[];
@@ -1092,6 +1094,16 @@ declare class AuthModule {
1092
1094
  * Verify 2FA code during login. Tokens are auto-persisted.
1093
1095
  */
1094
1096
  verify2FA(input: Verify2FAInput, options?: RequestOptions): Promise<AuthTokens>;
1097
+ /**
1098
+ * Send a 2FA challenge during login (for SMS/email methods).
1099
+ * Call before verify2FA when the user picks a non-TOTP method.
1100
+ */
1101
+ sendLogin2FAChallenge(input: {
1102
+ temp_token: string;
1103
+ method_id: string;
1104
+ }, options?: RequestOptions): Promise<{
1105
+ ok: true;
1106
+ }>;
1095
1107
  /**
1096
1108
  * Send a verification code to the user's email.
1097
1109
  */
package/dist/index.js CHANGED
@@ -411,6 +411,13 @@ var AuthModule = class {
411
411
  await this.client.setSession(result);
412
412
  return result;
413
413
  }
414
+ /**
415
+ * Send a 2FA challenge during login (for SMS/email methods).
416
+ * Call before verify2FA when the user picks a non-TOTP method.
417
+ */
418
+ async sendLogin2FAChallenge(input, options) {
419
+ return this.client.post("/auth/2fa/login/challenge", input, options);
420
+ }
414
421
  /**
415
422
  * Send a verification code to the user's email.
416
423
  */