Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
3
Versions
621
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 3.1.74-alpha.9437859720 to 3.1.74-alpha.9437937621

54

auth/index.d.ts

@@ -9,5 +9,7 @@ export * from "./secutiry-poilicy";

import { BaseApiClient } from '../BaseApiClient';
import { SecurityPolicyApi } from './secutiry-poilicy';
export declare class AuthenticationApi extends BaseApiClient {
private tenantsApi;
private entitlementsApi;
securityPolicy: SecurityPolicyApi;
constructor(appName: string);

@@ -769,4 +771,56 @@ generateLoginResponse: (loginResponse: ILoginResponse) => Promise<ILoginResponse>;

generateStepupSession: (body: GenerateStepUpRequest) => Promise<GenerateStepUpResponse | ILoginResponseV3>;
/** @deprecated use api.auth.securityPolicy.getGlobalSecurityPolicy() or api.securityPolicy.getGlobalSecurityPolicy() instead */
getGlobalSecurityPolicy: () => Promise<import("./interfaces").ISecurityPolicy>;
/** @deprecated use api.auth.securityPolicy.getMfaPolicy() or api.securityPolicy.getMfaPolicy() instead */
getMfaPolicy: () => Promise<import("./interfaces").ISecurityPolicyMfa>;
/** @deprecated use api.auth.securityPolicy.getVendorMfaPolicy() or api.securityPolicy.getVendorMfaPolicy() instead */
getVendorMfaPolicy: () => Promise<import("./interfaces").ISecurityPolicyMfa>;
/** @deprecated use api.auth.securityPolicy.saveMfaPolicy() or api.securityPolicy.saveMfaPolicy() instead */
saveMfaPolicy: (body: import("./interfaces").ISaveSecurityPolicyMfa) => Promise<import("./interfaces").ISecurityPolicyMfa>;
/** @deprecated use api.auth.securityPolicy.getLockoutPolicy() or api.securityPolicy.getLockoutPolicy() instead */
getLockoutPolicy: () => Promise<import("./interfaces").ISecurityPolicyLockout>;
/** @deprecated use api.auth.securityPolicy.getVendorLockoutPolicy() or api.securityPolicy.getVendorLockoutPolicy() instead */
getVendorLockoutPolicy: () => Promise<import("./interfaces").ISecurityPolicyLockout>;
/** @deprecated use api.auth.securityPolicy.saveLockoutPolicy() or api.securityPolicy.saveLockoutPolicy() instead */
saveLockoutPolicy: (body: import("./interfaces").ISaveSecurityPolicyLockout) => Promise<import("./interfaces").ISecurityPolicyLockout>;
/** @deprecated use api.auth.securityPolicy.getCaptchaPolicy() or api.securityPolicy.getCaptchaPolicy() instead */
getCaptchaPolicy: () => Promise<import("./interfaces").ISecurityPolicyCaptcha | null>;
/** @deprecated use api.auth.securityPolicy.getPasswordHistoryPolicy() or api.securityPolicy.getPasswordHistoryPolicy() instead */
getPasswordHistoryPolicy: () => Promise<import("./interfaces").ISecurityPolicyPasswordHistory>;
/** @deprecated use api.auth.securityPolicy.getVendorPasswordHistoryPolicy() or api.securityPolicy.getVendorPasswordHistoryPolicy() instead */
getVendorPasswordHistoryPolicy: () => Promise<import("./interfaces").ISecurityPolicyPasswordHistory>;
/** @deprecated use api.auth.securityPolicy.savePasswordHistoryPolicy() or api.securityPolicy.savePasswordHistoryPolicy() instead */
savePasswordHistoryPolicy: (body: import("./interfaces").ISaveSecurityPolicyPasswordHistory) => Promise<import("./interfaces").ISecurityPolicyPasswordHistory>;
/** @deprecated use api.auth.securityPolicy.getPasswordConfigPolicy() or api.securityPolicy.getPasswordConfigPolicy() instead */
getPasswordConfigPolicy: () => Promise<Partial<TestConfig>>;
/** @deprecated use api.auth.securityPolicy.getDomainRestrictions() or api.securityPolicy.getDomainRestrictions() instead */
getDomainRestrictions: () => Promise<{
items: import("./interfaces").DomainRestriction[];
}>;
/** @deprecated use api.auth.securityPolicy.getDomainRestrictionsConfig() or api.securityPolicy.getDomainRestrictionsConfig() instead */
getDomainRestrictionsConfig: () => Promise<import("./interfaces").DomainRestrictionConfig>;
/** @deprecated use api.auth.securityPolicy.createDomainRestriction() or api.securityPolicy.createDomainRestriction() instead */
createDomainRestriction: (body: import("./interfaces").CreateDomainRestriction) => Promise<import("./interfaces").DomainRestriction>;
/** @deprecated use api.auth.securityPolicy.updateDomainRestrictionConfig() or api.securityPolicy.updateDomainRestrictionConfig() instead */
updateDomainRestrictionConfig: (body: import("./interfaces").UpdateDomainRestrictionsConfig) => Promise<import("./interfaces").DomainRestrictionConfig>;
/** @deprecated use api.auth.securityPolicy.deleteDomainRestriction() or api.securityPolicy.deleteDomainRestriction() instead */
deleteDomainRestriction: (id: string) => Promise<void>;
/** @deprecated use api.auth.securityPolicy.getIPRestrictions() or api.securityPolicy.getIPRestrictions() instead */
getIPRestrictions: (params: import("./interfaces").GetIPRestrictionsParams) => Promise<import("..").FronteggPaginationResult<import("./interfaces").IpRestriction[]>>;
/** @deprecated use api.auth.securityPolicy.getIPRestrictionsConfig() or api.securityPolicy.getIPRestrictionsConfig() instead */
getIPRestrictionsConfig: () => Promise<import("./interfaces").IPRestrictionsConfig>;
/** @deprecated use api.auth.securityPolicy.createIPRestriction() or api.securityPolicy.createIPRestriction() instead */
createIPRestriction: (body: import("./interfaces").CreateIpRestriction) => Promise<void>;
/** @deprecated use api.auth.securityPolicy.bulkCreateIPRestriction() or api.securityPolicy.bulkCreateIPRestriction() instead */
bulkCreateIPRestriction: (body: import("./interfaces").BulkCreateIpRestriction) => Promise<void>;
/** @deprecated use api.auth.securityPolicy.updateIPRestrictionConfig() or api.securityPolicy.updateIPRestrictionConfig() instead */
updateIPRestrictionConfig: (body: import("./interfaces").IPRestrictionsConfig) => Promise<void>;
/** @deprecated use api.auth.securityPolicy.deleteIPRestriction() or api.securityPolicy.deleteIPRestriction() instead */
deleteIPRestriction: (id: string) => Promise<void>;
/** @deprecated use api.auth.securityPolicy.testCurrentIp() or api.securityPolicy.testCurrentIp() instead */
testCurrentIp: () => Promise<import("./interfaces").IPValidResponse>;
/** @deprecated use api.auth.securityPolicy.testCurrentIpInAllowList() or api.securityPolicy.testCurrentIpInAllowList() instead */
testCurrentIpInAllowList: () => Promise<import("./interfaces").IPValidResponse>;
}
declare const _default: AuthenticationApi;
export default _default;

@@ -20,2 +20,3 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";

import { ContextHolder } from '../ContextHolder';
import { SecurityPolicyApi } from './secutiry-poilicy';
export class AuthenticationApi extends BaseApiClient {

@@ -26,2 +27,3 @@ constructor(appName) {

this.entitlementsApi = new EntitlementsApi(this.appName);
this.securityPolicy = new SecurityPolicyApi(this.appName);

@@ -906,2 +908,28 @@ this.generateLoginResponse = async loginResponse => {

};
this.getGlobalSecurityPolicy = this.securityPolicy.getGlobalSecurityPolicy.bind(this.securityPolicy);
this.getMfaPolicy = this.securityPolicy.getMfaPolicy.bind(this.securityPolicy);
this.getVendorMfaPolicy = this.securityPolicy.getVendorMfaPolicy.bind(this.securityPolicy);
this.saveMfaPolicy = this.securityPolicy.saveMfaPolicy.bind(this.securityPolicy);
this.getLockoutPolicy = this.securityPolicy.getLockoutPolicy.bind(this.securityPolicy);
this.getVendorLockoutPolicy = this.securityPolicy.getVendorLockoutPolicy.bind(this.securityPolicy);
this.saveLockoutPolicy = this.securityPolicy.saveLockoutPolicy.bind(this.securityPolicy);
this.getCaptchaPolicy = this.securityPolicy.getCaptchaPolicy.bind(this.securityPolicy);
this.getPasswordHistoryPolicy = this.securityPolicy.getPasswordHistoryPolicy.bind(this.securityPolicy);
this.getVendorPasswordHistoryPolicy = this.securityPolicy.getVendorPasswordHistoryPolicy.bind(this.securityPolicy);
this.savePasswordHistoryPolicy = this.securityPolicy.savePasswordHistoryPolicy.bind(this.securityPolicy);
this.getPasswordConfigPolicy = this.securityPolicy.getPasswordConfigPolicy.bind(this.securityPolicy);
this.getDomainRestrictions = this.securityPolicy.getDomainRestrictions.bind(this.securityPolicy);
this.getDomainRestrictionsConfig = this.securityPolicy.getDomainRestrictionsConfig.bind(this.securityPolicy);
this.createDomainRestriction = this.securityPolicy.createDomainRestriction.bind(this.securityPolicy);
this.updateDomainRestrictionConfig = this.securityPolicy.updateDomainRestrictionConfig.bind(this.securityPolicy);
this.deleteDomainRestriction = this.securityPolicy.deleteDomainRestriction.bind(this.securityPolicy);
this.getIPRestrictions = this.securityPolicy.getIPRestrictions.bind(this.securityPolicy);
this.getIPRestrictionsConfig = this.securityPolicy.getIPRestrictionsConfig.bind(this.securityPolicy);
this.createIPRestriction = this.securityPolicy.createIPRestriction.bind(this.securityPolicy);
this.bulkCreateIPRestriction = this.securityPolicy.bulkCreateIPRestriction.bind(this.securityPolicy);
this.updateIPRestrictionConfig = this.securityPolicy.updateIPRestrictionConfig.bind(this.securityPolicy);
this.deleteIPRestriction = this.securityPolicy.deleteIPRestriction.bind(this.securityPolicy);
this.testCurrentIp = this.securityPolicy.testCurrentIp.bind(this.securityPolicy);
this.testCurrentIpInAllowList = this.securityPolicy.testCurrentIpInAllowList.bind(this.securityPolicy);
}

@@ -908,0 +936,0 @@

4

index.d.ts

@@ -7,2 +7,3 @@ import { AuthStrategyEnum, MachineToMachineAuthStrategy, SocialLoginProviders } from './auth';

import { AuthenticationApi } from './auth';
import { SecurityPolicyApi } from './auth/secutiry-poilicy';
import { UsersApi } from './users';

@@ -64,2 +65,3 @@ import { TeamsApi } from './teams';

auth: AuthenticationApi;
securityPolicy: SecurityPolicyApi;
teams: TeamsApi;

@@ -89,2 +91,3 @@ metadata: MetadataApi;

auth: AuthenticationApi;
securityPolicy: SecurityPolicyApi;
teams: TeamsApi;

@@ -137,2 +140,3 @@ metadata: MetadataApi;

auth: AuthenticationApi;
securityPolicy: SecurityPolicyApi;
teams: TeamsApi;

@@ -139,0 +143,0 @@ metadata: MetadataApi;

5

index.js

@@ -1,2 +0,2 @@

/** @license Frontegg v3.1.74-alpha.9437859720
/** @license Frontegg v3.1.74-alpha.9437937621
*

@@ -12,2 +12,3 @@ * This source code is licensed under the MIT license found in the

import DefaultAuthenticationApi, { AuthenticationApi } from './auth';
import DefaultSecurityPolicyApi, { SecurityPolicyApi } from './auth/secutiry-poilicy';
import DefaultUsersApi, { UsersApi } from './users';

@@ -64,2 +65,3 @@ import DefaultTeamsApi, { TeamsApi } from './teams';

auth: DefaultAuthenticationApi,
securityPolicy: DefaultSecurityPolicyApi,
teams: DefaultTeamsApi,

@@ -90,2 +92,3 @@ metadata: DefaultMetadataApi,

auth: new AuthenticationApi(appName),
securityPolicy: new SecurityPolicyApi(appName),
teams: new TeamsApi(appName),

@@ -92,0 +95,0 @@ metadata: new MetadataApi(appName),

@@ -112,2 +112,3 @@ "use strict";

this.entitlementsApi = new _entitlements.EntitlementsApi(this.appName);
this.securityPolicy = new _secutiryPoilicy.SecurityPolicyApi(this.appName);

@@ -986,2 +987,28 @@ this.generateLoginResponse = async loginResponse => {

};
this.getGlobalSecurityPolicy = this.securityPolicy.getGlobalSecurityPolicy.bind(this.securityPolicy);
this.getMfaPolicy = this.securityPolicy.getMfaPolicy.bind(this.securityPolicy);
this.getVendorMfaPolicy = this.securityPolicy.getVendorMfaPolicy.bind(this.securityPolicy);
this.saveMfaPolicy = this.securityPolicy.saveMfaPolicy.bind(this.securityPolicy);
this.getLockoutPolicy = this.securityPolicy.getLockoutPolicy.bind(this.securityPolicy);
this.getVendorLockoutPolicy = this.securityPolicy.getVendorLockoutPolicy.bind(this.securityPolicy);
this.saveLockoutPolicy = this.securityPolicy.saveLockoutPolicy.bind(this.securityPolicy);
this.getCaptchaPolicy = this.securityPolicy.getCaptchaPolicy.bind(this.securityPolicy);
this.getPasswordHistoryPolicy = this.securityPolicy.getPasswordHistoryPolicy.bind(this.securityPolicy);
this.getVendorPasswordHistoryPolicy = this.securityPolicy.getVendorPasswordHistoryPolicy.bind(this.securityPolicy);
this.savePasswordHistoryPolicy = this.securityPolicy.savePasswordHistoryPolicy.bind(this.securityPolicy);
this.getPasswordConfigPolicy = this.securityPolicy.getPasswordConfigPolicy.bind(this.securityPolicy);
this.getDomainRestrictions = this.securityPolicy.getDomainRestrictions.bind(this.securityPolicy);
this.getDomainRestrictionsConfig = this.securityPolicy.getDomainRestrictionsConfig.bind(this.securityPolicy);
this.createDomainRestriction = this.securityPolicy.createDomainRestriction.bind(this.securityPolicy);
this.updateDomainRestrictionConfig = this.securityPolicy.updateDomainRestrictionConfig.bind(this.securityPolicy);
this.deleteDomainRestriction = this.securityPolicy.deleteDomainRestriction.bind(this.securityPolicy);
this.getIPRestrictions = this.securityPolicy.getIPRestrictions.bind(this.securityPolicy);
this.getIPRestrictionsConfig = this.securityPolicy.getIPRestrictionsConfig.bind(this.securityPolicy);
this.createIPRestriction = this.securityPolicy.createIPRestriction.bind(this.securityPolicy);
this.bulkCreateIPRestriction = this.securityPolicy.bulkCreateIPRestriction.bind(this.securityPolicy);
this.updateIPRestrictionConfig = this.securityPolicy.updateIPRestrictionConfig.bind(this.securityPolicy);
this.deleteIPRestriction = this.securityPolicy.deleteIPRestriction.bind(this.securityPolicy);
this.testCurrentIp = this.securityPolicy.testCurrentIp.bind(this.securityPolicy);
this.testCurrentIpInAllowList = this.securityPolicy.testCurrentIpInAllowList.bind(this.securityPolicy);
}

@@ -988,0 +1015,0 @@

@@ -1,2 +0,2 @@

/** @license Frontegg v3.1.74-alpha.9437859720
/** @license Frontegg v3.1.74-alpha.9437937621
*

@@ -146,2 +146,4 @@ * This source code is licensed under the MIT license found in the

var _secutiryPoilicy = _interopRequireWildcard(require("./auth/secutiry-poilicy"));
var _users = _interopRequireWildcard(require("./users"));

@@ -571,2 +573,3 @@

auth: _auth.default,
securityPolicy: _secutiryPoilicy.default,
teams: _teams.default,

@@ -598,2 +601,3 @@ metadata: _metadata.default,

auth: new _auth.AuthenticationApi(appName),
securityPolicy: new _secutiryPoilicy.SecurityPolicyApi(appName),
teams: new _teams.TeamsApi(appName),

@@ -600,0 +604,0 @@ metadata: new _metadata.MetadataApi(appName),

{
"name": "@frontegg/rest-api",
"version": "3.1.74-alpha.9437859720",
"version": "3.1.74-alpha.9437937621",
"main": "./node/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc