@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.
Files changed (123) hide show
  1. package/BaseApiClient.d.ts +16 -0
  2. package/BaseApiClient.js +39 -0
  3. package/ContextHolder/index.d.ts +108 -27
  4. package/ContextHolder/index.js +155 -50
  5. package/FetchClient.d.ts +42 -0
  6. package/FetchClient.js +308 -0
  7. package/account-settings/index.d.ts +19 -7
  8. package/account-settings/index.js +23 -13
  9. package/applications/index.d.ts +49 -44
  10. package/applications/index.js +51 -37
  11. package/audits/index.d.ts +27 -15
  12. package/audits/index.js +27 -17
  13. package/auth/index.d.ts +817 -768
  14. package/auth/index.js +902 -721
  15. package/auth/secutiry-poilicy/index.d.ts +58 -102
  16. package/auth/secutiry-poilicy/index.js +122 -90
  17. package/auth/utils.d.ts +2 -2
  18. package/auth/utils.js +9 -8
  19. package/connectivity/index.d.ts +126 -27
  20. package/connectivity/index.js +147 -114
  21. package/directory/index.d.ts +31 -22
  22. package/directory/index.js +27 -15
  23. package/entitlements/index.d.ts +14 -8
  24. package/entitlements/index.js +12 -4
  25. package/feature-flags/index.d.ts +8 -2
  26. package/feature-flags/index.js +16 -8
  27. package/groups/index.d.ts +73 -49
  28. package/groups/index.js +64 -45
  29. package/impersonate/index.d.ts +15 -6
  30. package/impersonate/index.js +13 -5
  31. package/index.d.ts +154 -108
  32. package/index.js +109 -78
  33. package/interfaces.d.ts +10 -0
  34. package/metadata/index.d.ts +67 -7
  35. package/metadata/index.js +52 -32
  36. package/node/BaseApiClient.js +49 -0
  37. package/node/ContextHolder/index.js +155 -50
  38. package/node/FetchClient.js +326 -0
  39. package/node/account-settings/index.js +27 -16
  40. package/node/applications/index.js +51 -44
  41. package/node/audits/index.js +31 -20
  42. package/node/auth/index.js +768 -1035
  43. package/node/auth/secutiry-poilicy/index.js +125 -136
  44. package/node/auth/utils.js +9 -7
  45. package/node/connectivity/index.js +148 -187
  46. package/node/directory/index.js +29 -20
  47. package/node/entitlements/index.js +18 -5
  48. package/node/feature-flags/index.js +21 -9
  49. package/node/groups/index.js +65 -63
  50. package/node/impersonate/index.js +18 -5
  51. package/node/index.js +116 -71
  52. package/node/metadata/index.js +61 -52
  53. package/node/notifications/index.js +37 -27
  54. package/node/reports/index.js +78 -70
  55. package/node/roles/index.js +56 -51
  56. package/node/security-center/index.js +21 -9
  57. package/node/sub-tenants/index.js +90 -89
  58. package/node/subscriptions/index.js +69 -107
  59. package/node/subscriptions/invoices.js +25 -17
  60. package/node/subscriptions/managedSubscriptions.js +32 -27
  61. package/node/subscriptions/paymentMethods.js +27 -20
  62. package/node/subscriptions/paymentProviders.js +15 -6
  63. package/node/subscriptions/plans.js +17 -9
  64. package/node/subscriptions/providers/stripe/index.js +26 -21
  65. package/node/subscriptions/subscriptions.js +32 -27
  66. package/node/subscriptions/summaries.js +15 -6
  67. package/node/subscriptions/tenantConfiguration.js +17 -9
  68. package/node/subscriptions/vendorPublicConfigurations.js +15 -6
  69. package/node/teams/index.js +130 -138
  70. package/node/tenants/index.js +65 -60
  71. package/node/user-phone-numbers/index.js +32 -24
  72. package/node/users/index.js +58 -53
  73. package/node/vendor/index.js +17 -6
  74. package/notifications/index.d.ts +22 -16
  75. package/notifications/index.js +33 -22
  76. package/package.json +1 -1
  77. package/reports/index.d.ts +50 -44
  78. package/reports/index.js +75 -62
  79. package/roles/index.d.ts +44 -38
  80. package/roles/index.js +57 -41
  81. package/security-center/index.d.ts +14 -2
  82. package/security-center/index.js +15 -6
  83. package/sub-tenants/index.d.ts +57 -15
  84. package/sub-tenants/index.js +88 -68
  85. package/subscriptions/index.d.ts +56 -11
  86. package/subscriptions/index.js +58 -11
  87. package/subscriptions/invoices.d.ts +16 -13
  88. package/subscriptions/invoices.js +24 -14
  89. package/subscriptions/managedSubscriptions.d.ts +18 -15
  90. package/subscriptions/managedSubscriptions.js +33 -22
  91. package/subscriptions/paymentMethods.d.ts +16 -13
  92. package/subscriptions/paymentMethods.js +26 -17
  93. package/subscriptions/paymentProviders.d.ts +8 -5
  94. package/subscriptions/paymentProviders.js +11 -4
  95. package/subscriptions/plans.d.ts +11 -8
  96. package/subscriptions/plans.js +14 -6
  97. package/subscriptions/providers/stripe/index.d.ts +24 -21
  98. package/subscriptions/providers/stripe/index.js +27 -16
  99. package/subscriptions/subscriptions.d.ts +24 -21
  100. package/subscriptions/subscriptions.js +33 -22
  101. package/subscriptions/summaries.d.ts +7 -4
  102. package/subscriptions/summaries.js +10 -3
  103. package/subscriptions/tenantConfiguration.d.ts +6 -3
  104. package/subscriptions/tenantConfiguration.js +15 -7
  105. package/subscriptions/vendorPublicConfigurations.d.ts +5 -2
  106. package/subscriptions/vendorPublicConfigurations.js +11 -4
  107. package/teams/index.d.ts +35 -131
  108. package/teams/index.js +122 -93
  109. package/tenants/index.d.ts +25 -37
  110. package/tenants/index.js +62 -46
  111. package/tenants/interfaces.d.ts +2 -0
  112. package/user-phone-numbers/index.d.ts +32 -26
  113. package/user-phone-numbers/index.js +32 -19
  114. package/users/index.d.ts +21 -15
  115. package/users/index.js +60 -44
  116. package/vendor/index.d.ts +12 -6
  117. package/vendor/index.js +11 -4
  118. package/fetch.d.ts +0 -24
  119. package/fetch.js +0 -265
  120. package/node/fetch.js +0 -306
  121. package/node/subscriptions/providers/index.js +0 -18
  122. package/subscriptions/providers/index.d.ts +0 -1
  123. 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 "../constants";
5
- import { Delete, Get, Patch, Post } from "../fetch";
6
- export async function getGroupById({
7
- groupId
8
- }, query) {
9
- return Get(`${urls.identity.groups.v1}/${groupId}`, _extends({}, query));
10
- }
11
- export async function getGroups(query) {
12
- return Get(`${urls.identity.groups.v1}`, _extends({}, query));
13
- }
14
- export async function getGroupsByIds(body, params) {
15
- return Post(`${urls.identity.groups.getByIds.v1}`, body, {
16
- params
17
- });
18
- }
19
- export async function createGroup(body) {
20
- return Post(`${urls.identity.groups.v1}`, body);
21
- }
22
- export async function updateGroup(_ref) {
23
- let {
24
- groupId
25
- } = _ref,
26
- body = _objectWithoutPropertiesLoose(_ref, _excluded);
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 async function updateGroupConfiguration(body) {
49
- return Post(`${urls.identity.groups.configurations.v1}`, body);
50
- }
69
+ export default new GroupsApi('default');
@@ -1,8 +1,17 @@
1
- import { IImpersonate, IImpersonateResponse } from "./interfaces";
1
+ import { IImpersonate, IImpersonateResponse } from './interfaces';
2
+ import { BaseApiClient } from '../BaseApiClient';
2
3
  /**
3
- * impersonating user should be called after creating actor token that contains information about impersonation.
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 function impersonate(body: IImpersonate): Promise<IImpersonateResponse>;
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;
@@ -1,5 +1,13 @@
1
- import { urls } from "../constants";
2
- import { Post } from "../fetch";
3
- export async function impersonate(body) {
4
- return Post(`${urls.identity.impersonate.v1}`, body);
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 * as auth from "./auth";
2
- import { AuthStrategyEnum, MachineToMachineAuthStrategy, SocialLoginProviders } from "./auth";
3
- import * as teams from "./teams";
4
- import * as metadata from "./metadata";
5
- import * as reports from "./reports";
6
- import * as notifications from "./notifications";
7
- import * as audits from "./audits";
8
- import * as fetch from "./fetch";
9
- import * as connectivity from "./connectivity";
10
- import * as tenants from "./tenants";
11
- import * as accountSettings from "./account-settings";
12
- import * as roles from "./roles";
13
- import * as subscriptions from "./subscriptions";
14
- import * as applications from "./applications";
15
- import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
16
- import { FronteggApiError } from "./error";
17
- import * as vendor from "./vendor";
18
- import * as subTenants from "./sub-tenants";
19
- import * as featureFlags from "./feature-flags";
20
- import * as directory from "./directory";
21
- import * as impersonate from "./impersonate";
22
- import * as groups from "./groups";
23
- import * as users from "./users";
24
- import * as entitlements from "./entitlements";
25
- import * as securityCenter from "./security-center";
26
- import * as userPhoneNumbers from "./user-phone-numbers";
27
- import { ContextHolder, FronteggContext } from "./ContextHolder";
28
- export * from "./interfaces";
29
- export * from "./auth/interfaces";
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 "./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";
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: typeof auth;
58
- teams: typeof teams;
59
- metadata: typeof metadata;
60
- reports: typeof reports;
61
- connectivity: typeof connectivity;
62
- notifications: typeof notifications;
63
- audits: typeof audits;
64
- tenants: typeof tenants;
65
- accountSettings: typeof accountSettings;
66
- roles: typeof roles;
67
- subscriptions: typeof subscriptions;
68
- vendor: typeof vendor;
69
- subTenants: typeof subTenants;
70
- featureFlags: typeof featureFlags;
71
- directory: typeof directory;
72
- impersonate: typeof impersonate;
73
- groups: typeof groups;
74
- users: typeof users;
75
- entitlements: typeof entitlements;
76
- securityCenter: typeof securityCenter;
77
- userPhoneNumbers: typeof userPhoneNumbers;
78
- applications: typeof applications;
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 { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
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: typeof 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
- onRedirectTo: (path: string, opts: import("./interfaces").RedirectOptions) => void;
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: typeof auth;
93
- teams: typeof teams;
94
- metadata: typeof metadata;
95
- reports: typeof reports;
96
- connectivity: typeof connectivity;
97
- notifications: typeof notifications;
98
- audits: typeof audits;
99
- tenants: typeof tenants;
100
- accountSettings: typeof accountSettings;
101
- roles: typeof roles;
102
- subscriptions: typeof subscriptions;
103
- vendor: typeof vendor;
104
- subTenants: typeof subTenants;
105
- featureFlags: typeof featureFlags;
106
- directory: typeof directory;
107
- impersonate: typeof impersonate;
108
- groups: typeof groups;
109
- users: typeof users;
110
- entitlements: typeof entitlements;
111
- securityCenter: typeof securityCenter;
112
- userPhoneNumbers: typeof userPhoneNumbers;
113
- applications: typeof applications;
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 auth.AuthStrategyEnum;
117
- MachineToMachineAuthStrategy: typeof auth.MachineToMachineAuthStrategy;
118
- SocialLoginProviders: typeof auth.SocialLoginProviders;
119
- ISubscriptionCancellationPolicy: typeof subscriptions.ISubscriptionCancellationPolicy;
120
- ISubscriptionStatus: typeof subscriptions.ISubscriptionStatus;
121
- PaymentMethodType: typeof subscriptions.PaymentMethodType;
122
- ProviderType: typeof subscriptions.ProviderType;
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;