@frontegg/rest-api 3.0.71 → 3.0.74

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/enums.d.ts CHANGED
@@ -14,3 +14,7 @@ export declare enum AuthStrategyEnum {
14
14
  NoLocalAuthentication = "NoLocalAuthentication",
15
15
  SmsCode = "SmsCode"
16
16
  }
17
+ export declare enum MachineToMachineAuthStrategy {
18
+ ClientCredentials = "ClientCredentials",
19
+ AccessToken = "AccessToken"
20
+ }
package/auth/enums.js CHANGED
@@ -18,4 +18,11 @@ export let AuthStrategyEnum;
18
18
  AuthStrategyEnum["Code"] = "Code";
19
19
  AuthStrategyEnum["NoLocalAuthentication"] = "NoLocalAuthentication";
20
20
  AuthStrategyEnum["SmsCode"] = "SmsCode";
21
- })(AuthStrategyEnum || (AuthStrategyEnum = {}));
21
+ })(AuthStrategyEnum || (AuthStrategyEnum = {}));
22
+
23
+ export let MachineToMachineAuthStrategy;
24
+
25
+ (function (MachineToMachineAuthStrategy) {
26
+ MachineToMachineAuthStrategy["ClientCredentials"] = "ClientCredentials";
27
+ MachineToMachineAuthStrategy["AccessToken"] = "AccessToken";
28
+ })(MachineToMachineAuthStrategy || (MachineToMachineAuthStrategy = {}));
@@ -1,5 +1,5 @@
1
1
  import { ITenantsResponse, IUserProfile } from "..";
2
- import { AuthStrategyEnum, SocialLoginProviders } from "./enums";
2
+ import { AuthStrategyEnum, MachineToMachineAuthStrategy, SocialLoginProviders } from "./enums";
3
3
  import { ISamlRolesGroup } from "../teams/interfaces";
4
4
  export * from "./secutiry-poilicy/interfaces";
5
5
  export declare type IPreLogin = {
@@ -179,6 +179,7 @@ export interface IVendorConfig {
179
179
  apiTokensEnabled: boolean;
180
180
  forcePermissions: boolean;
181
181
  authStrategy: AuthStrategyEnum;
182
+ machineToMachineAuthStrategy: MachineToMachineAuthStrategy;
182
183
  }
183
184
  export interface ISignUpUser {
184
185
  email: string;
package/index.d.ts CHANGED
@@ -1,44 +1,44 @@
1
- import * as auth from './auth';
2
- import * as teams from './teams';
3
- import * as metadata from './metadata';
4
- import * as reports from './reports';
5
- import * as notifications from './notifications';
6
- import * as audits from './audits';
7
- import * as fetch from './fetch';
8
- import * as connectivity from './connectivity';
9
- import * as tenants from './tenants';
10
- import * as accountSettings from './account-settings';
11
- import * as roles from './roles';
12
- import * as subscriptions from './subscriptions';
13
- import { FronteggApiError } from './error';
14
- import * as vendor from './vendor';
15
- import * as subTenants from './sub-tenants';
16
- import * as featureFlags from './feature-flags';
17
- import * as directory from './directory';
18
- import * as impersonate from './impersonate';
19
- import { ContextHolder, FronteggContext } from './ContextHolder';
20
- export * from './interfaces';
21
- export * from './auth/interfaces';
22
- export * from './teams/interfaces';
23
- export * from './metadata/interfaces';
24
- export * from './reports/interfaces';
25
- export * from './connectivity/interfaces';
26
- export * from './notifications/interfaces';
27
- export * from './audits/interfaces';
28
- export * from './tenants/interfaces';
29
- export * from './account-settings/interfaces';
30
- export * from './roles/interfaces';
31
- export * from './subscriptions/interfaces';
32
- export * from './vendor/interfaces';
33
- export * from './sub-tenants/interfaces';
34
- export * from './routers';
35
- export * from './feature-flags';
36
- export * from './feature-flags/interfaces';
37
- export * from './directory';
38
- export * from './directory/interfaces';
39
- export * from './impersonate/interfaces';
40
- import { AuthStrategyEnum, SocialLoginProviders } from './auth';
41
- import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
1
+ import * as auth from "./auth";
2
+ import * as teams from "./teams";
3
+ import * as metadata from "./metadata";
4
+ import * as reports from "./reports";
5
+ import * as notifications from "./notifications";
6
+ import * as audits from "./audits";
7
+ import * as fetch from "./fetch";
8
+ import * as connectivity from "./connectivity";
9
+ import * as tenants from "./tenants";
10
+ import * as accountSettings from "./account-settings";
11
+ import * as roles from "./roles";
12
+ import * as subscriptions from "./subscriptions";
13
+ import { FronteggApiError } from "./error";
14
+ import * as vendor from "./vendor";
15
+ import * as subTenants from "./sub-tenants";
16
+ import * as featureFlags from "./feature-flags";
17
+ import * as directory from "./directory";
18
+ import * as impersonate from "./impersonate";
19
+ import { ContextHolder, FronteggContext } from "./ContextHolder";
20
+ export * from "./interfaces";
21
+ export * from "./auth/interfaces";
22
+ export * from "./teams/interfaces";
23
+ export * from "./metadata/interfaces";
24
+ export * from "./reports/interfaces";
25
+ export * from "./connectivity/interfaces";
26
+ export * from "./notifications/interfaces";
27
+ export * from "./audits/interfaces";
28
+ export * from "./tenants/interfaces";
29
+ export * from "./account-settings/interfaces";
30
+ export * from "./roles/interfaces";
31
+ export * from "./subscriptions/interfaces";
32
+ export * from "./vendor/interfaces";
33
+ export * from "./sub-tenants/interfaces";
34
+ export * from "./routers";
35
+ export * from "./feature-flags";
36
+ export * from "./feature-flags/interfaces";
37
+ export * from "./directory";
38
+ export * from "./directory/interfaces";
39
+ export * from "./impersonate/interfaces";
40
+ import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
41
+ import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
42
42
  declare const api: {
43
43
  auth: typeof auth;
44
44
  teams: typeof teams;
@@ -57,7 +57,7 @@ declare const api: {
57
57
  directory: typeof directory;
58
58
  impersonate: typeof impersonate;
59
59
  };
60
- export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, };
60
+ export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
61
61
  declare const _default: {
62
62
  fetch: typeof fetch;
63
63
  ContextHolder: typeof ContextHolder;
@@ -88,6 +88,7 @@ declare const _default: {
88
88
  };
89
89
  FronteggApiError: typeof FronteggApiError;
90
90
  AuthStrategyEnum: typeof auth.AuthStrategyEnum;
91
+ MachineToMachineAuthStrategy: typeof auth.MachineToMachineAuthStrategy;
91
92
  SocialLoginProviders: typeof auth.SocialLoginProviders;
92
93
  ISubscriptionCancellationPolicy: typeof subscriptions.ISubscriptionCancellationPolicy;
93
94
  ISubscriptionStatus: typeof subscriptions.ISubscriptionStatus;
package/index.js CHANGED
@@ -1,49 +1,49 @@
1
- /** @license Frontegg v3.0.71
1
+ /** @license Frontegg v3.0.74
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.
5
5
  */
6
- import * as auth from './auth';
7
- import * as teams from './teams';
8
- import * as metadata from './metadata';
9
- import * as reports from './reports';
10
- import * as notifications from './notifications';
11
- import * as audits from './audits';
12
- import * as fetch from './fetch';
13
- import * as connectivity from './connectivity';
14
- import * as tenants from './tenants';
15
- import * as accountSettings from './account-settings';
16
- import * as roles from './roles';
17
- import * as subscriptions from './subscriptions';
18
- import { FronteggApiError } from './error';
19
- import * as vendor from './vendor';
20
- import * as subTenants from './sub-tenants';
21
- import * as featureFlags from './feature-flags';
22
- import * as directory from './directory';
23
- import * as impersonate from './impersonate';
24
- import { ContextHolder, FronteggContext } from './ContextHolder';
25
- export * from './interfaces';
26
- export * from './auth/interfaces';
27
- export * from './teams/interfaces';
28
- export * from './metadata/interfaces';
29
- export * from './reports/interfaces';
30
- export * from './connectivity/interfaces';
31
- export * from './notifications/interfaces';
32
- export * from './audits/interfaces';
33
- export * from './tenants/interfaces';
34
- export * from './account-settings/interfaces';
35
- export * from './roles/interfaces';
36
- export * from './subscriptions/interfaces';
37
- export * from './vendor/interfaces';
38
- export * from './sub-tenants/interfaces';
39
- export * from './routers';
40
- export * from './feature-flags';
41
- export * from './feature-flags/interfaces';
42
- export * from './directory';
43
- export * from './directory/interfaces';
44
- export * from './impersonate/interfaces';
45
- import { AuthStrategyEnum, SocialLoginProviders } from './auth';
46
- import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
6
+ import * as auth from "./auth";
7
+ import * as teams from "./teams";
8
+ import * as metadata from "./metadata";
9
+ import * as reports from "./reports";
10
+ import * as notifications from "./notifications";
11
+ import * as audits from "./audits";
12
+ import * as fetch from "./fetch";
13
+ import * as connectivity from "./connectivity";
14
+ import * as tenants from "./tenants";
15
+ import * as accountSettings from "./account-settings";
16
+ import * as roles from "./roles";
17
+ import * as subscriptions from "./subscriptions";
18
+ import { FronteggApiError } from "./error";
19
+ import * as vendor from "./vendor";
20
+ import * as subTenants from "./sub-tenants";
21
+ import * as featureFlags from "./feature-flags";
22
+ import * as directory from "./directory";
23
+ import * as impersonate from "./impersonate";
24
+ import { ContextHolder, FronteggContext } from "./ContextHolder";
25
+ export * from "./interfaces";
26
+ export * from "./auth/interfaces";
27
+ export * from "./teams/interfaces";
28
+ export * from "./metadata/interfaces";
29
+ export * from "./reports/interfaces";
30
+ export * from "./connectivity/interfaces";
31
+ export * from "./notifications/interfaces";
32
+ export * from "./audits/interfaces";
33
+ export * from "./tenants/interfaces";
34
+ export * from "./account-settings/interfaces";
35
+ export * from "./roles/interfaces";
36
+ export * from "./subscriptions/interfaces";
37
+ export * from "./vendor/interfaces";
38
+ export * from "./sub-tenants/interfaces";
39
+ export * from "./routers";
40
+ export * from "./feature-flags";
41
+ export * from "./feature-flags/interfaces";
42
+ export * from "./directory";
43
+ export * from "./directory/interfaces";
44
+ export * from "./impersonate/interfaces";
45
+ import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
46
+ import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
47
47
  const api = {
48
48
  auth,
49
49
  teams,
@@ -62,7 +62,7 @@ const api = {
62
62
  directory,
63
63
  impersonate
64
64
  };
65
- export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType };
65
+ export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy };
66
66
  export default {
67
67
  fetch,
68
68
  ContextHolder,
@@ -70,6 +70,7 @@ export default {
70
70
  api,
71
71
  FronteggApiError,
72
72
  AuthStrategyEnum,
73
+ MachineToMachineAuthStrategy,
73
74
  SocialLoginProviders,
74
75
  ISubscriptionCancellationPolicy,
75
76
  ISubscriptionStatus,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SocialLoginProviders = exports.AuthStrategyEnum = void 0;
6
+ exports.SocialLoginProviders = exports.MachineToMachineAuthStrategy = exports.AuthStrategyEnum = void 0;
7
7
  let SocialLoginProviders;
8
8
  exports.SocialLoginProviders = SocialLoginProviders;
9
9
 
@@ -26,4 +26,12 @@ exports.AuthStrategyEnum = AuthStrategyEnum;
26
26
  AuthStrategyEnum["Code"] = "Code";
27
27
  AuthStrategyEnum["NoLocalAuthentication"] = "NoLocalAuthentication";
28
28
  AuthStrategyEnum["SmsCode"] = "SmsCode";
29
- })(AuthStrategyEnum || (exports.AuthStrategyEnum = AuthStrategyEnum = {}));
29
+ })(AuthStrategyEnum || (exports.AuthStrategyEnum = AuthStrategyEnum = {}));
30
+
31
+ let MachineToMachineAuthStrategy;
32
+ exports.MachineToMachineAuthStrategy = MachineToMachineAuthStrategy;
33
+
34
+ (function (MachineToMachineAuthStrategy) {
35
+ MachineToMachineAuthStrategy["ClientCredentials"] = "ClientCredentials";
36
+ MachineToMachineAuthStrategy["AccessToken"] = "AccessToken";
37
+ })(MachineToMachineAuthStrategy || (exports.MachineToMachineAuthStrategy = MachineToMachineAuthStrategy = {}));
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.71
1
+ /** @license Frontegg v3.0.74
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.
@@ -12,6 +12,7 @@ var _exportNames = {
12
12
  api: true,
13
13
  AuthStrategyEnum: true,
14
14
  SocialLoginProviders: true,
15
+ MachineToMachineAuthStrategy: true,
15
16
  fetch: true,
16
17
  ISubscriptionCancellationPolicy: true,
17
18
  ISubscriptionStatus: true,
@@ -57,6 +58,12 @@ Object.defineProperty(exports, "ISubscriptionStatus", {
57
58
  return subscriptions.ISubscriptionStatus;
58
59
  }
59
60
  });
61
+ Object.defineProperty(exports, "MachineToMachineAuthStrategy", {
62
+ enumerable: true,
63
+ get: function () {
64
+ return auth.MachineToMachineAuthStrategy;
65
+ }
66
+ });
60
67
  Object.defineProperty(exports, "PaymentMethodType", {
61
68
  enumerable: true,
62
69
  get: function () {
@@ -423,6 +430,7 @@ var _default = {
423
430
  api,
424
431
  FronteggApiError: _error.FronteggApiError,
425
432
  AuthStrategyEnum: auth.AuthStrategyEnum,
433
+ MachineToMachineAuthStrategy: auth.MachineToMachineAuthStrategy,
426
434
  SocialLoginProviders: auth.SocialLoginProviders,
427
435
  ISubscriptionCancellationPolicy: subscriptions.ISubscriptionCancellationPolicy,
428
436
  ISubscriptionStatus: subscriptions.ISubscriptionStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.71",
3
+ "version": "3.0.74",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {