@frontegg/rest-api 3.0.64 → 3.0.65

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.
@@ -9,7 +9,7 @@ export declare function getGlobalSecurityPolicy(): Promise<ISecurityPolicy>;
9
9
  */
10
10
  export declare function getMfaPolicy(): Promise<ISecurityPolicyMfa>;
11
11
  /**
12
- * Get Mfa configuration from security policy
12
+ * Get Vendor Mfa configuration from security policy
13
13
  */
14
14
  export declare function getVendorMfaPolicy(): Promise<ISecurityPolicyMfa>;
15
15
  /**
@@ -20,6 +20,10 @@ export declare function saveMfaPolicy(body: ISaveSecurityPolicyMfa): Promise<ISe
20
20
  * Get Lockout configuration from security policy
21
21
  */
22
22
  export declare function getLockoutPolicy(): Promise<ISecurityPolicyLockout>;
23
+ /**
24
+ * Get Vendor Lockout configuration from security policy
25
+ */
26
+ export declare function getVendorLockoutPolicy(): Promise<ISecurityPolicyLockout>;
23
27
  /**
24
28
  * Create/Update Lockout configuration from security policy
25
29
  */
@@ -32,6 +36,10 @@ export declare function getCaptchaPolicy(): Promise<ISecurityPolicyCaptcha | nul
32
36
  * Get Password History configuration from security policy
33
37
  */
34
38
  export declare function getPasswordHistoryPolicy(): Promise<ISecurityPolicyPasswordHistory>;
39
+ /**
40
+ * Get Vendor Password History configuration from security policy
41
+ */
42
+ export declare function getVendorPasswordHistoryPolicy(): Promise<ISecurityPolicyPasswordHistory>;
35
43
  /**
36
44
  * Create/Update Password History configuration from security policy
37
45
  */
@@ -19,6 +19,9 @@ export async function saveMfaPolicy(body) {
19
19
  export async function getLockoutPolicy() {
20
20
  return Get(`${urls.identity.configurations.v1}/lockout-policy`);
21
21
  }
22
+ export async function getVendorLockoutPolicy() {
23
+ return Get(`${urls.identity.configurations.v1}/lockout-policy/vendor`);
24
+ }
22
25
  export async function saveLockoutPolicy(body) {
23
26
  if (body.id) {
24
27
  return Patch(`${urls.identity.configurations.v1}/lockout-policy`, body);
@@ -36,6 +39,9 @@ export async function getCaptchaPolicy() {
36
39
  export async function getPasswordHistoryPolicy() {
37
40
  return Get(`${urls.identity.configurations.v1}/password-history-policy`);
38
41
  }
42
+ export async function getVendorPasswordHistoryPolicy() {
43
+ return Get(`${urls.identity.configurations.v1}/password-history-policy/vendor`);
44
+ }
39
45
  export async function savePasswordHistoryPolicy(body) {
40
46
  if (body.id) {
41
47
  return Patch(`${urls.identity.configurations.v1}/password-history-policy`, body);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.64
1
+ /** @license Frontegg v3.0.65
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.
@@ -18,7 +18,9 @@ exports.getLockoutPolicy = getLockoutPolicy;
18
18
  exports.getMfaPolicy = getMfaPolicy;
19
19
  exports.getPasswordConfigPolicy = getPasswordConfigPolicy;
20
20
  exports.getPasswordHistoryPolicy = getPasswordHistoryPolicy;
21
+ exports.getVendorLockoutPolicy = getVendorLockoutPolicy;
21
22
  exports.getVendorMfaPolicy = getVendorMfaPolicy;
23
+ exports.getVendorPasswordHistoryPolicy = getVendorPasswordHistoryPolicy;
22
24
  exports.saveLockoutPolicy = saveLockoutPolicy;
23
25
  exports.saveMfaPolicy = saveMfaPolicy;
24
26
  exports.savePasswordHistoryPolicy = savePasswordHistoryPolicy;
@@ -55,6 +57,10 @@ async function getLockoutPolicy() {
55
57
  return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/lockout-policy`);
56
58
  }
57
59
 
60
+ async function getVendorLockoutPolicy() {
61
+ return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/lockout-policy/vendor`);
62
+ }
63
+
58
64
  async function saveLockoutPolicy(body) {
59
65
  if (body.id) {
60
66
  return (0, _fetch.Patch)(`${_constants.urls.identity.configurations.v1}/lockout-policy`, body);
@@ -75,6 +81,10 @@ async function getPasswordHistoryPolicy() {
75
81
  return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/password-history-policy`);
76
82
  }
77
83
 
84
+ async function getVendorPasswordHistoryPolicy() {
85
+ return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/password-history-policy/vendor`);
86
+ }
87
+
78
88
  async function savePasswordHistoryPolicy(body) {
79
89
  if (body.id) {
80
90
  return (0, _fetch.Patch)(`${_constants.urls.identity.configurations.v1}/password-history-policy`, body);
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.64
1
+ /** @license Frontegg v3.0.65
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.64",
3
+ "version": "3.0.65",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {