@mitumba/sdk 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/index.d.mts CHANGED
@@ -133,6 +133,7 @@ interface UserProfile {
133
133
  totp_enabled: boolean;
134
134
  totp_configured: boolean;
135
135
  two_factor_methods_count?: number;
136
+ sms_2fa_available?: boolean;
136
137
  is_active: boolean;
137
138
  created_at: string;
138
139
  roles: string[];
@@ -1092,6 +1093,16 @@ declare class AuthModule {
1092
1093
  * Verify 2FA code during login. Tokens are auto-persisted.
1093
1094
  */
1094
1095
  verify2FA(input: Verify2FAInput, options?: RequestOptions): Promise<AuthTokens>;
1096
+ /**
1097
+ * Send a 2FA challenge during login (for SMS/email methods).
1098
+ * Call before verify2FA when the user picks a non-TOTP method.
1099
+ */
1100
+ sendLogin2FAChallenge(input: {
1101
+ temp_token: string;
1102
+ method_id: string;
1103
+ }, options?: RequestOptions): Promise<{
1104
+ ok: true;
1105
+ }>;
1095
1106
  /**
1096
1107
  * Send a verification code to the user's email.
1097
1108
  */
package/dist/index.d.ts CHANGED
@@ -133,6 +133,7 @@ interface UserProfile {
133
133
  totp_enabled: boolean;
134
134
  totp_configured: boolean;
135
135
  two_factor_methods_count?: number;
136
+ sms_2fa_available?: boolean;
136
137
  is_active: boolean;
137
138
  created_at: string;
138
139
  roles: string[];
@@ -1092,6 +1093,16 @@ declare class AuthModule {
1092
1093
  * Verify 2FA code during login. Tokens are auto-persisted.
1093
1094
  */
1094
1095
  verify2FA(input: Verify2FAInput, options?: RequestOptions): Promise<AuthTokens>;
1096
+ /**
1097
+ * Send a 2FA challenge during login (for SMS/email methods).
1098
+ * Call before verify2FA when the user picks a non-TOTP method.
1099
+ */
1100
+ sendLogin2FAChallenge(input: {
1101
+ temp_token: string;
1102
+ method_id: string;
1103
+ }, options?: RequestOptions): Promise<{
1104
+ ok: true;
1105
+ }>;
1095
1106
  /**
1096
1107
  * Send a verification code to the user's email.
1097
1108
  */
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
  */