@frontegg/rest-api 3.0.87 → 3.0.89
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.
- package/auth/index.d.ts +5 -1
- package/auth/index.js +3 -0
- package/index.js +1 -1
- package/node/auth/index.js +6 -0
- package/node/index.js +1 -1
- package/package.json +1 -1
- package/teams/interfaces.d.ts +8 -7
package/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./secutiry-poilicy";
|
|
2
2
|
export * from "./enums";
|
|
3
3
|
import { ISamlRolesGroup } from "../teams/interfaces";
|
|
4
|
-
import { IAcceptInvitation, IActivateAccount, IAllowedToRememberMfaDevice, ICreateSamlGroup, IDeleteApiToken, IDisableMfa, IEnrollMfaResponse, IForgotPassword, IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse, IGetUserById, IGetUserPasswordConfig, ILogin, ILoginResponse, ILoginViaSocialLogin, ILoginViaSocialLoginResponse, ILoginWithMfa, IOidcPostLogin, IOidcConfiguration, IPostLogin, IPreLogin, IRecoverMFAToken, IResendActivationEmail, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, ISignUpResponse, ISignUpUser, ISocialLoginProviderConfiguration, ITenantApiTokensData, IUpdateSamlConfiguration, IUpdateSamlGroup, IUpdateSamlRoles, IUpdateSamlVendorMetadata, IUpdateTenantApiTokensData, IUpdateUserApiTokensData, IUserApiTokensData, IUserIdResponse, IVendorConfig, IVerifyMfa, IVerifyMfaResponse, TestConfig, ISSOPublicConfiguration, IPreLoginWithIdpTypeResponse, IPasswordlessPreLogin, IPasswordlessPostLogin, ICreateSSODomain, IVerifyInviteToken, ISSODomain, ISSOConfigurationDefaultRoles, ISSOConfiguration, IUpdateSSOConfiguration, IOidcPostLoginV2, IExchangeOAuthTokens, IOAuthTokenResponse, ISocialLoginProviderConfigurationV2, ILoginResponseV2, IResetPhoneNumber, IVerifyResetPhoneNumber, IChangePhoneNumber, IVerifyResetPhoneNumberResponse, IResetPhoneNumberResponse, IWebAuthnPreLogin, IWebAuthnPostLogin, IVerifyNewWebAuthnDevice, IWebAuthnPreLoginResponse, ICreateNewDeviceSessionResponse, IAuthStrategiesConfig, ISessionResponse, IChangePhoneNumberWithVerification, IChangePhoneNumberWithVerificationResponse, IVerifyChangePhoneNumber, ISessionConfigurations, IResendInvitationEmail, IPreEnrollMFA, IEnrollMFAAuthenticatorApp, IPreEnrollMFASMS, IEnrollMFASMS, IEnrollMFAWebAuthn, IPreEnrollMFAAuthenticatorAppResponse, IPreEnrollMFAWebAuthnResponse, IVerifyMFAAuthenticatorApp, IPreVerifyMFA, IPreVerifyMFASMSResponse, IVerifyMFASMS, IPreVerifyMFAWebAuthnResponse, IVerifyMFAWebAuthn, IPreEnrollMFASMSResponse, IPreDisableMFASMSResponse, IDisableMFASMS, IDisableMFAWebAuthn, IPreDisableMFAWebAuthnResponse, UserMFADevicesResponse, WithoutMFAToken, IMFAStrategiesResponse, IOAuthLogout, IGetUserAccessTokens, IGetTenantAccessTokens, IDeleteAccessToken, ICreateTenantAccessTokenData, ICreateUserAccessTokenData, IWebAuthnDevices, ICustomSocialLoginProviderConfigurationV1 } from
|
|
4
|
+
import { IAcceptInvitation, IActivateAccount, IAllowedToRememberMfaDevice, ICreateSamlGroup, IDeleteApiToken, IDisableMfa, IEnrollMfaResponse, IForgotPassword, IGetActivateAccountStrategy, IGetActivateAccountStrategyResponse, IGetUserById, IGetUserPasswordConfig, ILogin, ILoginResponse, ILoginViaSocialLogin, ILoginViaSocialLoginResponse, ILoginWithMfa, IOidcPostLogin, IOidcConfiguration, IPostLogin, IPreLogin, IRecoverMFAToken, IResendActivationEmail, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, ISignUpResponse, ISignUpUser, ISocialLoginProviderConfiguration, ITenantApiTokensData, IUpdateSamlConfiguration, IUpdateSamlGroup, IUpdateSamlRoles, IUpdateSamlVendorMetadata, IUpdateTenantApiTokensData, IUpdateUserApiTokensData, IUserApiTokensData, IUserIdResponse, IVendorConfig, IVerifyMfa, IVerifyMfaResponse, TestConfig, ISSOPublicConfiguration, IPreLoginWithIdpTypeResponse, IPasswordlessPreLogin, IPasswordlessPostLogin, ICreateSSODomain, IVerifyInviteToken, ISSODomain, ISSOConfigurationDefaultRoles, ISSOConfiguration, IUpdateSSOConfiguration, IOidcPostLoginV2, IExchangeOAuthTokens, IOAuthTokenResponse, ISocialLoginProviderConfigurationV2, ILoginResponseV2, IResetPhoneNumber, IVerifyResetPhoneNumber, IChangePhoneNumber, IVerifyResetPhoneNumberResponse, IResetPhoneNumberResponse, IWebAuthnPreLogin, IWebAuthnPostLogin, IVerifyNewWebAuthnDevice, IWebAuthnPreLoginResponse, ICreateNewDeviceSessionResponse, IAuthStrategiesConfig, ISessionResponse, IChangePhoneNumberWithVerification, IChangePhoneNumberWithVerificationResponse, IVerifyChangePhoneNumber, ISessionConfigurations, IResendInvitationEmail, IPreEnrollMFA, IEnrollMFAAuthenticatorApp, IPreEnrollMFASMS, IEnrollMFASMS, IEnrollMFAWebAuthn, IPreEnrollMFAAuthenticatorAppResponse, IPreEnrollMFAWebAuthnResponse, IVerifyMFAAuthenticatorApp, IPreVerifyMFA, IPreVerifyMFASMSResponse, IVerifyMFASMS, IPreVerifyMFAWebAuthnResponse, IVerifyMFAWebAuthn, IPreEnrollMFASMSResponse, IPreDisableMFASMSResponse, IDisableMFASMS, IDisableMFAWebAuthn, IPreDisableMFAWebAuthnResponse, UserMFADevicesResponse, WithoutMFAToken, IMFAStrategiesResponse, IOAuthLogout, IGetUserAccessTokens, IGetTenantAccessTokens, IDeleteAccessToken, ICreateTenantAccessTokenData, ICreateUserAccessTokenData, IWebAuthnDevices, ICustomSocialLoginProviderConfigurationV1 } from "./interfaces";
|
|
5
5
|
/*****************************************
|
|
6
6
|
* Authentication
|
|
7
7
|
*****************************************/
|
|
@@ -624,6 +624,10 @@ export declare function webAuthnCreateNewDeviceSession(): Promise<ICreateNewDevi
|
|
|
624
624
|
* get webauthn devices should be called in order to get user's webAuthn devices
|
|
625
625
|
*/
|
|
626
626
|
export declare function getWebAuthnDevices(): Promise<IWebAuthnDevices>;
|
|
627
|
+
/**
|
|
628
|
+
* delete webauthn device should be called in order to delete user's webAuthn device
|
|
629
|
+
*/
|
|
630
|
+
export declare function deleteWebAuthnDevice(deviceId: string): Promise<void>;
|
|
627
631
|
/**
|
|
628
632
|
* webauthn verify new device should be called after the user used his authenticator in order to register the new device
|
|
629
633
|
*/
|
package/auth/index.js
CHANGED
|
@@ -524,6 +524,9 @@ export async function webAuthnCreateNewDeviceSession() {
|
|
|
524
524
|
export async function getWebAuthnDevices() {
|
|
525
525
|
return Get(urls.identity.webAuthnDevices.v1);
|
|
526
526
|
}
|
|
527
|
+
export async function deleteWebAuthnDevice(deviceId) {
|
|
528
|
+
return Delete(`${urls.identity.webAuthnDevices.v1}/${deviceId}`);
|
|
529
|
+
}
|
|
527
530
|
export async function verifyNewDeviceSession(body) {
|
|
528
531
|
return Post(`${urls.identity.webAuthnDevices.v1}/verify`, body);
|
|
529
532
|
}
|
package/index.js
CHANGED
package/node/auth/index.js
CHANGED
|
@@ -125,6 +125,7 @@ var _exportNames = {
|
|
|
125
125
|
webAuthnPostLogin: true,
|
|
126
126
|
webAuthnCreateNewDeviceSession: true,
|
|
127
127
|
getWebAuthnDevices: true,
|
|
128
|
+
deleteWebAuthnDevice: true,
|
|
128
129
|
verifyNewDeviceSession: true,
|
|
129
130
|
getVendorPublicAuthStrategiesConfig: true,
|
|
130
131
|
getMFAStrategiesConfig: true
|
|
@@ -153,6 +154,7 @@ exports.deleteTenantAccessToken = deleteTenantAccessToken;
|
|
|
153
154
|
exports.deleteTenantApiToken = deleteTenantApiToken;
|
|
154
155
|
exports.deleteUserAccessToken = deleteUserAccessToken;
|
|
155
156
|
exports.deleteUserApiToken = deleteUserApiToken;
|
|
157
|
+
exports.deleteWebAuthnDevice = deleteWebAuthnDevice;
|
|
156
158
|
exports.disableMFAAuthenticatorApp = disableMFAAuthenticatorApp;
|
|
157
159
|
exports.disableMFASMS = disableMFASMS;
|
|
158
160
|
exports.disableMFAWebAuthn = disableMFAWebAuthn;
|
|
@@ -932,6 +934,10 @@ async function getWebAuthnDevices() {
|
|
|
932
934
|
return (0, _fetch.Get)(_constants.urls.identity.webAuthnDevices.v1);
|
|
933
935
|
}
|
|
934
936
|
|
|
937
|
+
async function deleteWebAuthnDevice(deviceId) {
|
|
938
|
+
return (0, _fetch.Delete)(`${_constants.urls.identity.webAuthnDevices.v1}/${deviceId}`);
|
|
939
|
+
}
|
|
940
|
+
|
|
935
941
|
async function verifyNewDeviceSession(body) {
|
|
936
942
|
return (0, _fetch.Post)(`${_constants.urls.identity.webAuthnDevices.v1}/verify`, body);
|
|
937
943
|
}
|
package/node/index.js
CHANGED
package/package.json
CHANGED
package/teams/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryFilter, QuerySort } from
|
|
2
|
-
import { IRole, IRolePermission } from
|
|
1
|
+
import { QueryFilter, QuerySort } from "../interfaces";
|
|
2
|
+
import { IRole, IRolePermission } from "../roles/interfaces";
|
|
3
3
|
export declare enum UserManagedByEnum {
|
|
4
4
|
FRONTEGG = "frontegg",
|
|
5
5
|
SCIM2 = "scim2"
|
|
@@ -22,6 +22,7 @@ export declare type IUserProfile = {
|
|
|
22
22
|
verified?: boolean;
|
|
23
23
|
superUser?: boolean;
|
|
24
24
|
managedBy?: UserManagedByEnum;
|
|
25
|
+
provider?: string;
|
|
25
26
|
};
|
|
26
27
|
export declare type ITeamUserTenant = {
|
|
27
28
|
tenantId: string;
|
|
@@ -77,7 +78,7 @@ export declare type ITeamStats = {
|
|
|
77
78
|
superAdmins: number;
|
|
78
79
|
};
|
|
79
80
|
export declare type IUpdateProfile = {
|
|
80
|
-
title:
|
|
81
|
+
title: "Mr" | "Miss" | "Mrs" | "Ms";
|
|
81
82
|
name: string;
|
|
82
83
|
country: string;
|
|
83
84
|
phoneNumber: string;
|
|
@@ -122,8 +123,8 @@ export declare type ICreateOrUpdateInviteUserLink = {
|
|
|
122
123
|
shouldSendEmail?: boolean;
|
|
123
124
|
};
|
|
124
125
|
/**
|
|
125
|
-
* invite config
|
|
126
|
-
*/
|
|
126
|
+
* invite config
|
|
127
|
+
*/
|
|
127
128
|
export declare type IInviteUserLinkResponse = {
|
|
128
129
|
id: string;
|
|
129
130
|
vendorId: string;
|
|
@@ -134,8 +135,8 @@ export declare type IInviteUserLinkResponse = {
|
|
|
134
135
|
shouldSendEmail?: boolean;
|
|
135
136
|
};
|
|
136
137
|
/**
|
|
137
|
-
* vendor config
|
|
138
|
-
*/
|
|
138
|
+
* vendor config
|
|
139
|
+
*/
|
|
139
140
|
export declare type IInviteLinkConfiguration = {
|
|
140
141
|
tenantInvitationsAllowed: boolean;
|
|
141
142
|
emailsEnabled: boolean;
|