@frontegg/js 6.46.0-alpha.1 → 6.46.0

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 v6.46.0-alpha.1
1
+ /** @license Frontegg v6.46.0
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 v6.46.0-alpha.1
1
+ /** @license Frontegg v6.46.0
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/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- "cdnVersion": "6.46.0-alpha.1"
8
+ "cdnVersion": "6.46.0"
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.46.0-alpha.1",
3
+ "version": "6.46.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
7
  "@babel/runtime": "^7.18.6",
8
- "@frontegg/types": "6.46.0-alpha.1"
8
+ "@frontegg/types": "6.46.0"
9
9
  },
10
10
  "browserslist": {
11
11
  "production": [
@@ -1312,7 +1312,7 @@ __webpack_require__.r(__webpack_exports__);
1312
1312
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1313
1313
  /* harmony export */ });
1314
1314
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1315
- "cdnVersion": "6.46.0-alpha.1"
1315
+ "cdnVersion": "6.46.0"
1316
1316
  });
1317
1317
 
1318
1318
  /***/ }),
@@ -17314,13 +17314,14 @@ Metadata._instances = {};
17314
17314
  __webpack_require__.r(__webpack_exports__);
17315
17315
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17316
17316
  /* harmony export */ "AccountPageFields": () => (/* binding */ AccountPageFields),
17317
+ /* harmony export */ "DomainRestrictionsTabFields": () => (/* binding */ DomainRestrictionsTabFields),
17317
17318
  /* harmony export */ "GeneralSettingsTabFields": () => (/* binding */ GeneralSettingsTabFields),
17318
- /* harmony export */ "LoginRestrictionsTabFields": () => (/* binding */ LoginRestrictionsTabFields),
17319
+ /* harmony export */ "InviteUserModalFields": () => (/* binding */ InviteUserModalFields),
17320
+ /* harmony export */ "IpRestrictionsTabFields": () => (/* binding */ IpRestrictionsTabFields),
17319
17321
  /* harmony export */ "PrivacyPageFields": () => (/* binding */ PrivacyPageFields),
17320
17322
  /* harmony export */ "ProfilePageFields": () => (/* binding */ ProfilePageFields),
17321
17323
  /* harmony export */ "SecurityPageTabs": () => (/* binding */ SecurityPageTabs),
17322
- /* harmony export */ "SessionManagementTabFields": () => (/* binding */ SessionManagementTabFields),
17323
- /* harmony export */ "SignupRestrictionsTabFields": () => (/* binding */ SignupRestrictionsTabFields)
17324
+ /* harmony export */ "SessionManagementTabFields": () => (/* binding */ SessionManagementTabFields)
17324
17325
  /* harmony export */ });
17325
17326
  let ProfilePageFields;
17326
17327
 
@@ -17338,6 +17339,13 @@ let PrivacyPageFields;
17338
17339
  PrivacyPageFields["Mfa"] = "mfa";
17339
17340
  })(PrivacyPageFields || (PrivacyPageFields = {}));
17340
17341
 
17342
+ let InviteUserModalFields;
17343
+
17344
+ (function (InviteUserModalFields) {
17345
+ InviteUserModalFields["Name"] = "name";
17346
+ InviteUserModalFields["PhoneNumber"] = "phoneNumber";
17347
+ })(InviteUserModalFields || (InviteUserModalFields = {}));
17348
+
17341
17349
  let AccountPageFields;
17342
17350
 
17343
17351
  (function (AccountPageFields) {
@@ -17353,8 +17361,8 @@ let SecurityPageTabs;
17353
17361
  (function (SecurityPageTabs) {
17354
17362
  SecurityPageTabs["SessionManagement"] = "sessionManagement";
17355
17363
  SecurityPageTabs["GeneralSettings"] = "generalSettings";
17356
- SecurityPageTabs["LoginRestrictions"] = "loginRestrictions";
17357
- SecurityPageTabs["SignupRestrictions"] = "signupRestrictions";
17364
+ SecurityPageTabs["IpRestrictions"] = "ipRestrictions";
17365
+ SecurityPageTabs["DomainRestrictions"] = "domainRestrictions";
17358
17366
  })(SecurityPageTabs || (SecurityPageTabs = {}));
17359
17367
 
17360
17368
  let SessionManagementTabFields;
@@ -17373,17 +17381,17 @@ let GeneralSettingsTabFields;
17373
17381
  GeneralSettingsTabFields["PasswordHistory"] = "passwordHistory";
17374
17382
  })(GeneralSettingsTabFields || (GeneralSettingsTabFields = {}));
17375
17383
 
17376
- let LoginRestrictionsTabFields;
17384
+ let IpRestrictionsTabFields;
17377
17385
 
17378
- (function (LoginRestrictionsTabFields) {
17379
- LoginRestrictionsTabFields["IpAddressRestrictions"] = "ipAddressRestrictions";
17380
- })(LoginRestrictionsTabFields || (LoginRestrictionsTabFields = {}));
17386
+ (function (IpRestrictionsTabFields) {
17387
+ IpRestrictionsTabFields["IpAddressRestrictions"] = "ipAddressRestrictions";
17388
+ })(IpRestrictionsTabFields || (IpRestrictionsTabFields = {}));
17381
17389
 
17382
- let SignupRestrictionsTabFields;
17390
+ let DomainRestrictionsTabFields;
17383
17391
 
17384
- (function (SignupRestrictionsTabFields) {
17385
- SignupRestrictionsTabFields["RestrictSignupByEmailDomain"] = "restrictSignupByEmailDomain";
17386
- })(SignupRestrictionsTabFields || (SignupRestrictionsTabFields = {}));
17392
+ (function (DomainRestrictionsTabFields) {
17393
+ DomainRestrictionsTabFields["RestrictSignupByEmailDomain"] = "restrictSignupByEmailDomain";
17394
+ })(DomainRestrictionsTabFields || (DomainRestrictionsTabFields = {}));
17387
17395
 
17388
17396
  /***/ }),
17389
17397
 
@@ -17397,13 +17405,14 @@ let SignupRestrictionsTabFields;
17397
17405
  __webpack_require__.r(__webpack_exports__);
17398
17406
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17399
17407
  /* harmony export */ "AccountPageFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.AccountPageFields),
17408
+ /* harmony export */ "DomainRestrictionsTabFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.DomainRestrictionsTabFields),
17400
17409
  /* harmony export */ "GeneralSettingsTabFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.GeneralSettingsTabFields),
17401
- /* harmony export */ "LoginRestrictionsTabFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.LoginRestrictionsTabFields),
17410
+ /* harmony export */ "InviteUserModalFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.InviteUserModalFields),
17411
+ /* harmony export */ "IpRestrictionsTabFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.IpRestrictionsTabFields),
17402
17412
  /* harmony export */ "PrivacyPageFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.PrivacyPageFields),
17403
17413
  /* harmony export */ "ProfilePageFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.ProfilePageFields),
17404
17414
  /* harmony export */ "SecurityPageTabs": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.SecurityPageTabs),
17405
17415
  /* harmony export */ "SessionManagementTabFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.SessionManagementTabFields),
17406
- /* harmony export */ "SignupRestrictionsTabFields": () => (/* reexport safe */ _fieldsAppearanceConsts__WEBPACK_IMPORTED_MODULE_0__.SignupRestrictionsTabFields),
17407
17416
  /* harmony export */ "fieldAppearance": () => (/* binding */ fieldAppearance),
17408
17417
  /* harmony export */ "tabAppearance": () => (/* binding */ tabAppearance)
17409
17418
  /* harmony export */ });
@@ -17435,20 +17444,21 @@ const tabAppearance = {
17435
17444
  __webpack_require__.r(__webpack_exports__);
17436
17445
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17437
17446
  /* harmony export */ "AccountPageFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.AccountPageFields),
17447
+ /* harmony export */ "DomainRestrictionsTabFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.DomainRestrictionsTabFields),
17438
17448
  /* harmony export */ "GeneralSettingsTabFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.GeneralSettingsTabFields),
17439
- /* harmony export */ "LoginRestrictionsTabFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.LoginRestrictionsTabFields),
17449
+ /* harmony export */ "InviteUserModalFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.InviteUserModalFields),
17450
+ /* harmony export */ "IpRestrictionsTabFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.IpRestrictionsTabFields),
17440
17451
  /* harmony export */ "Metadata": () => (/* reexport safe */ _Metadata__WEBPACK_IMPORTED_MODULE_1__.Metadata),
17441
17452
  /* harmony export */ "PrivacyPageFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.PrivacyPageFields),
17442
17453
  /* harmony export */ "ProfilePageFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.ProfilePageFields),
17443
17454
  /* harmony export */ "SecurityPageTabs": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.SecurityPageTabs),
17444
17455
  /* harmony export */ "SessionManagementTabFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.SessionManagementTabFields),
17445
- /* harmony export */ "SignupRestrictionsTabFields": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.SignupRestrictionsTabFields),
17446
17456
  /* harmony export */ "fieldAppearance": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.fieldAppearance),
17447
17457
  /* harmony export */ "tabAppearance": () => (/* reexport safe */ _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__.tabAppearance)
17448
17458
  /* harmony export */ });
17449
17459
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
17450
17460
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
17451
- /** @license Frontegg v6.46.0-alpha.1
17461
+ /** @license Frontegg v6.46.0
17452
17462
  *
17453
17463
  * This source code is licensed under the MIT license found in the
17454
17464
  * LICENSE file in the root directory of this source tree.
@@ -17692,6 +17702,9 @@ __webpack_require__.r(__webpack_exports__);
17692
17702
  /* harmony export */ "deleteSessionForUser": () => (/* binding */ deleteSessionForUser),
17693
17703
  /* harmony export */ "deleteTenantApiToken": () => (/* binding */ deleteTenantApiToken),
17694
17704
  /* harmony export */ "deleteUserApiToken": () => (/* binding */ deleteUserApiToken),
17705
+ /* harmony export */ "disableMFAAuthenticatorApp": () => (/* binding */ disableMFAAuthenticatorApp),
17706
+ /* harmony export */ "disableMFASMS": () => (/* binding */ disableMFASMS),
17707
+ /* harmony export */ "disableMFAWebAuthn": () => (/* binding */ disableMFAWebAuthn),
17695
17708
  /* harmony export */ "disableMfa": () => (/* binding */ disableMfa),
17696
17709
  /* harmony export */ "enrollMFAAuthenticatorAppForLogin": () => (/* binding */ enrollMFAAuthenticatorAppForLogin),
17697
17710
  /* harmony export */ "enrollMFASMSForLogin": () => (/* binding */ enrollMFASMSForLogin),
@@ -17712,6 +17725,7 @@ __webpack_require__.r(__webpack_exports__);
17712
17725
  /* harmony export */ "getIPRestrictions": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getIPRestrictions),
17713
17726
  /* harmony export */ "getIPRestrictionsConfig": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getIPRestrictionsConfig),
17714
17727
  /* harmony export */ "getLockoutPolicy": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getLockoutPolicy),
17728
+ /* harmony export */ "getMFADevices": () => (/* binding */ getMFADevices),
17715
17729
  /* harmony export */ "getMfaPolicy": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getMfaPolicy),
17716
17730
  /* harmony export */ "getOidcConfiguration": () => (/* binding */ getOidcConfiguration),
17717
17731
  /* harmony export */ "getPasswordConfigPolicy": () => (/* reexport safe */ _secutiry_poilicy__WEBPACK_IMPORTED_MODULE_2__.getPasswordConfigPolicy),
@@ -17743,6 +17757,8 @@ __webpack_require__.r(__webpack_exports__);
17743
17757
  /* harmony export */ "passwordlessPostLogin": () => (/* binding */ passwordlessPostLogin),
17744
17758
  /* harmony export */ "passwordlessPreLogin": () => (/* binding */ passwordlessPreLogin),
17745
17759
  /* harmony export */ "postLogin": () => (/* binding */ postLogin),
17760
+ /* harmony export */ "preDisableMFASMS": () => (/* binding */ preDisableMFASMS),
17761
+ /* harmony export */ "preDisableMFAWebAuthn": () => (/* binding */ preDisableMFAWebAuthn),
17746
17762
  /* harmony export */ "preEnrollMFAAuthenticatorAppForLogin": () => (/* binding */ preEnrollMFAAuthenticatorAppForLogin),
17747
17763
  /* harmony export */ "preEnrollMFASMSForLogin": () => (/* binding */ preEnrollMFASMSForLogin),
17748
17764
  /* harmony export */ "preEnrollMFAWebAuthnForLogin": () => (/* binding */ preEnrollMFAWebAuthnForLogin),
@@ -17937,6 +17953,24 @@ async function verifyMfa(body) {
17937
17953
  async function disableMfa(body) {
17938
17954
  return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/disable`, body);
17939
17955
  }
17956
+ async function disableMFAAuthenticatorApp(deviceId, body) {
17957
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/authenticator/${deviceId}/disable/verify`, body);
17958
+ }
17959
+ async function preDisableMFASMS(deviceId) {
17960
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/sms/${deviceId}/disable`);
17961
+ }
17962
+ async function disableMFASMS(deviceId, body) {
17963
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/sms/${deviceId}/disable/verify`, body);
17964
+ }
17965
+ async function preDisableMFAWebAuthn(deviceId) {
17966
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/webauthn/${deviceId}/disable`);
17967
+ }
17968
+ async function disableMFAWebAuthn(deviceId, body) {
17969
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/webauthn/${deviceId}/disable/verify`, body);
17970
+ }
17971
+ async function getMFADevices() {
17972
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.users.v1}/mfa/devices`);
17973
+ }
17940
17974
  async function preEnrollMFAAuthenticatorAppForLogin(body) {
17941
17975
  return (0,_fetch__WEBPACK_IMPORTED_MODULE_5__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_6__.urls.identity.auth.v1}/user/mfa/authenticator/enroll`, body);
17942
17976
  }
@@ -18279,14 +18313,6 @@ __webpack_require__.r(__webpack_exports__);
18279
18313
  /* harmony export */ });
18280
18314
  /* harmony import */ var _secutiry_poilicy_interfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./secutiry-poilicy/interfaces */ "../../node_modules/@frontegg/rest-api/auth/secutiry-poilicy/interfaces.js");
18281
18315
 
18282
- ;
18283
- ;
18284
- ;
18285
- ;
18286
- ;
18287
- ;
18288
- ;
18289
- ;
18290
18316
  let SecondaryAuthStrategy;
18291
18317
 
18292
18318
  (function (SecondaryAuthStrategy) {
@@ -19147,7 +19173,7 @@ __webpack_require__.r(__webpack_exports__);
19147
19173
  /* harmony import */ var _routers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./routers */ "../../node_modules/@frontegg/rest-api/routers.js");
19148
19174
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
19149
19175
  /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
19150
- /** @license Frontegg v3.0.36
19176
+ /** @license Frontegg v3.0.39
19151
19177
  *
19152
19178
  * This source code is licensed under the MIT license found in the
19153
19179
  * LICENSE file in the root directory of this source tree.