@frontegg/rest-api 7.49.0 → 7.50.0-alpha.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISaveSecurityPolicyMfa, ISaveSecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyLockout, ISecurityPolicyCaptcha, ISecurityPolicyPasswordHistory, ISaveSecurityPolicyPasswordHistory, ISecurityPolicyPasswordConfig, ISecurityPolicy, DomainRestriction, DomainRestrictionConfig, CreateDomainRestriction, UpdateDomainRestrictionsConfig, IpRestriction, IPRestrictionsConfig, BulkCreateIpRestriction, CreateIpRestriction, GetIPRestrictionsParams, IPValidResponse } from './interfaces';
|
|
1
|
+
import { ISaveSecurityPolicyMfa, ISaveSecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyLockout, ISecurityPolicyCaptcha, ISecurityPolicyPasswordHistory, ISaveSecurityPolicyPasswordHistory, ISecurityPolicyPasswordRotation, ISaveSecurityPolicyPasswordRotation, ISecurityPolicyPasswordConfig, ISecurityPolicy, DomainRestriction, DomainRestrictionConfig, CreateDomainRestriction, UpdateDomainRestrictionsConfig, IpRestriction, IPRestrictionsConfig, BulkCreateIpRestriction, CreateIpRestriction, GetIPRestrictionsParams, IPValidResponse } from './interfaces';
|
|
2
2
|
import { FronteggPaginationResult } from '../../interfaces';
|
|
3
3
|
import { BaseApiClient } from '../../BaseApiClient';
|
|
4
4
|
export declare class SecurityPolicyApi extends BaseApiClient {
|
|
@@ -25,6 +25,12 @@ export declare class SecurityPolicyApi extends BaseApiClient {
|
|
|
25
25
|
getVendorPasswordHistoryPolicy: () => Promise<ISecurityPolicyPasswordHistory>;
|
|
26
26
|
/** Create/Update Password History configuration from security policy */
|
|
27
27
|
savePasswordHistoryPolicy: (body: ISaveSecurityPolicyPasswordHistory) => Promise<ISecurityPolicyPasswordHistory>;
|
|
28
|
+
/** Get Password Rotation configuration from security policy */
|
|
29
|
+
getPasswordRotationPolicy: () => Promise<ISecurityPolicyPasswordRotation>;
|
|
30
|
+
/** Get Vendor Password Rotation configuration from security policy */
|
|
31
|
+
getVendorPasswordRotationPolicy: () => Promise<ISecurityPolicyPasswordRotation>;
|
|
32
|
+
/** Create/Update Password Rotation configuration from security policy */
|
|
33
|
+
savePasswordRotationPolicy: (body: ISaveSecurityPolicyPasswordRotation) => Promise<ISecurityPolicyPasswordRotation>;
|
|
28
34
|
/** Load vendor password configuration */
|
|
29
35
|
getPasswordConfigPolicy: () => Promise<ISecurityPolicyPasswordConfig>;
|
|
30
36
|
/** Get domain restrictions for tenant */
|
|
@@ -52,6 +52,15 @@ export class SecurityPolicyApi extends BaseApiClient {
|
|
|
52
52
|
return this.post(`${urls.identity.configurations.v1}/password-history-policy`, body);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
+
this.getPasswordRotationPolicy = async () => {
|
|
56
|
+
return this.get(`${urls.identity.configurations.v1}/password-rotation`);
|
|
57
|
+
};
|
|
58
|
+
this.getVendorPasswordRotationPolicy = async () => {
|
|
59
|
+
return this.get(`${urls.identity.configurations.v1}/password-rotation/vendor`);
|
|
60
|
+
};
|
|
61
|
+
this.savePasswordRotationPolicy = async body => {
|
|
62
|
+
return this.post(`${urls.identity.configurations.v1}/password-rotation`, body);
|
|
63
|
+
};
|
|
55
64
|
this.getPasswordConfigPolicy = async () => {
|
|
56
65
|
return this.get(`${urls.identity.configurations.v1}/password`);
|
|
57
66
|
};
|
|
@@ -55,11 +55,23 @@ export interface ISecurityPolicyPasswordHistory {
|
|
|
55
55
|
createdAt: Date;
|
|
56
56
|
updatedAt: Date;
|
|
57
57
|
}
|
|
58
|
+
export interface ISecurityPolicyPasswordRotation {
|
|
59
|
+
isActive: boolean;
|
|
60
|
+
rotationPeriod: number;
|
|
61
|
+
notificationPeriod: number;
|
|
62
|
+
vendorRotationPeriod: number;
|
|
63
|
+
}
|
|
58
64
|
export interface ISaveSecurityPolicyPasswordHistory {
|
|
59
65
|
id?: string;
|
|
60
66
|
enabled: boolean;
|
|
61
67
|
historySize: number;
|
|
62
68
|
}
|
|
69
|
+
export interface ISaveSecurityPolicyPasswordRotation {
|
|
70
|
+
isActive: boolean;
|
|
71
|
+
rotationPeriod: number;
|
|
72
|
+
notificationPeriod: number;
|
|
73
|
+
vendorRotationPeriod: number;
|
|
74
|
+
}
|
|
63
75
|
export interface TestConfig {
|
|
64
76
|
allowPassphrases: boolean;
|
|
65
77
|
maxLength: number;
|
package/index.js
CHANGED
|
@@ -58,6 +58,15 @@ class SecurityPolicyApi extends _BaseApiClient.BaseApiClient {
|
|
|
58
58
|
return this.post(`${_constants.urls.identity.configurations.v1}/password-history-policy`, body);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
this.getPasswordRotationPolicy = async () => {
|
|
62
|
+
return this.get(`${_constants.urls.identity.configurations.v1}/password-rotation`);
|
|
63
|
+
};
|
|
64
|
+
this.getVendorPasswordRotationPolicy = async () => {
|
|
65
|
+
return this.get(`${_constants.urls.identity.configurations.v1}/password-rotation/vendor`);
|
|
66
|
+
};
|
|
67
|
+
this.savePasswordRotationPolicy = async body => {
|
|
68
|
+
return this.post(`${_constants.urls.identity.configurations.v1}/password-rotation`, body);
|
|
69
|
+
};
|
|
61
70
|
this.getPasswordConfigPolicy = async () => {
|
|
62
71
|
return this.get(`${_constants.urls.identity.configurations.v1}/password`);
|
|
63
72
|
};
|
package/node/index.js
CHANGED