@frontegg/rest-api 3.0.39 → 3.0.41

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from './secutiry-poilicy';
2
2
  export * from './enums';
3
3
  import { ISamlRolesGroup } from '../teams/interfaces';
4
- 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 } from './interfaces';
4
+ 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 } from "./interfaces";
5
5
  /*****************************************
6
6
  * Authentication
7
7
  *****************************************/
@@ -129,6 +129,39 @@ export declare function recoverMfaToken(body: IRecoverMFAToken): Promise<void>;
129
129
  * ``authorized user``
130
130
  */
131
131
  export declare function enrollMfa(): Promise<IEnrollMfaResponse>;
132
+ /**
133
+ * pre enroll Multi-Factor Auth Code to use in 3rd party apps like Google Authenticator.
134
+ * the server returns qrCode as png image in base64 format
135
+ *
136
+ * @throws exception if the user already have mfa-enabled
137
+ * ``authorized user``
138
+ */
139
+ export declare function preEnrollMFAAuthenticatorApp(): Promise<IPreEnrollMFAAuthenticatorAppResponse>;
140
+ /**
141
+ * enroll Multi-Factor Auth Code to use in 3rd party apps like Google Authenticator.
142
+ */
143
+ export declare function enrollMFAAuthenticatorApp(body: WithoutMFAToken<IEnrollMFAAuthenticatorApp>): Promise<void>;
144
+ /**
145
+ * pre enroll Multi-Factor SMS
146
+ * the server returns otcToken that should be sent to the enroll function with the code that was sent to
147
+ */
148
+ export declare function preEnrollMFASMS(): Promise<IPreEnrollMFASMSResponse>;
149
+ /**
150
+ * after pre enroll with SMS, enroll SMS function should be called
151
+ * with the otcToken and the code that has been sent to the phone number that was requested
152
+ */
153
+ export declare function enrollMFASMS(body: WithoutMFAToken<IEnrollMFASMS>): Promise<void>;
154
+ /**
155
+ * pre enroll Multi-Factor to use with WebAuthn
156
+ * the server returns attestation object
157
+ * the request phone number
158
+ */
159
+ export declare function preEnrollMFAWebAuthn(): Promise<IPreEnrollMFAWebAuthnResponse>;
160
+ /**
161
+ * after pre enroll with WebAuthn, enroll WebAuthn function should be called
162
+ * with the webauthnToken and the attestation object response
163
+ */
164
+ export declare function enrollMFAWebAuthn(body: WithoutMFAToken<IEnrollMFAWebAuthn>): Promise<void>;
132
165
  /**
133
166
  * after enrolling MFA QR code, verify function should be called
134
167
  * with the generated code in the Authenticator App
@@ -559,3 +592,7 @@ export declare function verifyNewDeviceSession(body: IVerifyNewWebAuthnDevice):
559
592
  * Get public vendor auth strategies public configuration
560
593
  */
561
594
  export declare function getVendorPublicAuthStrategiesConfig(): Promise<IAuthStrategiesConfig>;
595
+ /**
596
+ * Get vendor mfa strategies configuration
597
+ */
598
+ export declare function getMFAStrategiesConfig(): Promise<IMFAStrategiesResponse>;
package/auth/index.js CHANGED
@@ -128,6 +128,24 @@ export async function recoverMfaToken(body) {
128
128
  export async function enrollMfa() {
129
129
  return Post(`${urls.identity.users.v1}/mfa/enroll`);
130
130
  }
131
+ export async function preEnrollMFAAuthenticatorApp() {
132
+ return Post(`${urls.identity.users.v1}/mfa/authenticator/enroll`);
133
+ }
134
+ export async function enrollMFAAuthenticatorApp(body) {
135
+ return Post(`${urls.identity.users.v1}/mfa/authenticator/enroll/verify`, body);
136
+ }
137
+ export async function preEnrollMFASMS() {
138
+ return Post(`${urls.identity.users.v1}/mfa/sms/enroll`);
139
+ }
140
+ export async function enrollMFASMS(body) {
141
+ return Post(`${urls.identity.users.v1}/mfa/sms/enroll/verify`, body);
142
+ }
143
+ export async function preEnrollMFAWebAuthn() {
144
+ return Post(`${urls.identity.users.v1}/mfa/webauthn/enroll`);
145
+ }
146
+ export async function enrollMFAWebAuthn(body) {
147
+ return Post(`${urls.identity.users.v1}/mfa/webauthn/enroll/verify`, body);
148
+ }
131
149
  export async function verifyMfa(body) {
132
150
  return Post(`${urls.identity.users.v1}/mfa/enroll/verify`, body);
133
151
  }
@@ -474,4 +492,6 @@ export async function verifyNewDeviceSession(body) {
474
492
  export async function getVendorPublicAuthStrategiesConfig() {
475
493
  return Get(`${urls.identity.configurations.v1}/auth/strategies/public`);
476
494
  }
477
- ;
495
+ export async function getMFAStrategiesConfig() {
496
+ return Get(`${urls.identity.configurations.v1}/mfa/strategies`);
497
+ }
@@ -549,3 +549,14 @@ export interface IDisableMFAWebAuthn {
549
549
  webauthnToken?: string;
550
550
  options?: Omit<IWebAuthnPostLogin, "recaptchaToken" | "invitationToken">;
551
551
  }
552
+ export interface IPreEnrollMFAAuthenticatorApp {
553
+ qrCode: string;
554
+ }
555
+ export declare type WithoutMFAToken<T> = Omit<T | 'mfaToken', 'rememberDevice'>;
556
+ export interface IMFAStrategyResponse {
557
+ strategy: MFAStrategyEnum;
558
+ isActive: boolean;
559
+ }
560
+ export interface IMFAStrategiesResponse {
561
+ strategies: IMFAStrategyResponse[];
562
+ }
package/constants.d.ts CHANGED
@@ -184,4 +184,7 @@ export declare const urls: {
184
184
  featureFlags: {
185
185
  v1: string;
186
186
  };
187
+ directory: {
188
+ v1: string;
189
+ };
187
190
  };
package/constants.js CHANGED
@@ -183,5 +183,8 @@ export const urls = {
183
183
  },
184
184
  featureFlags: {
185
185
  v1: '/flags'
186
+ },
187
+ directory: {
188
+ v1: '/directory/resources/v1/configurations/scim2'
186
189
  }
187
190
  };
@@ -0,0 +1,17 @@
1
+ import { Scim2ConnectionConfigResponse, Scim2CreateConnectionConfigRequest, Scim2PatchConnectionConfigRequest } from './interfaces';
2
+ /**
3
+ * returns all scim2 configurations
4
+ *
5
+ * ``authorized user``
6
+ */
7
+ export declare function getConfigs(): Promise<Scim2ConnectionConfigResponse>;
8
+ /**
9
+ * update scim2 configuration
10
+ * ``authorized user``
11
+ */
12
+ export declare function updateConfiguration(id: string, body: Scim2PatchConnectionConfigRequest): Promise<Scim2ConnectionConfigResponse>;
13
+ /**
14
+ * create scim2 configuration
15
+ * ``authorized user``
16
+ */
17
+ export declare function createConfiguration(id: string, body: Scim2CreateConnectionConfigRequest): Promise<Scim2ConnectionConfigResponse>;
@@ -0,0 +1,11 @@
1
+ import { urls } from '../constants';
2
+ import { Get, Patch, Post } from '../fetch';
3
+ export async function getConfigs() {
4
+ return Get(`${urls.directory.v1}`);
5
+ }
6
+ export async function updateConfiguration(id, body) {
7
+ return Patch(`${urls.directory.v1}/${id}`, body);
8
+ }
9
+ export async function createConfiguration(id, body) {
10
+ return Post(`${urls.directory.v1}`, body);
11
+ }
@@ -0,0 +1,21 @@
1
+ export declare enum ScimConnectionSource {
2
+ FRONTEGG = "frontegg",
3
+ OKTA = "okta",
4
+ AZURE_AD = "azure-ad",
5
+ OTHER = "other"
6
+ }
7
+ export interface Scim2ConnectionConfigResponse {
8
+ id: string;
9
+ connectionName: string;
10
+ source: ScimConnectionSource;
11
+ syncToUserManagement: boolean;
12
+ lastSync?: Date | null;
13
+ }
14
+ export interface Scim2CreateConnectionConfigRequest {
15
+ source: ScimConnectionSource;
16
+ connectionName?: string;
17
+ syncToUserManagement?: boolean;
18
+ }
19
+ export interface Scim2PatchConnectionConfigRequest {
20
+ syncToUserManagement?: boolean;
21
+ }
@@ -0,0 +1,8 @@
1
+ export let ScimConnectionSource;
2
+
3
+ (function (ScimConnectionSource) {
4
+ ScimConnectionSource["FRONTEGG"] = "frontegg";
5
+ ScimConnectionSource["OKTA"] = "okta";
6
+ ScimConnectionSource["AZURE_AD"] = "azure-ad";
7
+ ScimConnectionSource["OTHER"] = "other";
8
+ })(ScimConnectionSource || (ScimConnectionSource = {}));
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/directory/index.js",
5
+ "types": "./index.d.ts"
6
+ }
package/index.d.ts CHANGED
@@ -32,6 +32,8 @@ export * from './sub-tenants/interfaces';
32
32
  export * from './routers';
33
33
  export * from './feature-flags';
34
34
  export * from './feature-flags/interfaces';
35
+ export * from './directory';
36
+ export * from './directory/interfaces';
35
37
  import { AuthStrategyEnum, SocialLoginProviders } from './auth';
36
38
  import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
37
39
  declare const api: {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.39
1
+ /** @license Frontegg v3.0.41
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.
@@ -37,6 +37,8 @@ export * from './sub-tenants/interfaces';
37
37
  export * from './routers';
38
38
  export * from './feature-flags';
39
39
  export * from './feature-flags/interfaces';
40
+ export * from './directory';
41
+ export * from './directory/interfaces';
40
42
  import { AuthStrategyEnum, SocialLoginProviders } from './auth';
41
43
  import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
42
44
  const api = {
@@ -28,6 +28,12 @@ var _exportNames = {
28
28
  loadPasswordConfig: true,
29
29
  recoverMfaToken: true,
30
30
  enrollMfa: true,
31
+ preEnrollMFAAuthenticatorApp: true,
32
+ enrollMFAAuthenticatorApp: true,
33
+ preEnrollMFASMS: true,
34
+ enrollMFASMS: true,
35
+ preEnrollMFAWebAuthn: true,
36
+ enrollMFAWebAuthn: true,
31
37
  verifyMfa: true,
32
38
  disableMfa: true,
33
39
  disableMFAAuthenticatorApp: true,
@@ -111,7 +117,8 @@ var _exportNames = {
111
117
  webAuthnPostLogin: true,
112
118
  webAuthnCreateNewDeviceSession: true,
113
119
  verifyNewDeviceSession: true,
114
- getVendorPublicAuthStrategiesConfig: true
120
+ getVendorPublicAuthStrategiesConfig: true,
121
+ getMFAStrategiesConfig: true
115
122
  };
116
123
  exports.acceptInvitation = acceptInvitation;
117
124
  exports.activateAccount = activateAccount;
@@ -136,8 +143,11 @@ exports.disableMFAAuthenticatorApp = disableMFAAuthenticatorApp;
136
143
  exports.disableMFASMS = disableMFASMS;
137
144
  exports.disableMFAWebAuthn = disableMFAWebAuthn;
138
145
  exports.disableMfa = disableMfa;
146
+ exports.enrollMFAAuthenticatorApp = enrollMFAAuthenticatorApp;
139
147
  exports.enrollMFAAuthenticatorAppForLogin = enrollMFAAuthenticatorAppForLogin;
148
+ exports.enrollMFASMS = enrollMFASMS;
140
149
  exports.enrollMFASMSForLogin = enrollMFASMSForLogin;
150
+ exports.enrollMFAWebAuthn = enrollMFAWebAuthn;
141
151
  exports.enrollMFAWebAuthnForLogin = enrollMFAWebAuthnForLogin;
142
152
  exports.enrollMfa = enrollMfa;
143
153
  exports.exchangeOAuthTokens = exchangeOAuthTokens;
@@ -149,6 +159,7 @@ exports.getActivateAccountStrategy = getActivateAccountStrategy;
149
159
  exports.getCurrentUserSession = getCurrentUserSession;
150
160
  exports.getCurrentUserSessions = getCurrentUserSessions;
151
161
  exports.getMFADevices = getMFADevices;
162
+ exports.getMFAStrategiesConfig = getMFAStrategiesConfig;
152
163
  exports.getOidcConfiguration = getOidcConfiguration;
153
164
  exports.getSSOConfigurations = getSSOConfigurations;
154
165
  exports.getSSODefaultRoles = getSSODefaultRoles;
@@ -178,8 +189,11 @@ exports.passwordlessPreLogin = passwordlessPreLogin;
178
189
  exports.postLogin = postLogin;
179
190
  exports.preDisableMFASMS = preDisableMFASMS;
180
191
  exports.preDisableMFAWebAuthn = preDisableMFAWebAuthn;
192
+ exports.preEnrollMFAAuthenticatorApp = preEnrollMFAAuthenticatorApp;
181
193
  exports.preEnrollMFAAuthenticatorAppForLogin = preEnrollMFAAuthenticatorAppForLogin;
194
+ exports.preEnrollMFASMS = preEnrollMFASMS;
182
195
  exports.preEnrollMFASMSForLogin = preEnrollMFASMSForLogin;
196
+ exports.preEnrollMFAWebAuthn = preEnrollMFAWebAuthn;
183
197
  exports.preEnrollMFAWebAuthnForLogin = preEnrollMFAWebAuthnForLogin;
184
198
  exports.preLogin = preLogin;
185
199
  exports.preLoginV2 = preLoginV2;
@@ -409,6 +423,30 @@ async function enrollMfa() {
409
423
  return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/enroll`);
410
424
  }
411
425
 
426
+ async function preEnrollMFAAuthenticatorApp() {
427
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/authenticator/enroll`);
428
+ }
429
+
430
+ async function enrollMFAAuthenticatorApp(body) {
431
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/authenticator/enroll/verify`, body);
432
+ }
433
+
434
+ async function preEnrollMFASMS() {
435
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/sms/enroll`);
436
+ }
437
+
438
+ async function enrollMFASMS(body) {
439
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/sms/enroll/verify`, body);
440
+ }
441
+
442
+ async function preEnrollMFAWebAuthn() {
443
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/webauthn/enroll`);
444
+ }
445
+
446
+ async function enrollMFAWebAuthn(body) {
447
+ return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/webauthn/enroll/verify`, body);
448
+ }
449
+
412
450
  async function verifyMfa(body) {
413
451
  return (0, _fetch.Post)(`${_constants.urls.identity.users.v1}/mfa/enroll/verify`, body);
414
452
  }
@@ -837,4 +875,6 @@ async function getVendorPublicAuthStrategiesConfig() {
837
875
  return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/auth/strategies/public`);
838
876
  }
839
877
 
840
- ;
878
+ async function getMFAStrategiesConfig() {
879
+ return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/mfa/strategies`);
880
+ }
package/node/constants.js CHANGED
@@ -189,6 +189,9 @@ const urls = {
189
189
  },
190
190
  featureFlags: {
191
191
  v1: '/flags'
192
+ },
193
+ directory: {
194
+ v1: '/directory/resources/v1/configurations/scim2'
192
195
  }
193
196
  };
194
197
  exports.urls = urls;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createConfiguration = createConfiguration;
7
+ exports.getConfigs = getConfigs;
8
+ exports.updateConfiguration = updateConfiguration;
9
+
10
+ var _constants = require("../constants");
11
+
12
+ var _fetch = require("../fetch");
13
+
14
+ async function getConfigs() {
15
+ return (0, _fetch.Get)(`${_constants.urls.directory.v1}`);
16
+ }
17
+
18
+ async function updateConfiguration(id, body) {
19
+ return (0, _fetch.Patch)(`${_constants.urls.directory.v1}/${id}`, body);
20
+ }
21
+
22
+ async function createConfiguration(id, body) {
23
+ return (0, _fetch.Post)(`${_constants.urls.directory.v1}`, body);
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ScimConnectionSource = void 0;
7
+ let ScimConnectionSource;
8
+ exports.ScimConnectionSource = ScimConnectionSource;
9
+
10
+ (function (ScimConnectionSource) {
11
+ ScimConnectionSource["FRONTEGG"] = "frontegg";
12
+ ScimConnectionSource["OKTA"] = "okta";
13
+ ScimConnectionSource["AZURE_AD"] = "azure-ad";
14
+ ScimConnectionSource["OTHER"] = "other";
15
+ })(ScimConnectionSource || (exports.ScimConnectionSource = ScimConnectionSource = {}));
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.39
1
+ /** @license Frontegg v3.0.41
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.
@@ -349,6 +349,34 @@ Object.keys(_interfaces15).forEach(function (key) {
349
349
  });
350
350
  });
351
351
 
352
+ var _directory = require("./directory");
353
+
354
+ Object.keys(_directory).forEach(function (key) {
355
+ if (key === "default" || key === "__esModule") return;
356
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
357
+ if (key in exports && exports[key] === _directory[key]) return;
358
+ Object.defineProperty(exports, key, {
359
+ enumerable: true,
360
+ get: function () {
361
+ return _directory[key];
362
+ }
363
+ });
364
+ });
365
+
366
+ var _interfaces16 = require("./directory/interfaces");
367
+
368
+ Object.keys(_interfaces16).forEach(function (key) {
369
+ if (key === "default" || key === "__esModule") return;
370
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
371
+ if (key in exports && exports[key] === _interfaces16[key]) return;
372
+ Object.defineProperty(exports, key, {
373
+ enumerable: true,
374
+ get: function () {
375
+ return _interfaces16[key];
376
+ }
377
+ });
378
+ });
379
+
352
380
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
353
381
 
354
382
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.39",
3
+ "version": "3.0.41",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {