@plyaz/types 1.46.5 → 1.46.7

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.
@@ -1,9 +1,9 @@
1
1
  import type { AuthAdapterUser, AuthSession, Tokens } from "./adapter-interface";
2
- import type { AuthPermissions } from "./client";
2
+ import type { AuthUserPermissions } from "./client";
3
3
  import type { AUTHPROVIDER } from "./enums";
4
4
  import type { AuthCredentials, AuthTokens, AuthUser, ConnectedAccount, Session } from "./types";
5
5
  export interface AuthState {
6
- user: AuthPermissions | null;
6
+ user: AuthUserPermissions | null;
7
7
  tokens: AuthTokens | null;
8
8
  isAuthenticated: boolean;
9
9
  isLoading: boolean;
@@ -115,6 +115,9 @@ export interface UserInfo {
115
115
  createdAt: Date;
116
116
  updatedAt: Date;
117
117
  lastLoginAt?: Date;
118
+ roles?: string[];
119
+ passwordHash?: string;
120
+ isSuspended?: boolean;
118
121
  }
119
122
  /**
120
123
  * B2B User (backoffice schema).
@@ -567,6 +570,8 @@ export interface CreateUserData {
567
570
  avatarUrl?: string;
568
571
  phoneNumber?: string;
569
572
  isVerified?: boolean;
573
+ passwordHash?: string;
574
+ isActive?: boolean;
570
575
  }
571
576
  /**
572
577
  * DTO for creating B2B users.