@frontegg/rest-api 3.0.139 → 3.0.141
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.d.ts +4 -0
- package/index.js +5 -2
- package/node/index.js +19 -2
- package/node/security-center/interfaces.js +1 -1
- package/package.json +1 -1
- package/security-center/interfaces.d.ts +2 -2
- package/security-center/interfaces.js +1 -1
package/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import * as impersonate from "./impersonate";
|
|
|
21
21
|
import * as groups from "./groups";
|
|
22
22
|
import * as users from "./users";
|
|
23
23
|
import * as entitlements from "./entitlements";
|
|
24
|
+
import * as securityCenter from "./security-center";
|
|
24
25
|
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
25
26
|
export * from "./interfaces";
|
|
26
27
|
export * from "./auth/interfaces";
|
|
@@ -46,6 +47,7 @@ export * from "./groups/interfaces";
|
|
|
46
47
|
export * from "./groups/enums";
|
|
47
48
|
export * from "./users/interfaces";
|
|
48
49
|
export * from "./entitlements/interfaces";
|
|
50
|
+
export * from "./security-center/interfaces";
|
|
49
51
|
declare const api: {
|
|
50
52
|
auth: typeof auth;
|
|
51
53
|
teams: typeof teams;
|
|
@@ -66,6 +68,7 @@ declare const api: {
|
|
|
66
68
|
groups: typeof groups;
|
|
67
69
|
users: typeof users;
|
|
68
70
|
entitlements: typeof entitlements;
|
|
71
|
+
securityCenter: typeof securityCenter;
|
|
69
72
|
};
|
|
70
73
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
|
|
71
74
|
declare const _default: {
|
|
@@ -98,6 +101,7 @@ declare const _default: {
|
|
|
98
101
|
groups: typeof groups;
|
|
99
102
|
users: typeof users;
|
|
100
103
|
entitlements: typeof entitlements;
|
|
104
|
+
securityCenter: typeof securityCenter;
|
|
101
105
|
};
|
|
102
106
|
FronteggApiError: typeof FronteggApiError;
|
|
103
107
|
AuthStrategyEnum: typeof auth.AuthStrategyEnum;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.141
|
|
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.
|
|
@@ -26,6 +26,7 @@ import * as impersonate from "./impersonate";
|
|
|
26
26
|
import * as groups from "./groups";
|
|
27
27
|
import * as users from "./users";
|
|
28
28
|
import * as entitlements from "./entitlements";
|
|
29
|
+
import * as securityCenter from "./security-center";
|
|
29
30
|
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
30
31
|
export * from "./interfaces";
|
|
31
32
|
export * from "./auth/interfaces";
|
|
@@ -51,6 +52,7 @@ export * from "./groups/interfaces";
|
|
|
51
52
|
export * from "./groups/enums";
|
|
52
53
|
export * from "./users/interfaces";
|
|
53
54
|
export * from "./entitlements/interfaces";
|
|
55
|
+
export * from "./security-center/interfaces";
|
|
54
56
|
const api = {
|
|
55
57
|
auth,
|
|
56
58
|
teams,
|
|
@@ -70,7 +72,8 @@ const api = {
|
|
|
70
72
|
impersonate,
|
|
71
73
|
groups,
|
|
72
74
|
users,
|
|
73
|
-
entitlements
|
|
75
|
+
entitlements,
|
|
76
|
+
securityCenter
|
|
74
77
|
};
|
|
75
78
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy };
|
|
76
79
|
export default {
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.141
|
|
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.
|
|
@@ -128,6 +128,8 @@ var users = _interopRequireWildcard(require("./users"));
|
|
|
128
128
|
|
|
129
129
|
var entitlements = _interopRequireWildcard(require("./entitlements"));
|
|
130
130
|
|
|
131
|
+
var securityCenter = _interopRequireWildcard(require("./security-center"));
|
|
132
|
+
|
|
131
133
|
var _ContextHolder = require("./ContextHolder");
|
|
132
134
|
|
|
133
135
|
var _interfaces = require("./interfaces");
|
|
@@ -466,6 +468,20 @@ Object.keys(_interfaces20).forEach(function (key) {
|
|
|
466
468
|
});
|
|
467
469
|
});
|
|
468
470
|
|
|
471
|
+
var _interfaces21 = require("./security-center/interfaces");
|
|
472
|
+
|
|
473
|
+
Object.keys(_interfaces21).forEach(function (key) {
|
|
474
|
+
if (key === "default" || key === "__esModule") return;
|
|
475
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
476
|
+
if (key in exports && exports[key] === _interfaces21[key]) return;
|
|
477
|
+
Object.defineProperty(exports, key, {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
get: function () {
|
|
480
|
+
return _interfaces21[key];
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
|
|
469
485
|
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); }
|
|
470
486
|
|
|
471
487
|
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; }
|
|
@@ -489,7 +505,8 @@ const api = {
|
|
|
489
505
|
impersonate,
|
|
490
506
|
groups,
|
|
491
507
|
users,
|
|
492
|
-
entitlements
|
|
508
|
+
entitlements,
|
|
509
|
+
securityCenter
|
|
493
510
|
};
|
|
494
511
|
exports.api = api;
|
|
495
512
|
var _default = {
|
|
@@ -22,7 +22,7 @@ exports.RecommendationCode = RecommendationCode;
|
|
|
22
22
|
RecommendationCode["SET_IDLE_SESSION"] = "SET_IDLE_SESSION";
|
|
23
23
|
RecommendationCode["ENABLE_IP_RESTRICTIONS"] = "ENABLE_IP_RESTRICTIONS";
|
|
24
24
|
RecommendationCode["CHANGE_IP_TO_ALLOWLIST"] = "CHANGE_IP_TO_ALLOWLIST";
|
|
25
|
-
RecommendationCode["
|
|
25
|
+
RecommendationCode["ENABLE_DOMAIN_RESTRICTIONS"] = "ENABLE_DOMAIN_RESTRICTIONS";
|
|
26
26
|
RecommendationCode["CHANGE_DOMAIN_TO_ALLOWLIST"] = "CHANGE_DOMAIN_TO_ALLOWLIST";
|
|
27
27
|
RecommendationCode["REMOVE_STALE_USERS"] = "REMOVE_STALE_USERS";
|
|
28
28
|
})(RecommendationCode || (exports.RecommendationCode = RecommendationCode = {}));
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@ export interface Recommendation {
|
|
|
2
2
|
code: RecommendationCode;
|
|
3
3
|
severity: RecommendationSeverity;
|
|
4
4
|
category: SecurityCategory;
|
|
5
|
-
actions?: RecommendationAction[];
|
|
6
5
|
metadata?: RecommendationMetadata;
|
|
7
6
|
}
|
|
8
7
|
export interface Insight {
|
|
9
8
|
code: InsightCode;
|
|
10
9
|
metadata?: InsightsMetadata;
|
|
10
|
+
category: SecurityCategory;
|
|
11
11
|
}
|
|
12
12
|
interface BaseRecommendationMetadata {
|
|
13
13
|
totalUsers?: number;
|
|
@@ -50,7 +50,7 @@ export declare enum RecommendationCode {
|
|
|
50
50
|
SET_IDLE_SESSION = "SET_IDLE_SESSION",
|
|
51
51
|
ENABLE_IP_RESTRICTIONS = "ENABLE_IP_RESTRICTIONS",
|
|
52
52
|
CHANGE_IP_TO_ALLOWLIST = "CHANGE_IP_TO_ALLOWLIST",
|
|
53
|
-
|
|
53
|
+
ENABLE_DOMAIN_RESTRICTIONS = "ENABLE_DOMAIN_RESTRICTIONS",
|
|
54
54
|
CHANGE_DOMAIN_TO_ALLOWLIST = "CHANGE_DOMAIN_TO_ALLOWLIST",
|
|
55
55
|
REMOVE_STALE_USERS = "REMOVE_STALE_USERS"
|
|
56
56
|
}
|
|
@@ -15,7 +15,7 @@ export let RecommendationCode;
|
|
|
15
15
|
RecommendationCode["SET_IDLE_SESSION"] = "SET_IDLE_SESSION";
|
|
16
16
|
RecommendationCode["ENABLE_IP_RESTRICTIONS"] = "ENABLE_IP_RESTRICTIONS";
|
|
17
17
|
RecommendationCode["CHANGE_IP_TO_ALLOWLIST"] = "CHANGE_IP_TO_ALLOWLIST";
|
|
18
|
-
RecommendationCode["
|
|
18
|
+
RecommendationCode["ENABLE_DOMAIN_RESTRICTIONS"] = "ENABLE_DOMAIN_RESTRICTIONS";
|
|
19
19
|
RecommendationCode["CHANGE_DOMAIN_TO_ALLOWLIST"] = "CHANGE_DOMAIN_TO_ALLOWLIST";
|
|
20
20
|
RecommendationCode["REMOVE_STALE_USERS"] = "REMOVE_STALE_USERS";
|
|
21
21
|
})(RecommendationCode || (RecommendationCode = {}));
|