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

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
616
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 1.21.1 to 1.21.3

auth/secutiry-poilicy/index.d.ts

2

audits/interfaces.d.ts

@@ -5,3 +5,3 @@ export declare type SortDirectionType = 'asc' | 'desc';

ip: string;
json: Array<any>;
json: any[];
action: string;

@@ -8,0 +8,0 @@ resource: string;

import { IUpdateSamlRoles } from './interfaces';
export * from './secutiry-poilicy';
import { IActivateAccount, IDisableMfa, IEnrollMfaResponse, IForgotPassword, ILogin, ILoginResponse, ILoginWithMfa, IPreLogin, IPostLogin, IRecoverMFAToken, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, IUpdateSamlConfiguration, IUpdateSamlVendorMetadata, IVerifyMfa, IVerifyMfaResponse, IAcceptInvitation, ISocialLoginProviderConfiguration, ILoginViaSocialLogin, IVendorConfig, ISignUpUser, ISignUpResponse, IUserApiTokensData, ITenantApiTokensData, IUpdateUserApiTokensData, IUpdateTenantApiTokensData, IDeleteApiToken, IGetUserById, IUserIdResponse } from './interfaces';

@@ -147,3 +148,3 @@ /**

*/
export declare function getSamlRoles(): Promise<Array<string>>;
export declare function getSamlRoles(): Promise<string[]>;
/**

@@ -178,7 +179,7 @@ * Update Saml roles for authorization

*/
export declare function getUserApiTokensData(): Promise<Array<IUserApiTokensData>>;
export declare function getUserApiTokensData(): Promise<IUserApiTokensData[]>;
/**
* Get tenant api tokens data
*/
export declare function getTenantApiTokensData(): Promise<Array<ITenantApiTokensData>>;
export declare function getTenantApiTokensData(): Promise<ITenantApiTokensData[]>;
/**

@@ -185,0 +186,0 @@ * Update User Api Tokens

import { IUserProfile } from '..';
export * from './secutiry-poilicy/interfaces';
export declare type IPreLogin = {

@@ -3,0 +4,0 @@ email: string;

@@ -24,1 +24,2 @@ export declare const AUTH_SERVICE_URL_V1 = "/identity/resources/auth/v1";

export declare const IDENTITY_API_TOKENS_TENANTS_SERVICE = "/identity/resources/tenants/api-tokens/v1";
export declare const SECURITY_POLICY_API_V1 = "/identity/resources/configurations/v1";

@@ -167,3 +167,4 @@ import { __awaiter, __rest } from 'tslib';

}
catch (e) { }
catch (e) {
}
if (errorMessage.errors) {

@@ -250,3 +251,69 @@ errorMessage = errorMessage.errors.join(', ');

const IDENTITY_API_TOKENS_TENANTS_SERVICE = '/identity/resources/tenants/api-tokens/v1';
const SECURITY_POLICY_API_V1 = '/identity/resources/configurations/v1';
/**
* Get global secure access configuration
*/
function getGlobalSecurityPolicy() {
return __awaiter(this, void 0, void 0, function* () {
console.debug('getGlobalSecurityPolicy()');
return Get(SECURITY_POLICY_API_V1);
});
}
/**
* Update global secure access configuration
*/
function saveGlobalSecurityPolicy(body) {
return __awaiter(this, void 0, void 0, function* () {
console.debug('saveGlobalSecurityPolicy()');
return Post(SECURITY_POLICY_API_V1, body);
});
}
/**
* Get Mfa configuration from security policy
*/
function getMfaPolicy() {
return __awaiter(this, void 0, void 0, function* () {
console.debug('getMfaPolicy()');
return Get(`${SECURITY_POLICY_API_V1}/mfa-policy`);
});
}
/**
* Create/Update Mfa configuration from security policy
*/
function saveMfaPolicy(body) {
return __awaiter(this, void 0, void 0, function* () {
console.debug('saveMfaPolicy()');
if (body.id) {
return Patch(`${SECURITY_POLICY_API_V1}/mfa-policy`, body);
}
else {
return Post(`${SECURITY_POLICY_API_V1}/mfa-policy`, body);
}
});
}
/**
* Get Lockout configuration from security policy
*/
function getLockoutPolicy() {
return __awaiter(this, void 0, void 0, function* () {
console.debug('getLockoutPolicy()');
return Get(`${SECURITY_POLICY_API_V1}/lockout-policy`);
});
}
/**
* Create/Update Lockout configuration from security policy
*/
function saveLockoutPolicy(body) {
return __awaiter(this, void 0, void 0, function* () {
console.debug('saveLockoutPolicy()');
if (body.id) {
return Patch(`${SECURITY_POLICY_API_V1}/lockout-policy`, body);
}
else {
return Post(`${SECURITY_POLICY_API_V1}/lockout-policy`, body);
}
});
}
/*****************************************

@@ -678,3 +745,9 @@ * Authentication

deleteUserApiToken: deleteUserApiToken,
getUserById: getUserById
getUserById: getUserById,
getGlobalSecurityPolicy: getGlobalSecurityPolicy,
saveGlobalSecurityPolicy: saveGlobalSecurityPolicy,
getMfaPolicy: getMfaPolicy,
saveMfaPolicy: saveMfaPolicy,
getLockoutPolicy: getLockoutPolicy,
saveLockoutPolicy: saveLockoutPolicy
});

@@ -681,0 +754,0 @@

{
"name": "@frontegg/rest-api",
"libName": "FronteggRestApi",
"version": "1.21.1",
"version": "1.21.3",
"author": "Frontegg LTD",
"module": "index.esm.js",
"es2015": "index.es.js",
"types": "index.d.ts",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"es2015": "dist/index.es.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rollup -c ../../scripts/rollup.config.js && echo DONE",
"build:watch": "rollup -w -c ../../scripts/rollup.config.js",
"test": "jest --runInBand --passWithNoTests -c ../../scripts/jest.config.json --rootDir . && echo DONE"
},
"dependencies": {
"jwt-decode": "2.2.0"
},
"gitHead": "a22721cf115533314dbfd3aeb5c412d961071ab7",
"main": "index.js",
"peerDependencies": {}
}
}
}

Sorry, the diff of this file is not supported yet

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