@frontegg/rest-api 3.2.0 → 3.2.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.2.0
1
+ /** @license Frontegg v3.2.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.2.0
1
+ /** @license Frontegg v3.2.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -68,6 +68,10 @@ class UsersApi extends _BaseApiClient.BaseApiClient {
68
68
  this.updateUserProfileV2 = async body => {
69
69
  return this.put(`${_constants.urls.identity.users.v2}/me`, body);
70
70
  };
71
+
72
+ this.unlockMe = async body => {
73
+ return this.post(`${_constants.urls.identity.users.v3}/me/unlock`, body);
74
+ };
71
75
  }
72
76
 
73
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/users/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GetCurrentUserTenantsResponse, GetUserGroupsParams, GetUserGroupsResponse, GetUserJwtRequestDto, GetUserJwtResponseDto, GetUserRolesResponse, GetUsersRolesParams, IGetUsersV2Response, ISearchUserQueryParamsV2, ISearchUserQueryParamsV3, IUpdateUserDto, IUserProfile, IUsersV3Data } from './interfaces';
1
+ import { GetCurrentUserTenantsResponse, GetUserGroupsParams, GetUserGroupsResponse, GetUserJwtRequestDto, GetUserJwtResponseDto, GetUserRolesResponse, GetUsersRolesParams, IGetUsersV2Response, ISearchUserQueryParamsV2, ISearchUserQueryParamsV3, IUnlockMeRequest, IUpdateUserDto, IUserProfile, IUsersV3Data } from './interfaces';
2
2
  import { FronteggPaginationWrapper, UserJwtOptions } from '../interfaces';
3
3
  import { BaseApiClient } from '../BaseApiClient';
4
4
  export declare class UsersApi extends BaseApiClient {
@@ -18,6 +18,7 @@ export declare class UsersApi extends BaseApiClient {
18
18
  getCurrentUserTenantsV1: (options?: UserJwtOptions | undefined) => Promise<GetCurrentUserTenantsResponse>;
19
19
  sendResetBreachedPasswordEmails: () => Promise<void>;
20
20
  updateUserProfileV2: (body: Partial<IUpdateUserDto>) => Promise<IUserProfile>;
21
+ unlockMe: (body: IUnlockMeRequest) => Promise<void>;
21
22
  }
22
23
  declare const _default: UsersApi;
23
24
  export default _default;
package/users/index.js CHANGED
@@ -56,6 +56,10 @@ export class UsersApi extends BaseApiClient {
56
56
  this.updateUserProfileV2 = async body => {
57
57
  return this.put(`${urls.identity.users.v2}/me`, body);
58
58
  };
59
+
60
+ this.unlockMe = async body => {
61
+ return this.post(`${urls.identity.users.v3}/me/unlock`, body);
62
+ };
59
63
  }
60
64
 
61
65
  }
@@ -139,3 +139,6 @@ export interface SourceMetadata {
139
139
  sourceId: string;
140
140
  }
141
141
  export declare const providersArray: string[];
142
+ export interface IUnlockMeRequest {
143
+ token: string;
144
+ }