@frontegg/rest-api 3.0.93 → 3.0.95
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/groups/enums.d.ts +4 -0
- package/groups/enums.js +8 -1
- package/groups/interfaces.d.ts +3 -1
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/node/groups/enums.js +10 -2
- package/node/index.js +15 -1
- package/node/routers.js +3 -5
- package/package.json +1 -1
- package/routers.d.ts +1 -2
- package/routers.js +1 -2
package/groups/enums.d.ts
CHANGED
package/groups/enums.js
CHANGED
|
@@ -4,4 +4,11 @@ export let GroupRelations;
|
|
|
4
4
|
GroupRelations["roles"] = "roles";
|
|
5
5
|
GroupRelations["users"] = "users";
|
|
6
6
|
GroupRelations["rolesAndUsers"] = "rolesAndUsers";
|
|
7
|
-
})(GroupRelations || (GroupRelations = {}));
|
|
7
|
+
})(GroupRelations || (GroupRelations = {}));
|
|
8
|
+
|
|
9
|
+
export let GroupManagedByEnum;
|
|
10
|
+
|
|
11
|
+
(function (GroupManagedByEnum) {
|
|
12
|
+
GroupManagedByEnum["FRONTEGG"] = "frontegg";
|
|
13
|
+
GroupManagedByEnum["SCIM2"] = "scim2";
|
|
14
|
+
})(GroupManagedByEnum || (GroupManagedByEnum = {}));
|
package/groups/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRole } from "../roles/interfaces";
|
|
2
|
-
import { GroupRelations } from "./enums";
|
|
2
|
+
import { GroupManagedByEnum, GroupRelations } from "./enums";
|
|
3
3
|
export declare type IGetGroup = {
|
|
4
4
|
groupId: string;
|
|
5
5
|
};
|
|
@@ -19,6 +19,7 @@ export declare type IGroupResponse = {
|
|
|
19
19
|
metadata?: string;
|
|
20
20
|
roles?: IRole[];
|
|
21
21
|
users?: IGroupUser[];
|
|
22
|
+
managedBy: GroupManagedByEnum;
|
|
22
23
|
};
|
|
23
24
|
export declare type ICreateGroup = {
|
|
24
25
|
name: string;
|
|
@@ -32,6 +33,7 @@ export declare type ICreateGroupResponse = {
|
|
|
32
33
|
color?: string;
|
|
33
34
|
description?: string;
|
|
34
35
|
metadata?: string;
|
|
36
|
+
managedBy: GroupManagedByEnum;
|
|
35
37
|
};
|
|
36
38
|
export declare type IUpdateGroup = {
|
|
37
39
|
groupId: string;
|
package/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from "./directory";
|
|
|
39
39
|
export * from "./directory/interfaces";
|
|
40
40
|
export * from "./impersonate/interfaces";
|
|
41
41
|
export * from "./groups/interfaces";
|
|
42
|
+
export * from "./groups/enums";
|
|
42
43
|
import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
|
|
43
44
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
|
|
44
45
|
declare const api: {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.95
|
|
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.
|
|
@@ -44,6 +44,7 @@ export * from "./directory";
|
|
|
44
44
|
export * from "./directory/interfaces";
|
|
45
45
|
export * from "./impersonate/interfaces";
|
|
46
46
|
export * from "./groups/interfaces";
|
|
47
|
+
export * from "./groups/enums";
|
|
47
48
|
import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
|
|
48
49
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
|
|
49
50
|
const api = {
|
package/node/groups/enums.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.GroupRelations = void 0;
|
|
6
|
+
exports.GroupRelations = exports.GroupManagedByEnum = void 0;
|
|
7
7
|
let GroupRelations;
|
|
8
8
|
exports.GroupRelations = GroupRelations;
|
|
9
9
|
|
|
@@ -11,4 +11,12 @@ exports.GroupRelations = GroupRelations;
|
|
|
11
11
|
GroupRelations["roles"] = "roles";
|
|
12
12
|
GroupRelations["users"] = "users";
|
|
13
13
|
GroupRelations["rolesAndUsers"] = "rolesAndUsers";
|
|
14
|
-
})(GroupRelations || (exports.GroupRelations = GroupRelations = {}));
|
|
14
|
+
})(GroupRelations || (exports.GroupRelations = GroupRelations = {}));
|
|
15
|
+
|
|
16
|
+
let GroupManagedByEnum;
|
|
17
|
+
exports.GroupManagedByEnum = GroupManagedByEnum;
|
|
18
|
+
|
|
19
|
+
(function (GroupManagedByEnum) {
|
|
20
|
+
GroupManagedByEnum["FRONTEGG"] = "frontegg";
|
|
21
|
+
GroupManagedByEnum["SCIM2"] = "scim2";
|
|
22
|
+
})(GroupManagedByEnum || (exports.GroupManagedByEnum = GroupManagedByEnum = {}));
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.95
|
|
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.
|
|
@@ -416,6 +416,20 @@ Object.keys(_interfaces18).forEach(function (key) {
|
|
|
416
416
|
});
|
|
417
417
|
});
|
|
418
418
|
|
|
419
|
+
var _enums = require("./groups/enums");
|
|
420
|
+
|
|
421
|
+
Object.keys(_enums).forEach(function (key) {
|
|
422
|
+
if (key === "default" || key === "__esModule") return;
|
|
423
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
424
|
+
if (key in exports && exports[key] === _enums[key]) return;
|
|
425
|
+
Object.defineProperty(exports, key, {
|
|
426
|
+
enumerable: true,
|
|
427
|
+
get: function () {
|
|
428
|
+
return _enums[key];
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
});
|
|
432
|
+
|
|
419
433
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
420
434
|
|
|
421
435
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/node/routers.js
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.fronteggUsersUrl = exports.fronteggTenantsUrl = exports.fronteggSilentRefreshTokenUrl = exports.fronteggRefreshTokenUrl = exports.
|
|
6
|
+
exports.fronteggUsersUrl = exports.fronteggTenantsUrl = exports.fronteggSilentRefreshTokenUrl = exports.fronteggRefreshTokenUrl = exports.fronteggAuthApiRoutesRegex = void 0;
|
|
7
7
|
|
|
8
8
|
var _constants = require("./constants");
|
|
9
9
|
|
|
10
|
-
const
|
|
11
|
-
exports.
|
|
12
|
-
const fronteggAuthApiRoutes = [...fronteggLogoutApiRoutes, `${_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.users.v1}/signUp`, `${_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`];
|
|
13
|
-
exports.fronteggAuthApiRoutes = fronteggAuthApiRoutes;
|
|
10
|
+
const fronteggAuthApiRoutesRegex = [/^(.*)\/logout$/g, '/logout', /^\/identity\/resources\/auth\/v[0-9]*\/user\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/passwordless\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/webauthn\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/token\/refresh$/g, /^\/identity\/resources\/users\/v[0-9]*$/g, /^\/identity\/resources\/users\/v[0-9]*\/signUp$/g, /^\/identity\/resources\/users\/v[0-9]*\/activate$/g, /^\/identity\/resources\/users\/v[0-9]*\/invitation\/accept$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/mfa\/verify$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/mfa\/[^\/]*\/[^\/]*\/verify$/g, /^\/oauth\/token$/g, /^\/oauth\/authorize\/silent$/g];
|
|
11
|
+
exports.fronteggAuthApiRoutesRegex = fronteggAuthApiRoutesRegex;
|
|
14
12
|
const fronteggRefreshTokenUrl = `${_constants.urls.identity.auth.v1}/user/token/refresh`;
|
|
15
13
|
exports.fronteggRefreshTokenUrl = fronteggRefreshTokenUrl;
|
|
16
14
|
const fronteggSilentRefreshTokenUrl = `${_constants.urls.oauth.v1}/authorize/silent`;
|
package/package.json
CHANGED
package/routers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const fronteggAuthApiRoutes: string[];
|
|
1
|
+
export declare const fronteggAuthApiRoutesRegex: (string | RegExp)[];
|
|
3
2
|
export declare const fronteggRefreshTokenUrl: string;
|
|
4
3
|
export declare const fronteggSilentRefreshTokenUrl: string;
|
|
5
4
|
export declare const fronteggUsersUrl: string;
|
package/routers.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { urls } from './constants';
|
|
2
|
-
export const
|
|
3
|
-
export const fronteggAuthApiRoutes = [...fronteggLogoutApiRoutes, `${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.users.v1}/signUp`, `${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`];
|
|
2
|
+
export const fronteggAuthApiRoutesRegex = [/^(.*)\/logout$/g, '/logout', /^\/identity\/resources\/auth\/v[0-9]*\/user\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/passwordless\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/webauthn\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/token\/refresh$/g, /^\/identity\/resources\/users\/v[0-9]*$/g, /^\/identity\/resources\/users\/v[0-9]*\/signUp$/g, /^\/identity\/resources\/users\/v[0-9]*\/activate$/g, /^\/identity\/resources\/users\/v[0-9]*\/invitation\/accept$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/mfa\/verify$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/mfa\/[^\/]*\/[^\/]*\/verify$/g, /^\/oauth\/token$/g, /^\/oauth\/authorize\/silent$/g];
|
|
4
3
|
export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
5
4
|
export const fronteggSilentRefreshTokenUrl = `${urls.oauth.v1}/authorize/silent`;
|
|
6
5
|
export const fronteggUsersUrl = `${urls.identity.users.v2}/me`;
|