@frontegg/rest-api 3.0.30 → 3.0.32

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.
@@ -1,5 +1,5 @@
1
- import { IUserProfile } from './teams/interfaces';
2
- import { ContextOptions, RedirectOptions } from './interfaces';
1
+ import { IUserProfile } from '../teams/interfaces';
2
+ import { ContextOptions, RedirectOptions } from '../interfaces';
3
3
  export declare class ContextHolder {
4
4
  private static instance;
5
5
  private context;
File without changes
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/ContextHolder/index.js",
5
+ "types": "./index.d.ts"
6
+ }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.30
1
+ /** @license Frontegg v3.0.32
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/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.30
1
+ /** @license Frontegg v3.0.32
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/node/routers.js CHANGED
@@ -3,11 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.fronteggRefreshTokenUrl = exports.fronteggAuthApiRoutes = void 0;
6
+ exports.fronteggSilentRefreshTokenUrl = exports.fronteggRefreshTokenUrl = exports.fronteggAuthApiRoutes = void 0;
7
7
 
8
8
  var _constants = require("./constants");
9
9
 
10
- const fronteggAuthApiRoutes = [`${_constants.urls.identity.auth.v1}/logout`, `${_constants.urls.identity.auth.v1}/user/saml/postlogin`, `${_constants.urls.identity.auth.v2}/user/oidc/postlogin`, `${_constants.urls.identity.auth.v1}/user`, `${_constants.urls.identity.auth.v1}/user/mfa/verify`, `${_constants.urls.identity.auth.v1}/user/token/refresh`, `${_constants.urls.identity.users.v1}`, `${_constants.urls.identity.auth.v1}/passwordless/magiclink/postlogin`, `${_constants.urls.identity.auth.v1}/passwordless/code/postlogin`, `${_constants.urls.identity.auth.v1}/passwordless/smscode/postlogin`, `${_constants.urls.identity.users.v1}/activate`, `${_constants.urls.identity.users.v1}/invitation/accept`];
10
+ const fronteggAuthApiRoutes = [`${_constants.urls.identity.auth.v1}/logout`, `${_constants.urls.identity.auth.v1}/user/saml/postlogin`, `${_constants.urls.identity.auth.v2}/user/oidc/postlogin`, `${_constants.urls.identity.auth.v1}/user`, `${_constants.urls.identity.auth.v1}/user/mfa/verify`, `${_constants.urls.identity.auth.v1}/user/token/refresh`, `${_constants.urls.identity.users.v1}`, `${_constants.urls.identity.auth.v1}/passwordless/magiclink/postlogin`, `${_constants.urls.identity.auth.v1}/passwordless/code/postlogin`, `${_constants.urls.identity.auth.v1}/passwordless/smscode/postlogin`, `${_constants.urls.identity.users.v1}/activate`, `${_constants.urls.identity.users.v1}/invitation/accept`, `${_constants.urls.oauth.v1}/token`, `${_constants.urls.oauth.v1}/authorize/silent`];
11
11
  exports.fronteggAuthApiRoutes = fronteggAuthApiRoutes;
12
12
  const fronteggRefreshTokenUrl = `${_constants.urls.identity.auth.v1}/user/token/refresh`;
13
- exports.fronteggRefreshTokenUrl = fronteggRefreshTokenUrl;
13
+ exports.fronteggRefreshTokenUrl = fronteggRefreshTokenUrl;
14
+ const fronteggSilentRefreshTokenUrl = `${_constants.urls.oauth.v1}/authorize/silent`;
15
+ exports.fronteggSilentRefreshTokenUrl = fronteggSilentRefreshTokenUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.30",
3
+ "version": "3.0.32",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/routers.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export declare const fronteggAuthApiRoutes: string[];
2
2
  export declare const fronteggRefreshTokenUrl: string;
3
+ export declare const fronteggSilentRefreshTokenUrl: string;
package/routers.js CHANGED
@@ -1,3 +1,4 @@
1
1
  import { urls } from './constants';
2
- export const fronteggAuthApiRoutes = [`${urls.identity.auth.v1}/logout`, `${urls.identity.auth.v1}/user/saml/postlogin`, `${urls.identity.auth.v2}/user/oidc/postlogin`, `${urls.identity.auth.v1}/user`, `${urls.identity.auth.v1}/user/mfa/verify`, `${urls.identity.auth.v1}/user/token/refresh`, `${urls.identity.users.v1}`, `${urls.identity.auth.v1}/passwordless/magiclink/postlogin`, `${urls.identity.auth.v1}/passwordless/code/postlogin`, `${urls.identity.auth.v1}/passwordless/smscode/postlogin`, `${urls.identity.users.v1}/activate`, `${urls.identity.users.v1}/invitation/accept`];
3
- export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
2
+ export const fronteggAuthApiRoutes = [`${urls.identity.auth.v1}/logout`, `${urls.identity.auth.v1}/user/saml/postlogin`, `${urls.identity.auth.v2}/user/oidc/postlogin`, `${urls.identity.auth.v1}/user`, `${urls.identity.auth.v1}/user/mfa/verify`, `${urls.identity.auth.v1}/user/token/refresh`, `${urls.identity.users.v1}`, `${urls.identity.auth.v1}/passwordless/magiclink/postlogin`, `${urls.identity.auth.v1}/passwordless/code/postlogin`, `${urls.identity.auth.v1}/passwordless/smscode/postlogin`, `${urls.identity.users.v1}/activate`, `${urls.identity.users.v1}/invitation/accept`, `${urls.oauth.v1}/token`, `${urls.oauth.v1}/authorize/silent`];
3
+ export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
4
+ export const fronteggSilentRefreshTokenUrl = `${urls.oauth.v1}/authorize/silent`;
@@ -17,6 +17,7 @@ export interface ITenantsResponse {
17
17
  timeFormat?: string;
18
18
  currency?: string;
19
19
  logo?: string;
20
+ logoUrl?: string;
20
21
  }
21
22
  export declare enum TenantType {
22
23
  CUSTOMER = "customer",
@@ -26,7 +27,7 @@ export declare enum TenantType {
26
27
  HEADQUARTER = "headquarter"
27
28
  }
28
29
  export interface ITenantsResponseV2 extends ITenantsResponse {
29
- tenantType?: TenantType[];
30
+ tenantType?: TenantType;
30
31
  domain?: string;
31
32
  address2?: string;
32
33
  countryCode?: string;
@@ -49,3 +50,9 @@ export interface ISubTenantTree {
49
50
  tenantName?: string;
50
51
  children: ISubTenantTree[];
51
52
  }
53
+ export interface ITenantHierarchyNode {
54
+ id: string;
55
+ vendorId: string;
56
+ tenantId: string;
57
+ parentId: string;
58
+ }