@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 +4 -0
- package/auth/interfaces.d.ts +1 -0
- package/index.js +1 -1
- package/node/auth/index.js +4 -0
- package/node/index.js +1 -1
- package/node/users/index.js +4 -0
- package/package.json +1 -1
- package/users/index.d.ts +2 -1
- package/users/index.js +4 -0
- package/users/interfaces.d.ts +3 -0
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
|
}
|
package/auth/interfaces.d.ts
CHANGED
package/index.js
CHANGED
package/node/auth/index.js
CHANGED
|
@@ -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
package/node/users/index.js
CHANGED
|
@@ -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
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
|
}
|