@frontegg/rest-api 3.1.11 → 3.1.12

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 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, ILoginResponseV3, IPreVerifyMFAEmailCodeResponse, IVerifyMFAEmailCode } from './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, ILoginResponseV3, IPreVerifyMFAEmailCodeResponse, IVerifyMFAEmailCode, ICreateOrUpdateSSOConfigurationByMetadataUrl } from './interfaces';
5
5
  import { IUserProfile } from "../users/interfaces";
6
6
  /*****************************************
7
7
  * Authentication
@@ -611,6 +611,20 @@ export declare function createSSOConfigurationByMetadata(body: IUpdateSamlVendor
611
611
  * * ``authorized user``
612
612
  */
613
613
  export declare function updateSSOConfigurationByMetadata(ssoConfigId: string, body: IUpdateSamlVendorMetadata): Promise<ISSOConfiguration>;
614
+ /**
615
+ * Create SSO configuration by metadata url by logged in user (tenantId, vendorId)
616
+ *
617
+ * @returns ISSOConfiguration
618
+ * * ``authorized user``
619
+ */
620
+ export declare function createSSOConfigurationByMetadataUrl(body: ICreateOrUpdateSSOConfigurationByMetadataUrl): Promise<ISSOConfiguration>;
621
+ /**
622
+ * Update SSO configuration by metadata url by logged in user (tenantId, vendorId)
623
+ *
624
+ * @returns ISSOConfiguration
625
+ * * ``authorized user``
626
+ */
627
+ export declare function updateSSOConfigurationByMetadataUrl(ssoConfigId: string, body: ICreateOrUpdateSSOConfigurationByMetadataUrl): Promise<ISSOConfiguration>;
614
628
  /**
615
629
  * Create SSO configuration domain by logged in user (tenantId, vendorId)
616
630
  *
package/auth/index.js CHANGED
@@ -578,6 +578,12 @@ export async function createSSOConfigurationByMetadata(body) {
578
578
  export async function updateSSOConfigurationByMetadata(ssoConfigId, body) {
579
579
  return Put(`${urls.team.sso.v1}/configurations/${ssoConfigId}/metadata`, body);
580
580
  }
581
+ export async function createSSOConfigurationByMetadataUrl(body) {
582
+ return Post(`${urls.team.sso.v1}/configurations/metadata-url`, body);
583
+ }
584
+ export async function updateSSOConfigurationByMetadataUrl(ssoConfigId, body) {
585
+ return Put(`${urls.team.sso.v1}/configurations/${ssoConfigId}/metadata-url`, body);
586
+ }
581
587
  export async function createSSODomain(ssoConfigId, body) {
582
588
  return Post(`${urls.team.sso.v1}/configurations/${ssoConfigId}/domains`, body);
583
589
  }
@@ -141,6 +141,10 @@ export declare type ISamlVendorMetadata = {
141
141
  export declare type IUpdateSamlVendorMetadata = {
142
142
  metadata: string;
143
143
  };
144
+ export interface ICreateOrUpdateSSOConfigurationByMetadataUrl {
145
+ url: string;
146
+ configMetadata?: Record<string, string>;
147
+ }
144
148
  export interface ISocialLoginProviderConfiguration {
145
149
  type: SocialLoginProviders;
146
150
  clientId: string;
@@ -1,4 +1,5 @@
1
1
  export * from "./secutiry-poilicy/interfaces";
2
+ ;
2
3
  export let SecondaryAuthStrategy;
3
4
 
4
5
  (function (SecondaryAuthStrategy) {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.11
1
+ /** @license Frontegg v3.1.12
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.
@@ -119,6 +119,8 @@ var _exportNames = {
119
119
  deleteSSOConfiguration: true,
120
120
  createSSOConfigurationByMetadata: true,
121
121
  updateSSOConfigurationByMetadata: true,
122
+ createSSOConfigurationByMetadataUrl: true,
123
+ updateSSOConfigurationByMetadataUrl: true,
122
124
  createSSODomain: true,
123
125
  deleteSSODomain: true,
124
126
  validateSSODomain: true,
@@ -161,6 +163,7 @@ exports.checkIfAllowToRememberMfaDevice = checkIfAllowToRememberMfaDevice;
161
163
  exports.createOrUpdateSessionConfigrations = createOrUpdateSessionConfigrations;
162
164
  exports.createSSOConfiguration = createSSOConfiguration;
163
165
  exports.createSSOConfigurationByMetadata = createSSOConfigurationByMetadata;
166
+ exports.createSSOConfigurationByMetadataUrl = createSSOConfigurationByMetadataUrl;
164
167
  exports.createSSODomain = createSSODomain;
165
168
  exports.createSSOGroup = createSSOGroup;
166
169
  exports.createSamlGroup = createSamlGroup;
@@ -270,6 +273,7 @@ exports.silentOAuthRefreshToken = silentOAuthRefreshToken;
270
273
  exports.silentOAuthRefreshTokenV2 = silentOAuthRefreshTokenV2;
271
274
  exports.updateSSOConfiguration = updateSSOConfiguration;
272
275
  exports.updateSSOConfigurationByMetadata = updateSSOConfigurationByMetadata;
276
+ exports.updateSSOConfigurationByMetadataUrl = updateSSOConfigurationByMetadataUrl;
273
277
  exports.updateSSOGroup = updateSSOGroup;
274
278
  exports.updateSamlConfiguration = updateSamlConfiguration;
275
279
  exports.updateSamlGroup = updateSamlGroup;
@@ -1029,6 +1033,14 @@ async function updateSSOConfigurationByMetadata(ssoConfigId, body) {
1029
1033
  return (0, _fetch.Put)(`${_constants.urls.team.sso.v1}/configurations/${ssoConfigId}/metadata`, body);
1030
1034
  }
1031
1035
 
1036
+ async function createSSOConfigurationByMetadataUrl(body) {
1037
+ return (0, _fetch.Post)(`${_constants.urls.team.sso.v1}/configurations/metadata-url`, body);
1038
+ }
1039
+
1040
+ async function updateSSOConfigurationByMetadataUrl(ssoConfigId, body) {
1041
+ return (0, _fetch.Put)(`${_constants.urls.team.sso.v1}/configurations/${ssoConfigId}/metadata-url`, body);
1042
+ }
1043
+
1032
1044
  async function createSSODomain(ssoConfigId, body) {
1033
1045
  return (0, _fetch.Post)(`${_constants.urls.team.sso.v1}/configurations/${ssoConfigId}/domains`, body);
1034
1046
  }
@@ -23,6 +23,7 @@ Object.keys(_interfaces).forEach(function (key) {
23
23
  }
24
24
  });
25
25
  });
26
+ ;
26
27
  let SecondaryAuthStrategy;
27
28
  exports.SecondaryAuthStrategy = SecondaryAuthStrategy;
28
29
 
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.1.11
1
+ /** @license Frontegg v3.1.12
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.1.11",
3
+ "version": "3.1.12",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {