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 3.1.3 to 3.1.4

2

index.js

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

/** @license Frontegg v3.1.3
/** @license Frontegg v3.1.4
*

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

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

/** @license Frontegg v3.1.3
/** @license Frontegg v3.1.4
*

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

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

exports.sendResetBreachedPasswordEmails = sendResetBreachedPasswordEmails;
exports.updateUserProfileV2 = updateUserProfileV2;

@@ -63,2 +64,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

return (0, _fetch.Post)(_constants.urls.identity.users.passwords.resetBreachedPasswords.v1);
}
async function updateUserProfileV2(body) {
return (0, _fetch.Put)(`${_constants.urls.identity.users.v2}/me`, body);
}

@@ -6,3 +6,3 @@ "use strict";

});
exports.SortByEnum = void 0;
exports.providersArray = exports.SortByEnum = void 0;
let SortByEnum;

@@ -20,2 +20,5 @@ exports.SortByEnum = SortByEnum;

SortByEnum["tenantId"] = "tenantId";
})(SortByEnum || (exports.SortByEnum = SortByEnum = {}));
})(SortByEnum || (exports.SortByEnum = SortByEnum = {}));
const providersArray = ['local', 'saml', 'google', 'github', 'facebook', 'microsoft', 'scim2', 'slack'];
exports.providersArray = providersArray;
{
"name": "@frontegg/rest-api",
"version": "3.1.3",
"version": "3.1.4",
"main": "./node/index.js",

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

@@ -17,2 +17,4 @@ import { IAddUser, IChangePassword, ILoadUsers, IResendActivationLink, ITeamUserRole, ITeamStats, ITeamUser, IUpdateProfile, IUpdateUser, IDeleteUser, ITeamUserPermission, IResendInvitationLink, IInviteUserLinkResponse, ICreateOrUpdateInviteUserLink, IInviteLinkConfiguration, IUserProfile } from './interfaces';

* ``authorized user``
* @deprecated
* use updateUserProfileV2 from users
*/

@@ -19,0 +21,0 @@ export declare function updateProfile(body: Partial<IUpdateProfile>): Promise<IUserProfile>;

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

import { GetCurrentUserTenantsResponse, GetUserGroupsParams, GetUserGroupsResponse, GetUserJwtRequestDto, GetUserJwtResponseDto, GetUserRolesResponse, GetUsersRolesParams, IGetUsersV2Response, ISearchUserQueryParamsV2, ISearchUserQueryParamsV3, IUsersV3Data } from './interfaces';
import { GetCurrentUserTenantsResponse, GetUserGroupsParams, GetUserGroupsResponse, GetUserJwtRequestDto, GetUserJwtResponseDto, GetUserRolesResponse, GetUsersRolesParams, IGetUsersV2Response, ISearchUserQueryParamsV2, ISearchUserQueryParamsV3, IUpdateUserDto, IUserDTO, IUsersV3Data } from './interfaces';
import { FronteggPaginationWrapper, UserJwtOptions } from '../interfaces';

@@ -10,1 +10,2 @@ export declare function GetUserJwt(body: GetUserJwtRequestDto): Promise<GetUserJwtResponseDto>;

export declare function sendResetBreachedPasswordEmails(): Promise<void>;
export declare function updateUserProfileV2(body: Partial<IUpdateUserDto>): Promise<IUserDTO>;
import _extends from "@babel/runtime/helpers/esm/extends";
import { extractHeadersFromOptions, Get, Post } from '../fetch';
import { extractHeadersFromOptions, Get, Post, Put } from '../fetch';
import { urls } from '../constants';

@@ -38,2 +38,5 @@ export async function GetUserJwt(body) {

return Post(urls.identity.users.passwords.resetBreachedPasswords.v1);
}
export async function updateUserProfileV2(body) {
return Put(`${urls.identity.users.v2}/me`, body);
}

@@ -100,1 +100,18 @@ import { PaginationOrderEnum } from '../interfaces';

}
export interface IUpdateUserDto {
userAgent: string;
ipAddress: string;
name?: string;
phoneNumber?: string;
profilePictureUrl?: string | null;
metadata?: string;
sourceMetadata?: SourceMetadata;
provider?: (typeof providersArray)[number];
managedBy?: UserManagedByEnum;
}
export interface SourceMetadata {
source: 'SCIM';
sourceVersion: number;
sourceId: string;
}
export declare const providersArray: string[];

@@ -12,2 +12,4 @@ export let SortByEnum;

SortByEnum["tenantId"] = "tenantId";
})(SortByEnum || (SortByEnum = {}));
})(SortByEnum || (SortByEnum = {}));
export const providersArray = ['local', 'saml', 'google', 'github', 'facebook', 'microsoft', 'scim2', 'slack'];
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