@turinhub/tale-js-sdk 2.4.0 → 2.4.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.
@@ -162,6 +162,7 @@ export async function login(credentials, options) {
162
162
  userPrivileges: responseData.userPrivileges || [],
163
163
  userGroups: responseData.userGroups || [],
164
164
  userLoginMethods: responseData.userLoginMethods || [],
165
+ userAttributes: responseData.userAttributes || [],
165
166
  };
166
167
  return loginResponse;
167
168
  }
@@ -1,4 +1,5 @@
1
1
  import type { AppInfo, User, UserGroup, Role, Privilege, CommonOptions } from "../common/types.js";
2
+ import type { UserAttributeItemDTO } from "../user-attribute/types.js";
2
3
  export type { AppInfo, UserGroup };
3
4
  /**
4
5
  * Auth user information (extends User with non-null remark)
@@ -68,6 +69,7 @@ export interface LoginResponse {
68
69
  userPrivileges: AuthPrivilege[];
69
70
  userGroups: UserGroup[];
70
71
  userLoginMethods: AuthUserLoginMethod[];
72
+ userAttributes?: UserAttributeItemDTO[];
71
73
  }
72
74
  export interface LoginJson {
73
75
  app: AppInfo;
@@ -77,6 +79,7 @@ export interface LoginJson {
77
79
  userPrivileges: AuthPrivilege[];
78
80
  userGroups: UserGroup[];
79
81
  userLoginMethods: AuthUserLoginMethod[];
82
+ userAttributes?: UserAttributeItemDTO[];
80
83
  }
81
84
  export type SmsType = "login" | "register" | "changePassword";
82
85
  export type LoginOrRegisterSmsType = "login" | "register";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turinhub/tale-js-sdk",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Official TypeScript SDK for Tale backend services",
5
5
  "keywords": [
6
6
  "tale",