@frontegg/rest-api 3.1.74 → 3.1.76-alpha.9502349697
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/BaseApiClient.d.ts +16 -0
- package/BaseApiClient.js +39 -0
- package/ContextHolder/index.d.ts +108 -27
- package/ContextHolder/index.js +155 -50
- package/FetchClient.d.ts +42 -0
- package/FetchClient.js +308 -0
- package/account-settings/index.d.ts +19 -7
- package/account-settings/index.js +23 -13
- package/applications/index.d.ts +49 -44
- package/applications/index.js +51 -37
- package/audits/index.d.ts +27 -15
- package/audits/index.js +27 -17
- package/auth/index.d.ts +817 -768
- package/auth/index.js +902 -721
- package/auth/secutiry-poilicy/index.d.ts +58 -102
- package/auth/secutiry-poilicy/index.js +122 -90
- package/auth/utils.d.ts +2 -2
- package/auth/utils.js +9 -8
- package/connectivity/index.d.ts +126 -27
- package/connectivity/index.js +147 -114
- package/directory/index.d.ts +31 -22
- package/directory/index.js +27 -15
- package/entitlements/index.d.ts +14 -8
- package/entitlements/index.js +12 -4
- package/feature-flags/index.d.ts +8 -2
- package/feature-flags/index.js +16 -8
- package/groups/index.d.ts +73 -49
- package/groups/index.js +64 -45
- package/impersonate/index.d.ts +15 -6
- package/impersonate/index.js +13 -5
- package/index.d.ts +154 -108
- package/index.js +109 -78
- package/interfaces.d.ts +10 -0
- package/metadata/index.d.ts +67 -7
- package/metadata/index.js +52 -32
- package/node/BaseApiClient.js +49 -0
- package/node/ContextHolder/index.js +155 -50
- package/node/FetchClient.js +326 -0
- package/node/account-settings/index.js +27 -16
- package/node/applications/index.js +51 -44
- package/node/audits/index.js +31 -20
- package/node/auth/index.js +768 -1035
- package/node/auth/secutiry-poilicy/index.js +125 -136
- package/node/auth/utils.js +9 -7
- package/node/connectivity/index.js +148 -187
- package/node/directory/index.js +29 -20
- package/node/entitlements/index.js +18 -5
- package/node/feature-flags/index.js +21 -9
- package/node/groups/index.js +65 -63
- package/node/impersonate/index.js +18 -5
- package/node/index.js +116 -71
- package/node/metadata/index.js +61 -52
- package/node/notifications/index.js +37 -27
- package/node/reports/index.js +78 -70
- package/node/roles/index.js +56 -51
- package/node/security-center/index.js +21 -9
- package/node/sub-tenants/index.js +90 -89
- package/node/subscriptions/index.js +69 -107
- package/node/subscriptions/invoices.js +25 -17
- package/node/subscriptions/managedSubscriptions.js +32 -27
- package/node/subscriptions/paymentMethods.js +27 -20
- package/node/subscriptions/paymentProviders.js +15 -6
- package/node/subscriptions/plans.js +17 -9
- package/node/subscriptions/providers/stripe/index.js +26 -21
- package/node/subscriptions/subscriptions.js +32 -27
- package/node/subscriptions/summaries.js +15 -6
- package/node/subscriptions/tenantConfiguration.js +17 -9
- package/node/subscriptions/vendorPublicConfigurations.js +15 -6
- package/node/teams/index.js +130 -138
- package/node/tenants/index.js +65 -60
- package/node/user-phone-numbers/index.js +32 -24
- package/node/users/index.js +58 -53
- package/node/vendor/index.js +17 -6
- package/notifications/index.d.ts +22 -16
- package/notifications/index.js +33 -22
- package/package.json +1 -1
- package/reports/index.d.ts +50 -44
- package/reports/index.js +75 -62
- package/roles/index.d.ts +44 -38
- package/roles/index.js +57 -41
- package/security-center/index.d.ts +14 -2
- package/security-center/index.js +15 -6
- package/sub-tenants/index.d.ts +57 -15
- package/sub-tenants/index.js +88 -68
- package/subscriptions/index.d.ts +56 -11
- package/subscriptions/index.js +58 -11
- package/subscriptions/invoices.d.ts +16 -13
- package/subscriptions/invoices.js +24 -14
- package/subscriptions/managedSubscriptions.d.ts +18 -15
- package/subscriptions/managedSubscriptions.js +33 -22
- package/subscriptions/paymentMethods.d.ts +16 -13
- package/subscriptions/paymentMethods.js +26 -17
- package/subscriptions/paymentProviders.d.ts +8 -5
- package/subscriptions/paymentProviders.js +11 -4
- package/subscriptions/plans.d.ts +11 -8
- package/subscriptions/plans.js +14 -6
- package/subscriptions/providers/stripe/index.d.ts +24 -21
- package/subscriptions/providers/stripe/index.js +27 -16
- package/subscriptions/subscriptions.d.ts +24 -21
- package/subscriptions/subscriptions.js +33 -22
- package/subscriptions/summaries.d.ts +7 -4
- package/subscriptions/summaries.js +10 -3
- package/subscriptions/tenantConfiguration.d.ts +6 -3
- package/subscriptions/tenantConfiguration.js +15 -7
- package/subscriptions/vendorPublicConfigurations.d.ts +5 -2
- package/subscriptions/vendorPublicConfigurations.js +11 -4
- package/teams/index.d.ts +35 -131
- package/teams/index.js +122 -93
- package/tenants/index.d.ts +25 -37
- package/tenants/index.js +62 -46
- package/tenants/interfaces.d.ts +2 -0
- package/user-phone-numbers/index.d.ts +32 -26
- package/user-phone-numbers/index.js +32 -19
- package/users/index.d.ts +21 -15
- package/users/index.js +60 -44
- package/vendor/index.d.ts +12 -6
- package/vendor/index.js +11 -4
- package/fetch.d.ts +0 -24
- package/fetch.js +0 -265
- package/node/fetch.js +0 -306
- package/node/subscriptions/providers/index.js +0 -18
- package/subscriptions/providers/index.d.ts +0 -1
- package/subscriptions/providers/index.js +0 -1
package/groups/index.js
CHANGED
|
@@ -1,50 +1,69 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["groupId"];
|
|
4
|
-
import { urls } from
|
|
5
|
-
import {
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
import { urls } from '../constants';
|
|
5
|
+
import { BaseApiClient } from '../BaseApiClient';
|
|
6
|
+
export class GroupsApi extends BaseApiClient {
|
|
7
|
+
constructor(appName) {
|
|
8
|
+
super(appName);
|
|
9
|
+
|
|
10
|
+
this.getGroupById = async ({
|
|
11
|
+
groupId
|
|
12
|
+
}, query) => {
|
|
13
|
+
return this.get(`${urls.identity.groups.v1}/${groupId}`, _extends({}, query));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
this.getGroups = async query => {
|
|
17
|
+
return this.get(`${urls.identity.groups.v1}`, _extends({}, query));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
this.getGroupsByIds = async (body, params) => {
|
|
21
|
+
return this.post(`${urls.identity.groups.getByIds.v1}`, body, {
|
|
22
|
+
params
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
this.createGroup = async body => {
|
|
27
|
+
return this.post(`${urls.identity.groups.v1}`, body);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
this.updateGroup = async _ref => {
|
|
31
|
+
let {
|
|
32
|
+
groupId
|
|
33
|
+
} = _ref,
|
|
34
|
+
body = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
35
|
+
|
|
36
|
+
return this.patch(`${urls.identity.groups.v1}/${groupId}`, body);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
this.deleteGroup = async groupId => {
|
|
40
|
+
return this.delete(`${urls.identity.groups.v1}/${groupId}`);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
this.addRolesToGroup = async (groupId, body) => {
|
|
44
|
+
return this.post(`${urls.identity.groups.v1}/${groupId}/roles`, body);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
this.deleteRolesFromGroup = async (groupId, body) => {
|
|
48
|
+
return this.delete(`${urls.identity.groups.v1}/${groupId}/roles`, body);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
this.addUsersToGroup = async (groupId, body) => {
|
|
52
|
+
return this.post(`${urls.identity.groups.v1}/${groupId}/users`, body);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
this.deleteUsersFromGroup = async (groupId, body) => {
|
|
56
|
+
return this.delete(`${urls.identity.groups.v1}/${groupId}/users`, body);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
this.getGroupConfiguration = async () => {
|
|
60
|
+
return this.get(`${urls.identity.groups.configurations.v1}`);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
this.updateGroupConfiguration = async body => {
|
|
64
|
+
return this.post(`${urls.identity.groups.configurations.v1}`, body);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
27
67
|
|
|
28
|
-
return Patch(`${urls.identity.groups.v1}/${groupId}`, body);
|
|
29
|
-
}
|
|
30
|
-
export async function deleteGroup(groupId) {
|
|
31
|
-
return Delete(`${urls.identity.groups.v1}/${groupId}`);
|
|
32
|
-
}
|
|
33
|
-
export async function addRolesToGroup(groupId, body) {
|
|
34
|
-
return Post(`${urls.identity.groups.v1}/${groupId}/roles`, body);
|
|
35
|
-
}
|
|
36
|
-
export async function deleteRolesFromGroup(groupId, body) {
|
|
37
|
-
return Delete(`${urls.identity.groups.v1}/${groupId}/roles`, body);
|
|
38
|
-
}
|
|
39
|
-
export async function addUsersToGroup(groupId, body) {
|
|
40
|
-
return Post(`${urls.identity.groups.v1}/${groupId}/users`, body);
|
|
41
|
-
}
|
|
42
|
-
export async function deleteUsersFromGroup(groupId, body) {
|
|
43
|
-
return Delete(`${urls.identity.groups.v1}/${groupId}/users`, body);
|
|
44
|
-
}
|
|
45
|
-
export async function getGroupConfiguration() {
|
|
46
|
-
return Get(`${urls.identity.groups.configurations.v1}`);
|
|
47
68
|
}
|
|
48
|
-
export
|
|
49
|
-
return Post(`${urls.identity.groups.configurations.v1}`, body);
|
|
50
|
-
}
|
|
69
|
+
export default new GroupsApi('default');
|
package/impersonate/index.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { IImpersonate, IImpersonateResponse } from
|
|
1
|
+
import { IImpersonate, IImpersonateResponse } from './interfaces';
|
|
2
|
+
import { BaseApiClient } from '../BaseApiClient';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* ``impersonate`` should contain impersonated user info (userId, tenantId, and vendorId) and the actor token that was created for him to perform impersonation.
|
|
5
|
-
*
|
|
6
|
-
* @throws exception if impersonation failed
|
|
4
|
+
* UsersApi class provides methods for handling user and impersonation-related API requests.
|
|
7
5
|
*/
|
|
8
|
-
export declare
|
|
6
|
+
export declare class ImpersonateApi extends BaseApiClient {
|
|
7
|
+
constructor(appName: string);
|
|
8
|
+
/**
|
|
9
|
+
* Impersonating user should be called after creating actor token that contains information about impersonation.
|
|
10
|
+
* `impersonate` should contain impersonated user info (userId, tenantId, and vendorId) and the actor token that was created for him to perform impersonation.
|
|
11
|
+
*
|
|
12
|
+
* @throws exception if impersonation failed
|
|
13
|
+
*/
|
|
14
|
+
impersonate: (body: IImpersonate) => Promise<IImpersonateResponse>;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: ImpersonateApi;
|
|
17
|
+
export default _default;
|
package/impersonate/index.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { urls } from
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { urls } from '../constants';
|
|
2
|
+
import { BaseApiClient } from '../BaseApiClient';
|
|
3
|
+
export class ImpersonateApi extends BaseApiClient {
|
|
4
|
+
constructor(appName) {
|
|
5
|
+
super(appName);
|
|
6
|
+
|
|
7
|
+
this.impersonate = async body => {
|
|
8
|
+
return this.post(`${urls.identity.impersonate.v1}`, body);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
export default new ImpersonateApi('default');
|
package/index.d.ts
CHANGED
|
@@ -1,124 +1,170 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
export * from
|
|
1
|
+
import { AuthStrategyEnum, MachineToMachineAuthStrategy, SocialLoginProviders } from './auth';
|
|
2
|
+
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
3
|
+
import { FronteggApiError } from './error';
|
|
4
|
+
import fetch, { FetchClient } from './FetchClient';
|
|
5
|
+
import { ContextHolder, FronteggContext } from './ContextHolder';
|
|
6
|
+
import { AuthenticationApi } from './auth';
|
|
7
|
+
import { SecurityPolicyApi } from './auth/secutiry-poilicy';
|
|
8
|
+
import { UsersApi } from './users';
|
|
9
|
+
import { TeamsApi } from './teams';
|
|
10
|
+
import { MetadataApi } from './metadata';
|
|
11
|
+
import { ReportsApi } from './reports';
|
|
12
|
+
import { ConnectivityApi } from './connectivity';
|
|
13
|
+
import { NotificationsApi } from './notifications';
|
|
14
|
+
import { AuditsApi } from './audits';
|
|
15
|
+
import { TenantsApi } from './tenants';
|
|
16
|
+
import { AccountSettingsApi } from './account-settings';
|
|
17
|
+
import { RolesApi } from './roles';
|
|
18
|
+
import { SubscriptionsApi } from './subscriptions';
|
|
19
|
+
import { VendorApi } from './vendor';
|
|
20
|
+
import { SubTenantsApi } from './sub-tenants';
|
|
21
|
+
import { FeatureFlagsApi } from './feature-flags';
|
|
22
|
+
import { DirectoryApi } from './directory';
|
|
23
|
+
import { ImpersonateApi } from './impersonate';
|
|
24
|
+
import { GroupsApi } from './groups';
|
|
25
|
+
import { EntitlementsApi } from './entitlements';
|
|
26
|
+
import { SecurityCenterApi } from './security-center';
|
|
27
|
+
import { PhoneNumbersApi } from './user-phone-numbers';
|
|
28
|
+
import { ApplicationsApi } from './applications';
|
|
29
|
+
export * from './interfaces';
|
|
30
|
+
export * from './auth/interfaces';
|
|
30
31
|
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, getCurrentUserTenantsFunction, FRONTEGG_SEPARATE_TABS_BY_TENANT } from './auth';
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
32
|
+
export * from './teams/interfaces';
|
|
33
|
+
export * from './metadata/interfaces';
|
|
34
|
+
export * from './reports/interfaces';
|
|
35
|
+
export * from './connectivity/interfaces';
|
|
36
|
+
export * from './notifications/interfaces';
|
|
37
|
+
export * from './audits/interfaces';
|
|
38
|
+
export * from './tenants/interfaces';
|
|
39
|
+
export * from './account-settings/interfaces';
|
|
40
|
+
export * from './roles/interfaces';
|
|
41
|
+
export * from './subscriptions/interfaces';
|
|
42
|
+
export * from './vendor/interfaces';
|
|
43
|
+
export * from './sub-tenants/interfaces';
|
|
44
|
+
export * from './routers';
|
|
45
|
+
export * from './feature-flags/index';
|
|
46
|
+
export * from './feature-flags/interfaces';
|
|
47
|
+
export * from './directory/index';
|
|
48
|
+
export * from './directory/interfaces';
|
|
49
|
+
export * from './impersonate/interfaces';
|
|
50
|
+
export * from './groups/interfaces';
|
|
51
|
+
export * from './groups/enums';
|
|
52
|
+
export * from './users/interfaces';
|
|
53
|
+
export * from './entitlements/interfaces';
|
|
54
|
+
export * from './security-center/interfaces';
|
|
55
|
+
export * from './user-phone-numbers/interfaces';
|
|
56
|
+
export * from './applications/interfaces';
|
|
57
|
+
/**
|
|
58
|
+
* Frontegg API client for default app
|
|
59
|
+
*
|
|
60
|
+
* @deprecated use createApiClient instead
|
|
61
|
+
*/
|
|
56
62
|
declare const api: {
|
|
57
|
-
auth:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
63
|
+
auth: AuthenticationApi;
|
|
64
|
+
securityPolicy: SecurityPolicyApi;
|
|
65
|
+
teams: TeamsApi;
|
|
66
|
+
metadata: MetadataApi;
|
|
67
|
+
reports: ReportsApi;
|
|
68
|
+
connectivity: ConnectivityApi;
|
|
69
|
+
notifications: NotificationsApi;
|
|
70
|
+
audits: AuditsApi;
|
|
71
|
+
tenants: TenantsApi;
|
|
72
|
+
accountSettings: AccountSettingsApi;
|
|
73
|
+
roles: RolesApi;
|
|
74
|
+
subscriptions: SubscriptionsApi;
|
|
75
|
+
vendor: VendorApi;
|
|
76
|
+
subTenants: SubTenantsApi;
|
|
77
|
+
featureFlags: FeatureFlagsApi;
|
|
78
|
+
directory: DirectoryApi;
|
|
79
|
+
impersonate: ImpersonateApi;
|
|
80
|
+
groups: GroupsApi;
|
|
81
|
+
users: UsersApi;
|
|
82
|
+
entitlements: EntitlementsApi;
|
|
83
|
+
securityCenter: SecurityCenterApi;
|
|
84
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
85
|
+
applications: ApplicationsApi;
|
|
79
86
|
};
|
|
80
|
-
export
|
|
87
|
+
export declare type FronteggApiClient = {
|
|
88
|
+
auth: AuthenticationApi;
|
|
89
|
+
securityPolicy: SecurityPolicyApi;
|
|
90
|
+
teams: TeamsApi;
|
|
91
|
+
metadata: MetadataApi;
|
|
92
|
+
reports: ReportsApi;
|
|
93
|
+
connectivity: ConnectivityApi;
|
|
94
|
+
notifications: NotificationsApi;
|
|
95
|
+
audits: AuditsApi;
|
|
96
|
+
tenants: TenantsApi;
|
|
97
|
+
accountSettings: AccountSettingsApi;
|
|
98
|
+
roles: RolesApi;
|
|
99
|
+
subscriptions: SubscriptionsApi;
|
|
100
|
+
vendor: VendorApi;
|
|
101
|
+
subTenants: SubTenantsApi;
|
|
102
|
+
featureFlags: FeatureFlagsApi;
|
|
103
|
+
directory: DirectoryApi;
|
|
104
|
+
impersonate: ImpersonateApi;
|
|
105
|
+
groups: GroupsApi;
|
|
106
|
+
users: UsersApi;
|
|
107
|
+
entitlements: EntitlementsApi;
|
|
108
|
+
securityCenter: SecurityCenterApi;
|
|
109
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
110
|
+
applications: ApplicationsApi;
|
|
111
|
+
};
|
|
112
|
+
declare const createApiClient: (appName: string) => FronteggApiClient;
|
|
113
|
+
export { fetch, FetchClient, ContextHolder, FronteggContext, api, createApiClient, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
|
|
81
114
|
declare const _default: {
|
|
82
|
-
fetch:
|
|
115
|
+
fetch: FetchClient;
|
|
116
|
+
FetchClient: typeof FetchClient;
|
|
83
117
|
ContextHolder: typeof ContextHolder;
|
|
84
118
|
FronteggContext: {
|
|
85
119
|
getContext: () => import("./interfaces").ContextOptions;
|
|
86
120
|
getAccessToken: () => string | null;
|
|
121
|
+
setAccessToken: (accessToken: string | null) => void;
|
|
87
122
|
getUser: () => import("./users/interfaces").IGetUsersV2Response | null;
|
|
88
|
-
|
|
123
|
+
setUser: (user: import("./users/interfaces").IGetUsersV2Response | null) => void;
|
|
124
|
+
onRedirectTo: (path: string, opts?: import("./interfaces").RedirectOptions | undefined) => void;
|
|
125
|
+
setOnRedirectTo: (onRedirectTo: (path: string, opts?: import("./interfaces").RedirectOptions | undefined) => void) => void;
|
|
89
126
|
logout: (callback?: (() => void) | undefined) => void;
|
|
127
|
+
getRequestSource: () => import("./interfaces").RequestSource | null;
|
|
128
|
+
setRequestSource: (requestSource: import("./interfaces").RequestSource | null) => void;
|
|
129
|
+
isSessionPerTenantEnabled: () => boolean;
|
|
130
|
+
shouldLoadEntitlements: () => boolean;
|
|
131
|
+
getAppName: () => string | null;
|
|
132
|
+
setEntitlementsOptions: (entitlementsOptions: import("./ContextHolder").EntitlementsOptions) => void;
|
|
133
|
+
setSessionContext: (sessionContext: import("./interfaces").SessionContext) => void;
|
|
90
134
|
};
|
|
91
135
|
api: {
|
|
92
|
-
auth:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
136
|
+
auth: AuthenticationApi;
|
|
137
|
+
securityPolicy: SecurityPolicyApi;
|
|
138
|
+
teams: TeamsApi;
|
|
139
|
+
metadata: MetadataApi;
|
|
140
|
+
reports: ReportsApi;
|
|
141
|
+
connectivity: ConnectivityApi;
|
|
142
|
+
notifications: NotificationsApi;
|
|
143
|
+
audits: AuditsApi;
|
|
144
|
+
tenants: TenantsApi;
|
|
145
|
+
accountSettings: AccountSettingsApi;
|
|
146
|
+
roles: RolesApi;
|
|
147
|
+
subscriptions: SubscriptionsApi;
|
|
148
|
+
vendor: VendorApi;
|
|
149
|
+
subTenants: SubTenantsApi;
|
|
150
|
+
featureFlags: FeatureFlagsApi;
|
|
151
|
+
directory: DirectoryApi;
|
|
152
|
+
impersonate: ImpersonateApi;
|
|
153
|
+
groups: GroupsApi;
|
|
154
|
+
users: UsersApi;
|
|
155
|
+
entitlements: EntitlementsApi;
|
|
156
|
+
securityCenter: SecurityCenterApi;
|
|
157
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
158
|
+
applications: ApplicationsApi;
|
|
114
159
|
};
|
|
160
|
+
createApiClient: (appName: string) => FronteggApiClient;
|
|
115
161
|
FronteggApiError: typeof FronteggApiError;
|
|
116
|
-
AuthStrategyEnum: typeof
|
|
117
|
-
MachineToMachineAuthStrategy: typeof
|
|
118
|
-
SocialLoginProviders: typeof
|
|
119
|
-
ISubscriptionCancellationPolicy: typeof
|
|
120
|
-
ISubscriptionStatus: typeof
|
|
121
|
-
PaymentMethodType: typeof
|
|
122
|
-
ProviderType: typeof
|
|
162
|
+
AuthStrategyEnum: typeof AuthStrategyEnum;
|
|
163
|
+
MachineToMachineAuthStrategy: typeof MachineToMachineAuthStrategy;
|
|
164
|
+
SocialLoginProviders: typeof SocialLoginProviders;
|
|
165
|
+
ISubscriptionCancellationPolicy: typeof ISubscriptionCancellationPolicy;
|
|
166
|
+
ISubscriptionStatus: typeof ISubscriptionStatus;
|
|
167
|
+
PaymentMethodType: typeof PaymentMethodType;
|
|
168
|
+
ProviderType: typeof ProviderType;
|
|
123
169
|
};
|
|
124
170
|
export default _default;
|