@frontegg/rest-api 3.0.71 → 3.0.73

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.71
1
+ /** @license Frontegg v3.0.73
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.
@@ -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.73
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.71",
3
+ "version": "3.0.73",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {