@nulvless/nulvless-js 0.1.0 → 0.1.2

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.cts CHANGED
@@ -261,6 +261,7 @@ interface User {
261
261
  last_sign_in_at?: string;
262
262
  identities?: Identity[];
263
263
  metadata?: Record<string, string | number>;
264
+ password_enabled?: boolean;
264
265
  created_at?: string;
265
266
  updated_at?: string;
266
267
  }
@@ -314,14 +315,14 @@ type ChallengeSubject = 'sign_in_with_otp' | 'verify_pending_user' | 'sign_up' |
314
315
  /** Methods accepted to elevate a session to sudo. Subset of `MFAMethod`. */
315
316
  type SudoMethod = 'totp' | 'email_otp' | 'sms_otp';
316
317
  interface Challenge {
317
- /** MFA method to present first to the user. */
318
- preferred: MFAMethod;
318
+ /** Method to present first to the user; `link` means a confirmation link was sent and there is no code to enter. */
319
+ preferred: MFAMethod | 'link';
319
320
  /** Masked identifier shown to the user — e.g. "u***@example.com". */
320
321
  identifier?: string;
321
322
  factors: AuthMethod[];
322
323
  subject: ChallengeSubject;
323
- /** Short-lived token used to continue the challenge flow. */
324
- token: string;
324
+ /** Short-lived token used to continue the challenge flow; `null` when there is nothing to continue, as with a link. */
325
+ token: string | null;
325
326
  expires_in: number;
326
327
  }
327
328
  interface VerifyChallengeParams {
@@ -524,6 +525,8 @@ interface AdminCreateUserParams {
524
525
  profile?: UserProfile;
525
526
  password?: string;
526
527
  metadata?: Record<string, string | number>;
528
+ email_verified?: boolean;
529
+ phone_verified?: boolean;
527
530
  }
528
531
  interface AdminUpdateUserParams {
529
532
  username?: string;
package/dist/index.d.ts CHANGED
@@ -261,6 +261,7 @@ interface User {
261
261
  last_sign_in_at?: string;
262
262
  identities?: Identity[];
263
263
  metadata?: Record<string, string | number>;
264
+ password_enabled?: boolean;
264
265
  created_at?: string;
265
266
  updated_at?: string;
266
267
  }
@@ -314,14 +315,14 @@ type ChallengeSubject = 'sign_in_with_otp' | 'verify_pending_user' | 'sign_up' |
314
315
  /** Methods accepted to elevate a session to sudo. Subset of `MFAMethod`. */
315
316
  type SudoMethod = 'totp' | 'email_otp' | 'sms_otp';
316
317
  interface Challenge {
317
- /** MFA method to present first to the user. */
318
- preferred: MFAMethod;
318
+ /** Method to present first to the user; `link` means a confirmation link was sent and there is no code to enter. */
319
+ preferred: MFAMethod | 'link';
319
320
  /** Masked identifier shown to the user — e.g. "u***@example.com". */
320
321
  identifier?: string;
321
322
  factors: AuthMethod[];
322
323
  subject: ChallengeSubject;
323
- /** Short-lived token used to continue the challenge flow. */
324
- token: string;
324
+ /** Short-lived token used to continue the challenge flow; `null` when there is nothing to continue, as with a link. */
325
+ token: string | null;
325
326
  expires_in: number;
326
327
  }
327
328
  interface VerifyChallengeParams {
@@ -524,6 +525,8 @@ interface AdminCreateUserParams {
524
525
  profile?: UserProfile;
525
526
  password?: string;
526
527
  metadata?: Record<string, string | number>;
528
+ email_verified?: boolean;
529
+ phone_verified?: boolean;
527
530
  }
528
531
  interface AdminUpdateUserParams {
529
532
  username?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulvless/nulvless-js",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Official JavaScript SDK for the Nulvless platform",
5
5
  "keywords": [
6
6
  "nulvless",