@frontegg/rest-api 3.2.0 → 3.2.2-alpha.11551682009

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/auth/index.js CHANGED
@@ -502,6 +502,10 @@ export class AuthenticationApi extends BaseApiClient {
502
502
  queryParams.code_verifier = params.codeVerifier;
503
503
  }
504
504
 
505
+ if (params.codeVerifierPkce) {
506
+ queryParams.code_verifier_pkce = params.codeVerifierPkce;
507
+ }
508
+
505
509
  if (params.state) {
506
510
  queryParams.state = params.state;
507
511
  }
@@ -192,6 +192,7 @@ export interface ILoginViaSocialLogin {
192
192
  provider: SocialLoginProviders;
193
193
  afterAuthRedirectUrl?: string;
194
194
  codeVerifier?: string;
195
+ codeVerifierPkce?: string;
195
196
  metadata?: string;
196
197
  invitationToken?: string;
197
198
  state?: string;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.2.0
1
+ /** @license Frontegg v3.2.2-alpha.11551682009
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.
@@ -585,6 +585,10 @@ class AuthenticationApi extends _BaseApiClient.BaseApiClient {
585
585
  queryParams.code_verifier = params.codeVerifier;
586
586
  }
587
587
 
588
+ if (params.codeVerifierPkce) {
589
+ queryParams.code_verifier_pkce = params.codeVerifierPkce;
590
+ }
591
+
588
592
  if (params.state) {
589
593
  queryParams.state = params.state;
590
594
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.2.0
1
+ /** @license Frontegg v3.2.2-alpha.11551682009
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.2-alpha.11551682009",
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
+ }