@frontegg/rest-api 3.1.72 → 3.1.74-alpha.9436511986
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 +81 -24
- package/ContextHolder/index.js +55 -43
- package/FetchClient.d.ts +35 -0
- package/FetchClient.js +286 -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 +764 -768
- package/auth/index.js +875 -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 +10 -9
- package/connectivity/index.d.ts +125 -26
- 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 +174 -108
- package/index.js +108 -79
- 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 +59 -44
- package/node/FetchClient.js +311 -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 +746 -1036
- 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 +127 -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/routers.js +1 -1
- package/node/security-center/index.js +21 -9
- package/node/sub-tenants/index.js +83 -73
- package/node/sub-tenants/interfaces.js +10 -1
- package/node/subscriptions/index.js +79 -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/routers.js +1 -1
- package/security-center/index.d.ts +14 -2
- package/security-center/index.js +15 -6
- package/sub-tenants/index.d.ts +57 -14
- package/sub-tenants/index.js +88 -61
- package/sub-tenants/interfaces.d.ts +8 -0
- package/sub-tenants/interfaces.js +7 -1
- package/subscriptions/index.d.ts +56 -11
- package/subscriptions/index.js +68 -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 +63 -47
- 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,85 +1,115 @@
|
|
|
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
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, getCurrentUserTenantsFunction } 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
|
|
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, getFronteggContext } from './ContextHolder';
|
|
6
|
+
import { AuthenticationApi } from './auth';
|
|
7
|
+
import { UsersApi } from './users';
|
|
8
|
+
import { TeamsApi } from './teams';
|
|
9
|
+
import { MetadataApi } from './metadata';
|
|
10
|
+
import { ReportsApi } from './reports';
|
|
11
|
+
import { ConnectivityApi } from './connectivity';
|
|
12
|
+
import { NotificationsApi } from './notifications';
|
|
13
|
+
import { AuditsApi } from './audits';
|
|
14
|
+
import { TenantsApi } from './tenants';
|
|
15
|
+
import { AccountSettingsApi } from './account-settings';
|
|
16
|
+
import { RolesApi } from './roles';
|
|
17
|
+
import { SubscriptionsApi } from './subscriptions';
|
|
18
|
+
import { VendorApi } from './vendor';
|
|
19
|
+
import { SubTenantsApi } from './sub-tenants';
|
|
20
|
+
import { FeatureFlagsApi } from './feature-flags';
|
|
21
|
+
import { DirectoryApi } from './directory';
|
|
22
|
+
import { ImpersonateApi } from './impersonate';
|
|
23
|
+
import { GroupsApi } from './groups';
|
|
24
|
+
import { EntitlementsApi } from './entitlements';
|
|
25
|
+
import { SecurityCenterApi } from './security-center';
|
|
26
|
+
import { PhoneNumbersApi } from './user-phone-numbers';
|
|
27
|
+
import { ApplicationsApi } from './applications';
|
|
28
|
+
export * from './interfaces';
|
|
29
|
+
export * from './auth/interfaces';
|
|
30
|
+
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, getCurrentUserTenantsFunction, FRONTEGG_SEPARATE_TABS_BY_TENANT } from './auth';
|
|
31
|
+
export * from './teams/interfaces';
|
|
32
|
+
export * from './metadata/interfaces';
|
|
33
|
+
export * from './reports/interfaces';
|
|
34
|
+
export * from './connectivity/interfaces';
|
|
35
|
+
export * from './notifications/interfaces';
|
|
36
|
+
export * from './audits/interfaces';
|
|
37
|
+
export * from './tenants/interfaces';
|
|
38
|
+
export * from './account-settings/interfaces';
|
|
39
|
+
export * from './roles/interfaces';
|
|
40
|
+
export * from './subscriptions/interfaces';
|
|
41
|
+
export * from './vendor/interfaces';
|
|
42
|
+
export * from './sub-tenants/interfaces';
|
|
43
|
+
export * from './routers';
|
|
44
|
+
export * from './feature-flags/index';
|
|
45
|
+
export * from './feature-flags/interfaces';
|
|
46
|
+
export * from './directory/index';
|
|
47
|
+
export * from './directory/interfaces';
|
|
48
|
+
export * from './impersonate/interfaces';
|
|
49
|
+
export * from './groups/interfaces';
|
|
50
|
+
export * from './groups/enums';
|
|
51
|
+
export * from './users/interfaces';
|
|
52
|
+
export * from './entitlements/interfaces';
|
|
53
|
+
export * from './security-center/interfaces';
|
|
54
|
+
export * from './user-phone-numbers/interfaces';
|
|
55
|
+
export * from './applications/interfaces';
|
|
56
|
+
/**
|
|
57
|
+
* Frontegg API client for default app
|
|
58
|
+
*
|
|
59
|
+
* @deprecated use createApiClient instead
|
|
60
|
+
*/
|
|
56
61
|
declare const api: {
|
|
57
|
-
auth:
|
|
58
|
-
teams:
|
|
59
|
-
metadata:
|
|
60
|
-
reports:
|
|
61
|
-
connectivity:
|
|
62
|
-
notifications:
|
|
63
|
-
audits:
|
|
64
|
-
tenants:
|
|
65
|
-
accountSettings:
|
|
66
|
-
roles:
|
|
67
|
-
subscriptions:
|
|
68
|
-
vendor:
|
|
69
|
-
subTenants:
|
|
70
|
-
featureFlags:
|
|
71
|
-
directory:
|
|
72
|
-
impersonate:
|
|
73
|
-
groups:
|
|
74
|
-
users:
|
|
75
|
-
entitlements:
|
|
76
|
-
securityCenter:
|
|
77
|
-
userPhoneNumbers:
|
|
78
|
-
applications:
|
|
62
|
+
auth: AuthenticationApi;
|
|
63
|
+
teams: TeamsApi;
|
|
64
|
+
metadata: MetadataApi;
|
|
65
|
+
reports: ReportsApi;
|
|
66
|
+
connectivity: ConnectivityApi;
|
|
67
|
+
notifications: NotificationsApi;
|
|
68
|
+
audits: AuditsApi;
|
|
69
|
+
tenants: TenantsApi;
|
|
70
|
+
accountSettings: AccountSettingsApi;
|
|
71
|
+
roles: RolesApi;
|
|
72
|
+
subscriptions: SubscriptionsApi;
|
|
73
|
+
vendor: VendorApi;
|
|
74
|
+
subTenants: SubTenantsApi;
|
|
75
|
+
featureFlags: FeatureFlagsApi;
|
|
76
|
+
directory: DirectoryApi;
|
|
77
|
+
impersonate: ImpersonateApi;
|
|
78
|
+
groups: GroupsApi;
|
|
79
|
+
users: UsersApi;
|
|
80
|
+
entitlements: EntitlementsApi;
|
|
81
|
+
securityCenter: SecurityCenterApi;
|
|
82
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
83
|
+
applications: ApplicationsApi;
|
|
79
84
|
};
|
|
80
|
-
|
|
85
|
+
declare const createApiClient: (appName: string) => {
|
|
86
|
+
auth: AuthenticationApi;
|
|
87
|
+
teams: TeamsApi;
|
|
88
|
+
metadata: MetadataApi;
|
|
89
|
+
reports: ReportsApi;
|
|
90
|
+
connectivity: ConnectivityApi;
|
|
91
|
+
notifications: NotificationsApi;
|
|
92
|
+
audits: AuditsApi;
|
|
93
|
+
tenants: TenantsApi;
|
|
94
|
+
accountSettings: AccountSettingsApi;
|
|
95
|
+
roles: RolesApi;
|
|
96
|
+
subscriptions: SubscriptionsApi;
|
|
97
|
+
vendor: VendorApi;
|
|
98
|
+
subTenants: SubTenantsApi;
|
|
99
|
+
featureFlags: FeatureFlagsApi;
|
|
100
|
+
directory: DirectoryApi;
|
|
101
|
+
impersonate: ImpersonateApi;
|
|
102
|
+
groups: GroupsApi;
|
|
103
|
+
users: UsersApi;
|
|
104
|
+
entitlements: EntitlementsApi;
|
|
105
|
+
securityCenter: SecurityCenterApi;
|
|
106
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
107
|
+
applications: ApplicationsApi;
|
|
108
|
+
};
|
|
109
|
+
export { fetch, ContextHolder, FronteggContext, getFronteggContext, api, createApiClient, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
|
|
81
110
|
declare const _default: {
|
|
82
|
-
fetch:
|
|
111
|
+
fetch: FetchClient;
|
|
112
|
+
FetchClient: typeof FetchClient;
|
|
83
113
|
ContextHolder: typeof ContextHolder;
|
|
84
114
|
FronteggContext: {
|
|
85
115
|
getContext: () => import("./interfaces").ContextOptions;
|
|
@@ -88,37 +118,73 @@ declare const _default: {
|
|
|
88
118
|
onRedirectTo: (path: string, opts: import("./interfaces").RedirectOptions) => void;
|
|
89
119
|
logout: (callback?: (() => void) | undefined) => void;
|
|
90
120
|
};
|
|
121
|
+
getFronteggContext: (appName?: string) => {
|
|
122
|
+
getContext: () => import("./interfaces").ContextOptions;
|
|
123
|
+
getAccessToken: () => string | null;
|
|
124
|
+
getUser: () => import("./users/interfaces").IGetUsersV2Response | null;
|
|
125
|
+
onRedirectTo: (path: string, opts?: import("./interfaces").RedirectOptions | undefined) => void;
|
|
126
|
+
logout: (callback?: (() => void) | undefined) => void;
|
|
127
|
+
getRequestSource: () => import("./interfaces").RequestSource | null;
|
|
128
|
+
setAccessToken: (accessToken: string | null) => void;
|
|
129
|
+
setUser: (user: import("./users/interfaces").IGetUsersV2Response | null) => void;
|
|
130
|
+
isSessionPerTenantEnabled: () => boolean;
|
|
131
|
+
shouldLoadEntitlements: () => boolean;
|
|
132
|
+
};
|
|
91
133
|
api: {
|
|
92
|
-
auth:
|
|
93
|
-
teams:
|
|
94
|
-
metadata:
|
|
95
|
-
reports:
|
|
96
|
-
connectivity:
|
|
97
|
-
notifications:
|
|
98
|
-
audits:
|
|
99
|
-
tenants:
|
|
100
|
-
accountSettings:
|
|
101
|
-
roles:
|
|
102
|
-
subscriptions:
|
|
103
|
-
vendor:
|
|
104
|
-
subTenants:
|
|
105
|
-
featureFlags:
|
|
106
|
-
directory:
|
|
107
|
-
impersonate:
|
|
108
|
-
groups:
|
|
109
|
-
users:
|
|
110
|
-
entitlements:
|
|
111
|
-
securityCenter:
|
|
112
|
-
userPhoneNumbers:
|
|
113
|
-
applications:
|
|
134
|
+
auth: AuthenticationApi;
|
|
135
|
+
teams: TeamsApi;
|
|
136
|
+
metadata: MetadataApi;
|
|
137
|
+
reports: ReportsApi;
|
|
138
|
+
connectivity: ConnectivityApi;
|
|
139
|
+
notifications: NotificationsApi;
|
|
140
|
+
audits: AuditsApi;
|
|
141
|
+
tenants: TenantsApi;
|
|
142
|
+
accountSettings: AccountSettingsApi;
|
|
143
|
+
roles: RolesApi;
|
|
144
|
+
subscriptions: SubscriptionsApi;
|
|
145
|
+
vendor: VendorApi;
|
|
146
|
+
subTenants: SubTenantsApi;
|
|
147
|
+
featureFlags: FeatureFlagsApi;
|
|
148
|
+
directory: DirectoryApi;
|
|
149
|
+
impersonate: ImpersonateApi;
|
|
150
|
+
groups: GroupsApi;
|
|
151
|
+
users: UsersApi;
|
|
152
|
+
entitlements: EntitlementsApi;
|
|
153
|
+
securityCenter: SecurityCenterApi;
|
|
154
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
155
|
+
applications: ApplicationsApi;
|
|
156
|
+
};
|
|
157
|
+
createApiClient: (appName: string) => {
|
|
158
|
+
auth: AuthenticationApi;
|
|
159
|
+
teams: TeamsApi;
|
|
160
|
+
metadata: MetadataApi;
|
|
161
|
+
reports: ReportsApi;
|
|
162
|
+
connectivity: ConnectivityApi;
|
|
163
|
+
notifications: NotificationsApi;
|
|
164
|
+
audits: AuditsApi;
|
|
165
|
+
tenants: TenantsApi;
|
|
166
|
+
accountSettings: AccountSettingsApi;
|
|
167
|
+
roles: RolesApi;
|
|
168
|
+
subscriptions: SubscriptionsApi;
|
|
169
|
+
vendor: VendorApi;
|
|
170
|
+
subTenants: SubTenantsApi;
|
|
171
|
+
featureFlags: FeatureFlagsApi;
|
|
172
|
+
directory: DirectoryApi;
|
|
173
|
+
impersonate: ImpersonateApi;
|
|
174
|
+
groups: GroupsApi;
|
|
175
|
+
users: UsersApi;
|
|
176
|
+
entitlements: EntitlementsApi;
|
|
177
|
+
securityCenter: SecurityCenterApi;
|
|
178
|
+
userPhoneNumbers: PhoneNumbersApi;
|
|
179
|
+
applications: ApplicationsApi;
|
|
114
180
|
};
|
|
115
181
|
FronteggApiError: typeof FronteggApiError;
|
|
116
|
-
AuthStrategyEnum: typeof
|
|
117
|
-
MachineToMachineAuthStrategy: typeof
|
|
118
|
-
SocialLoginProviders: typeof
|
|
119
|
-
ISubscriptionCancellationPolicy: typeof
|
|
120
|
-
ISubscriptionStatus: typeof
|
|
121
|
-
PaymentMethodType: typeof
|
|
122
|
-
ProviderType: typeof
|
|
182
|
+
AuthStrategyEnum: typeof AuthStrategyEnum;
|
|
183
|
+
MachineToMachineAuthStrategy: typeof MachineToMachineAuthStrategy;
|
|
184
|
+
SocialLoginProviders: typeof SocialLoginProviders;
|
|
185
|
+
ISubscriptionCancellationPolicy: typeof ISubscriptionCancellationPolicy;
|
|
186
|
+
ISubscriptionStatus: typeof ISubscriptionStatus;
|
|
187
|
+
PaymentMethodType: typeof PaymentMethodType;
|
|
188
|
+
ProviderType: typeof ProviderType;
|
|
123
189
|
};
|
|
124
190
|
export default _default;
|