@frontegg/rest-api 3.1.30 → 3.1.31
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.d.ts +1 -1
- package/auth/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/node/auth/index.js +8 -1
- package/node/index.js +22 -1
- package/package.json +1 -1
package/auth/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./secutiry-poilicy";
|
|
2
2
|
export * from "./enums";
|
|
3
|
-
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage } from './utils';
|
|
3
|
+
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, getCurrentUserTenantsFunction } from './utils';
|
|
4
4
|
import { ISamlRolesGroup } from "../teams/interfaces";
|
|
5
5
|
import { IAcceptInvitation, IActivateAccount, IAllowedToRememberMfaDevice, ICreateSamlGroup, IDeleteApiToken, IDisableMfa, IEnrollMfaResponse, IForgotPassword, IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse, IGetUserById, IGetUserPasswordConfig, ILogin, ILoginResponse, ILoginViaSocialLogin, ILoginViaSocialLoginResponse, ILoginWithMfa, IOidcPostLogin, IOidcConfiguration, IPostLogin, IPreLogin, IRecoverMFAToken, IResendActivationEmail, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, ISignUpResponse, ISignUpUser, ISocialLoginProviderConfiguration, ITenantApiTokensData, IUpdateSamlConfiguration, IUpdateSamlGroup, IUpdateSamlRoles, IUpdateSamlVendorMetadata, IUpdateTenantApiTokensData, IUpdateUserApiTokensData, IUserApiTokensData, IUserIdResponse, IVendorConfig, IVerifyMfa, IVerifyMfaResponse, TestConfig, ISSOPublicConfiguration, IPreLoginWithIdpTypeResponse, IPasswordlessPreLogin, IPasswordlessPostLogin, ICreateSSODomain, IVerifyInviteToken, ISSODomain, ISSOConfigurationDefaultRoles, ISSOConfiguration, IUpdateSSOConfiguration, IOidcPostLoginV2, IExchangeOAuthTokens, IOAuthTokenResponse, ISocialLoginProviderConfigurationV2, ILoginResponseV2, IResetPhoneNumber, IVerifyResetPhoneNumber, IChangePhoneNumber, IVerifyResetPhoneNumberResponse, IResetPhoneNumberResponse, IWebAuthnPreLogin, IWebAuthnPostLogin, IVerifyNewWebAuthnDevice, IWebAuthnPreLoginResponse, ICreateNewDeviceSessionResponse, IAuthStrategiesConfig, ISessionResponse, IChangePhoneNumberWithVerification, IChangePhoneNumberWithVerificationResponse, IVerifyChangePhoneNumber, ISessionConfigurations, IResendInvitationEmail, IPreEnrollMFA, IEnrollMFAAuthenticatorApp, IPreEnrollMFASMS, IEnrollMFASMS, IEnrollMFAWebAuthn, IPreEnrollMFAAuthenticatorAppResponse, IPreEnrollMFAWebAuthnResponse, IVerifyMFAAuthenticatorApp, IPreVerifyMFA, IPreVerifyMFASMSResponse, IVerifyMFASMS, IPreVerifyMFAWebAuthnResponse, IVerifyMFAWebAuthn, IPreEnrollMFASMSResponse, IPreDisableMFASMSResponse, IDisableMFASMS, IDisableMFAWebAuthn, IPreDisableMFAWebAuthnResponse, UserMFADevicesResponse, WithoutMFAToken, IMFAStrategiesResponse, IOAuthLogout, IGetUserAccessTokens, IGetTenantAccessTokens, IDeleteAccessToken, ICreateTenantAccessTokenData, ICreateUserAccessTokenData, IWebAuthnDevices, ICustomSocialLoginProviderConfigurationV1, ILoginResponseV3, IPreVerifyMFAEmailCodeResponse, IVerifyMFAEmailCode, ICreateOrUpdateSSOConfigurationByMetadataUrl } from './interfaces';
|
|
6
6
|
import { IGetUserAuthorizationResponse, IUserProfile } from "../users/interfaces";
|
package/auth/index.js
CHANGED
|
@@ -6,7 +6,7 @@ const _excluded = ["type"],
|
|
|
6
6
|
import { getTenants } from "../tenants";
|
|
7
7
|
export * from "./secutiry-poilicy";
|
|
8
8
|
export * from "./enums";
|
|
9
|
-
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage } from './utils';
|
|
9
|
+
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, getCurrentUserTenantsFunction } from './utils';
|
|
10
10
|
import { urls } from "../constants";
|
|
11
11
|
import { ContextHolder } from "../ContextHolder";
|
|
12
12
|
import { Delete, Get, Patch, Post, Put } from "../fetch";
|
package/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import * as userPhoneNumbers from "./user-phone-numbers";
|
|
|
26
26
|
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
27
27
|
export * from "./interfaces";
|
|
28
28
|
export * from "./auth/interfaces";
|
|
29
|
+
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, getCurrentUserTenantsFunction } from './auth';
|
|
29
30
|
export * from "./teams/interfaces";
|
|
30
31
|
export * from "./metadata/interfaces";
|
|
31
32
|
export * from "./reports/interfaces";
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.1.
|
|
1
|
+
/** @license Frontegg v3.1.31
|
|
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.
|
|
@@ -31,6 +31,7 @@ import * as userPhoneNumbers from "./user-phone-numbers";
|
|
|
31
31
|
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
32
32
|
export * from "./interfaces";
|
|
33
33
|
export * from "./auth/interfaces";
|
|
34
|
+
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, getCurrentUserTenantsFunction } from './auth';
|
|
34
35
|
export * from "./teams/interfaces";
|
|
35
36
|
export * from "./metadata/interfaces";
|
|
36
37
|
export * from "./reports/interfaces";
|
package/node/auth/index.js
CHANGED
|
@@ -155,7 +155,8 @@ var _exportNames = {
|
|
|
155
155
|
getMeV2: true,
|
|
156
156
|
getMeAndEntitlements: true,
|
|
157
157
|
setTabTenantInSessionStorage: true,
|
|
158
|
-
getTabTenantFromSessionStorage: true
|
|
158
|
+
getTabTenantFromSessionStorage: true,
|
|
159
|
+
getCurrentUserTenantsFunction: true
|
|
159
160
|
};
|
|
160
161
|
exports.OAuthLogout = OAuthLogout;
|
|
161
162
|
exports.acceptInvitation = acceptInvitation;
|
|
@@ -209,6 +210,12 @@ exports.generateLoginResponseV3 = generateLoginResponseV3;
|
|
|
209
210
|
exports.getActivateAccountStrategy = getActivateAccountStrategy;
|
|
210
211
|
exports.getCurrentUserSession = getCurrentUserSession;
|
|
211
212
|
exports.getCurrentUserSessions = getCurrentUserSessions;
|
|
213
|
+
Object.defineProperty(exports, "getCurrentUserTenantsFunction", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () {
|
|
216
|
+
return _utils.getCurrentUserTenantsFunction;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
212
219
|
exports.getCustomSocialLoginProvidersV1 = getCustomSocialLoginProvidersV1;
|
|
213
220
|
exports.getMFADevices = getMFADevices;
|
|
214
221
|
exports.getMFAStrategiesConfig = getMFAStrategiesConfig;
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.1.
|
|
1
|
+
/** @license Frontegg v3.1.31
|
|
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.
|
|
@@ -13,6 +13,9 @@ var _exportNames = {
|
|
|
13
13
|
AuthStrategyEnum: true,
|
|
14
14
|
MachineToMachineAuthStrategy: true,
|
|
15
15
|
SocialLoginProviders: true,
|
|
16
|
+
setTabTenantInSessionStorage: true,
|
|
17
|
+
getTabTenantFromSessionStorage: true,
|
|
18
|
+
getCurrentUserTenantsFunction: true,
|
|
16
19
|
fetch: true,
|
|
17
20
|
ISubscriptionCancellationPolicy: true,
|
|
18
21
|
ISubscriptionStatus: true,
|
|
@@ -83,6 +86,24 @@ Object.defineProperty(exports, "SocialLoginProviders", {
|
|
|
83
86
|
}
|
|
84
87
|
});
|
|
85
88
|
exports.fetch = exports.default = exports.api = void 0;
|
|
89
|
+
Object.defineProperty(exports, "getCurrentUserTenantsFunction", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return auth.getCurrentUserTenantsFunction;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "getTabTenantFromSessionStorage", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return auth.getTabTenantFromSessionStorage;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "setTabTenantInSessionStorage", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return auth.setTabTenantInSessionStorage;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
86
107
|
|
|
87
108
|
var auth = _interopRequireWildcard(require("./auth"));
|
|
88
109
|
|