@frontegg/rest-api 3.1.76-alpha.9502349697 → 3.1.76-alpha.9762981322
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/ContextHolder/index.d.ts +30 -108
- package/ContextHolder/index.js +57 -153
- package/account-settings/index.d.ts +7 -19
- package/account-settings/index.js +13 -23
- package/applications/index.d.ts +44 -49
- package/applications/index.js +37 -51
- package/audits/index.d.ts +15 -27
- package/audits/index.js +17 -27
- package/auth/index.d.ts +768 -817
- package/auth/index.js +721 -902
- package/auth/secutiry-poilicy/index.d.ts +102 -58
- package/auth/secutiry-poilicy/index.js +90 -122
- package/auth/utils.d.ts +2 -2
- package/auth/utils.js +8 -9
- package/connectivity/index.d.ts +27 -126
- package/connectivity/index.js +114 -147
- package/directory/index.d.ts +22 -31
- package/directory/index.js +15 -27
- package/entitlements/index.d.ts +8 -14
- package/entitlements/index.js +4 -12
- package/feature-flags/index.d.ts +2 -8
- package/feature-flags/index.js +8 -16
- package/fetch.d.ts +24 -0
- package/fetch.js +265 -0
- package/groups/index.d.ts +49 -73
- package/groups/index.js +45 -64
- package/impersonate/index.d.ts +6 -15
- package/impersonate/index.js +5 -13
- package/index.d.ts +108 -154
- package/index.js +78 -109
- package/interfaces.d.ts +0 -10
- package/metadata/index.d.ts +7 -67
- package/metadata/index.js +32 -52
- package/node/ContextHolder/index.js +57 -153
- package/node/account-settings/index.js +16 -27
- package/node/applications/index.js +44 -51
- package/node/audits/index.js +20 -31
- package/node/auth/index.js +1035 -768
- package/node/auth/secutiry-poilicy/index.js +136 -125
- package/node/auth/utils.js +7 -9
- package/node/connectivity/index.js +187 -148
- package/node/directory/index.js +20 -29
- package/node/entitlements/index.js +5 -18
- package/node/feature-flags/index.js +9 -21
- package/node/fetch.js +306 -0
- package/node/groups/index.js +63 -65
- package/node/impersonate/index.js +5 -18
- package/node/index.js +71 -116
- package/node/metadata/index.js +52 -61
- package/node/notifications/index.js +27 -37
- package/node/reports/index.js +70 -78
- package/node/roles/index.js +51 -56
- package/node/security-center/index.js +9 -21
- package/node/sub-tenants/index.js +89 -90
- package/node/subscriptions/index.js +107 -69
- package/node/subscriptions/invoices.js +17 -25
- package/node/subscriptions/managedSubscriptions.js +27 -32
- package/node/subscriptions/paymentMethods.js +20 -27
- package/node/subscriptions/paymentProviders.js +6 -15
- package/node/subscriptions/plans.js +9 -17
- package/node/subscriptions/providers/index.js +18 -0
- package/node/subscriptions/providers/stripe/index.js +21 -26
- package/node/subscriptions/subscriptions.js +27 -32
- package/node/subscriptions/summaries.js +6 -15
- package/node/subscriptions/tenantConfiguration.js +9 -17
- package/node/subscriptions/vendorPublicConfigurations.js +6 -15
- package/node/teams/index.js +138 -130
- package/node/tenants/index.js +60 -65
- package/node/user-phone-numbers/index.js +24 -32
- package/node/users/index.js +53 -58
- package/node/vendor/index.js +6 -17
- package/notifications/index.d.ts +16 -22
- package/notifications/index.js +22 -33
- package/package.json +1 -1
- package/reports/index.d.ts +44 -50
- package/reports/index.js +62 -75
- package/roles/index.d.ts +38 -44
- package/roles/index.js +41 -57
- package/security-center/index.d.ts +2 -14
- package/security-center/index.js +6 -15
- package/sub-tenants/index.d.ts +15 -57
- package/sub-tenants/index.js +68 -88
- package/subscriptions/index.d.ts +11 -56
- package/subscriptions/index.js +11 -58
- package/subscriptions/invoices.d.ts +13 -16
- package/subscriptions/invoices.js +14 -24
- package/subscriptions/managedSubscriptions.d.ts +15 -18
- package/subscriptions/managedSubscriptions.js +22 -33
- package/subscriptions/paymentMethods.d.ts +13 -16
- package/subscriptions/paymentMethods.js +17 -26
- package/subscriptions/paymentProviders.d.ts +5 -8
- package/subscriptions/paymentProviders.js +4 -11
- package/subscriptions/plans.d.ts +8 -11
- package/subscriptions/plans.js +6 -14
- package/subscriptions/providers/index.d.ts +1 -0
- package/subscriptions/providers/index.js +1 -0
- package/subscriptions/providers/stripe/index.d.ts +21 -24
- package/subscriptions/providers/stripe/index.js +16 -27
- package/subscriptions/subscriptions.d.ts +21 -24
- package/subscriptions/subscriptions.js +22 -33
- package/subscriptions/summaries.d.ts +4 -7
- package/subscriptions/summaries.js +3 -10
- package/subscriptions/tenantConfiguration.d.ts +3 -6
- package/subscriptions/tenantConfiguration.js +7 -15
- package/subscriptions/vendorPublicConfigurations.d.ts +2 -5
- package/subscriptions/vendorPublicConfigurations.js +4 -11
- package/teams/index.d.ts +131 -35
- package/teams/index.js +93 -122
- package/tenants/index.d.ts +37 -25
- package/tenants/index.js +46 -62
- package/user-phone-numbers/index.d.ts +26 -32
- package/user-phone-numbers/index.js +19 -32
- package/users/index.d.ts +15 -21
- package/users/index.js +44 -60
- package/vendor/index.d.ts +6 -12
- package/vendor/index.js +4 -11
- package/BaseApiClient.d.ts +0 -16
- package/BaseApiClient.js +0 -39
- package/FetchClient.d.ts +0 -42
- package/FetchClient.js +0 -308
- package/node/BaseApiClient.js +0 -49
- package/node/FetchClient.js +0 -326
package/index.d.ts
CHANGED
|
@@ -1,170 +1,124 @@
|
|
|
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
|
|
30
|
-
export * from './auth/interfaces';
|
|
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";
|
|
31
30
|
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, getCurrentUserTenantsFunction, FRONTEGG_SEPARATE_TABS_BY_TENANT } from './auth';
|
|
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
|
|
56
|
-
export * from
|
|
57
|
-
/**
|
|
58
|
-
* Frontegg API client for default app
|
|
59
|
-
*
|
|
60
|
-
* @deprecated use createApiClient instead
|
|
61
|
-
*/
|
|
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";
|
|
62
56
|
declare const api: {
|
|
63
|
-
auth:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
applications: ApplicationsApi;
|
|
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;
|
|
86
79
|
};
|
|
87
|
-
export
|
|
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, };
|
|
80
|
+
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
|
|
114
81
|
declare const _default: {
|
|
115
|
-
fetch:
|
|
116
|
-
FetchClient: typeof FetchClient;
|
|
82
|
+
fetch: typeof fetch;
|
|
117
83
|
ContextHolder: typeof ContextHolder;
|
|
118
84
|
FronteggContext: {
|
|
119
85
|
getContext: () => import("./interfaces").ContextOptions;
|
|
120
86
|
getAccessToken: () => string | null;
|
|
121
|
-
setAccessToken: (accessToken: string | null) => void;
|
|
122
87
|
getUser: () => import("./users/interfaces").IGetUsersV2Response | null;
|
|
123
|
-
|
|
124
|
-
onRedirectTo: (path: string, opts?: import("./interfaces").RedirectOptions | undefined) => void;
|
|
125
|
-
setOnRedirectTo: (onRedirectTo: (path: string, opts?: import("./interfaces").RedirectOptions | undefined) => void) => void;
|
|
88
|
+
onRedirectTo: (path: string, opts: import("./interfaces").RedirectOptions) => void;
|
|
126
89
|
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;
|
|
134
90
|
};
|
|
135
91
|
api: {
|
|
136
|
-
auth:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
applications: ApplicationsApi;
|
|
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;
|
|
159
114
|
};
|
|
160
|
-
createApiClient: (appName: string) => FronteggApiClient;
|
|
161
115
|
FronteggApiError: typeof FronteggApiError;
|
|
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;
|
|
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;
|
|
169
123
|
};
|
|
170
124
|
export default _default;
|
package/index.js
CHANGED
|
@@ -1,124 +1,93 @@
|
|
|
1
|
-
/** @license Frontegg v3.1.76-alpha.
|
|
1
|
+
/** @license Frontegg v3.1.76-alpha.9762981322
|
|
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.
|
|
5
5
|
*/
|
|
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
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
export * from
|
|
35
|
-
export * from './auth/interfaces';
|
|
6
|
+
import * as auth from "./auth";
|
|
7
|
+
import { AuthStrategyEnum, MachineToMachineAuthStrategy, SocialLoginProviders } from "./auth";
|
|
8
|
+
import * as teams from "./teams";
|
|
9
|
+
import * as metadata from "./metadata";
|
|
10
|
+
import * as reports from "./reports";
|
|
11
|
+
import * as notifications from "./notifications";
|
|
12
|
+
import * as audits from "./audits";
|
|
13
|
+
import * as fetch from "./fetch";
|
|
14
|
+
import * as connectivity from "./connectivity";
|
|
15
|
+
import * as tenants from "./tenants";
|
|
16
|
+
import * as accountSettings from "./account-settings";
|
|
17
|
+
import * as roles from "./roles";
|
|
18
|
+
import * as subscriptions from "./subscriptions";
|
|
19
|
+
import * as applications from "./applications";
|
|
20
|
+
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
|
|
21
|
+
import { FronteggApiError } from "./error";
|
|
22
|
+
import * as vendor from "./vendor";
|
|
23
|
+
import * as subTenants from "./sub-tenants";
|
|
24
|
+
import * as featureFlags from "./feature-flags";
|
|
25
|
+
import * as directory from "./directory";
|
|
26
|
+
import * as impersonate from "./impersonate";
|
|
27
|
+
import * as groups from "./groups";
|
|
28
|
+
import * as users from "./users";
|
|
29
|
+
import * as entitlements from "./entitlements";
|
|
30
|
+
import * as securityCenter from "./security-center";
|
|
31
|
+
import * as userPhoneNumbers from "./user-phone-numbers";
|
|
32
|
+
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
33
|
+
export * from "./interfaces";
|
|
34
|
+
export * from "./auth/interfaces";
|
|
36
35
|
export { setTabTenantInSessionStorage, getTabTenantFromSessionStorage, removeTabTenantFromSessionStorage, getCurrentUserTenantsFunction, FRONTEGG_SEPARATE_TABS_BY_TENANT } from './auth';
|
|
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
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
60
|
-
export * from
|
|
61
|
-
export * from
|
|
36
|
+
export * from "./teams/interfaces";
|
|
37
|
+
export * from "./metadata/interfaces";
|
|
38
|
+
export * from "./reports/interfaces";
|
|
39
|
+
export * from "./connectivity/interfaces";
|
|
40
|
+
export * from "./notifications/interfaces";
|
|
41
|
+
export * from "./audits/interfaces";
|
|
42
|
+
export * from "./tenants/interfaces";
|
|
43
|
+
export * from "./account-settings/interfaces";
|
|
44
|
+
export * from "./roles/interfaces";
|
|
45
|
+
export * from "./subscriptions/interfaces";
|
|
46
|
+
export * from "./vendor/interfaces";
|
|
47
|
+
export * from "./sub-tenants/interfaces";
|
|
48
|
+
export * from "./routers";
|
|
49
|
+
export * from "./feature-flags/index";
|
|
50
|
+
export * from "./feature-flags/interfaces";
|
|
51
|
+
export * from "./directory/index";
|
|
52
|
+
export * from "./directory/interfaces";
|
|
53
|
+
export * from "./impersonate/interfaces";
|
|
54
|
+
export * from "./groups/interfaces";
|
|
55
|
+
export * from "./groups/enums";
|
|
56
|
+
export * from "./users/interfaces";
|
|
57
|
+
export * from "./entitlements/interfaces";
|
|
58
|
+
export * from "./security-center/interfaces";
|
|
59
|
+
export * from "./user-phone-numbers/interfaces";
|
|
60
|
+
export * from "./applications/interfaces";
|
|
62
61
|
const api = {
|
|
63
|
-
auth
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
applications: DefaultApplicationsApi
|
|
62
|
+
auth,
|
|
63
|
+
teams,
|
|
64
|
+
metadata,
|
|
65
|
+
reports,
|
|
66
|
+
connectivity,
|
|
67
|
+
notifications,
|
|
68
|
+
audits,
|
|
69
|
+
tenants,
|
|
70
|
+
accountSettings,
|
|
71
|
+
roles,
|
|
72
|
+
subscriptions,
|
|
73
|
+
vendor,
|
|
74
|
+
subTenants,
|
|
75
|
+
featureFlags,
|
|
76
|
+
directory,
|
|
77
|
+
impersonate,
|
|
78
|
+
groups,
|
|
79
|
+
users,
|
|
80
|
+
entitlements,
|
|
81
|
+
securityCenter,
|
|
82
|
+
userPhoneNumbers,
|
|
83
|
+
applications
|
|
86
84
|
};
|
|
87
|
-
|
|
88
|
-
const createApiClient = appName => ({
|
|
89
|
-
auth: new AuthenticationApi(appName),
|
|
90
|
-
securityPolicy: new SecurityPolicyApi(appName),
|
|
91
|
-
teams: new TeamsApi(appName),
|
|
92
|
-
metadata: new MetadataApi(appName),
|
|
93
|
-
reports: new ReportsApi(appName),
|
|
94
|
-
connectivity: new ConnectivityApi(appName),
|
|
95
|
-
notifications: new NotificationsApi(appName),
|
|
96
|
-
audits: new AuditsApi(appName),
|
|
97
|
-
tenants: new TenantsApi(appName),
|
|
98
|
-
accountSettings: new AccountSettingsApi(appName),
|
|
99
|
-
roles: new RolesApi(appName),
|
|
100
|
-
subscriptions: new SubscriptionsApi(appName),
|
|
101
|
-
vendor: new VendorApi(appName),
|
|
102
|
-
subTenants: new SubTenantsApi(appName),
|
|
103
|
-
featureFlags: new FeatureFlagsApi(appName),
|
|
104
|
-
directory: new DirectoryApi(appName),
|
|
105
|
-
impersonate: new ImpersonateApi(appName),
|
|
106
|
-
groups: new GroupsApi(appName),
|
|
107
|
-
users: new UsersApi(appName),
|
|
108
|
-
entitlements: new EntitlementsApi(appName),
|
|
109
|
-
securityCenter: new SecurityCenterApi(appName),
|
|
110
|
-
userPhoneNumbers: new PhoneNumbersApi(appName),
|
|
111
|
-
applications: new ApplicationsApi(appName)
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
export { fetch, FetchClient, ContextHolder, FronteggContext, api, createApiClient, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy };
|
|
85
|
+
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy };
|
|
115
86
|
export default {
|
|
116
87
|
fetch,
|
|
117
|
-
FetchClient,
|
|
118
88
|
ContextHolder,
|
|
119
89
|
FronteggContext,
|
|
120
90
|
api,
|
|
121
|
-
createApiClient,
|
|
122
91
|
FronteggApiError,
|
|
123
92
|
AuthStrategyEnum,
|
|
124
93
|
MachineToMachineAuthStrategy,
|
package/interfaces.d.ts
CHANGED
|
@@ -102,13 +102,3 @@ export declare enum PaginationOrderEnum {
|
|
|
102
102
|
ASC = "ASC",
|
|
103
103
|
DESC = "DESC"
|
|
104
104
|
}
|
|
105
|
-
export interface RequestOptions {
|
|
106
|
-
url: string;
|
|
107
|
-
method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
|
108
|
-
body?: any;
|
|
109
|
-
params?: any;
|
|
110
|
-
contentType?: string;
|
|
111
|
-
responseType?: 'json' | 'plain' | 'blob';
|
|
112
|
-
headers?: Record<string, string>;
|
|
113
|
-
credentials?: RequestCredentials;
|
|
114
|
-
}
|
package/metadata/index.d.ts
CHANGED
|
@@ -1,68 +1,8 @@
|
|
|
1
1
|
import { CommitChangesRequest, IAuditsMetadata, IMetadataIp, INotificationMetadata, ISamlMetadata } from './interfaces';
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @returns Metadata matching the criteria.
|
|
10
|
-
* @throws Will throw an error if metadata is not found.
|
|
11
|
-
*/
|
|
12
|
-
private getMetadata;
|
|
13
|
-
/**
|
|
14
|
-
* Retrieves admin box metadata.
|
|
15
|
-
*
|
|
16
|
-
* @returns Admin box metadata.
|
|
17
|
-
*/
|
|
18
|
-
getAdminBoxMetadata: () => Promise<unknown>;
|
|
19
|
-
/**
|
|
20
|
-
* Updates admin box metadata.
|
|
21
|
-
*
|
|
22
|
-
* @param body - Request body for committing changes.
|
|
23
|
-
* @returns Response from the POST request.
|
|
24
|
-
*/
|
|
25
|
-
updateAdminBoxMetadata: (body: CommitChangesRequest) => Promise<unknown>;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves IP metadata for a given IP address.
|
|
28
|
-
*
|
|
29
|
-
* @param ip - IP address to get metadata for.
|
|
30
|
-
* @returns IP metadata.
|
|
31
|
-
* @throws Will throw an error if IP metadata is not found.
|
|
32
|
-
*/
|
|
33
|
-
private getIpMetadata;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves current user IP metadata.
|
|
36
|
-
*
|
|
37
|
-
* @returns Current user IP metadata.
|
|
38
|
-
* @throws Will throw an error if IP metadata is not found.
|
|
39
|
-
*/
|
|
40
|
-
getCurrentUserIpMetadata: () => Promise<IMetadataIp>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves notifications metadata.
|
|
43
|
-
*
|
|
44
|
-
* @returns Notifications metadata.
|
|
45
|
-
*/
|
|
46
|
-
getNotificationsMetadata: () => Promise<INotificationMetadata>;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves SAML metadata.
|
|
49
|
-
*
|
|
50
|
-
* @returns SAML metadata.
|
|
51
|
-
*/
|
|
52
|
-
getSamlMetadata: () => Promise<ISamlMetadata>;
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves audits metadata.
|
|
55
|
-
*
|
|
56
|
-
* @returns Audits metadata.
|
|
57
|
-
*/
|
|
58
|
-
getAuditsMetadata: () => Promise<IAuditsMetadata>;
|
|
59
|
-
/**
|
|
60
|
-
* Retrieves IP address metadata for a given IP.
|
|
61
|
-
*
|
|
62
|
-
* @param ip - IP address to get metadata for.
|
|
63
|
-
* @returns IP address metadata.
|
|
64
|
-
*/
|
|
65
|
-
getIpAdressMetadata: (ip: string) => Promise<IMetadataIp>;
|
|
66
|
-
}
|
|
67
|
-
declare const _default: MetadataApi;
|
|
68
|
-
export default _default;
|
|
2
|
+
export declare function getAdminBoxMetadata(): Promise<any>;
|
|
3
|
+
export declare function updateAdminBoxMetadata(body: CommitChangesRequest): Promise<any>;
|
|
4
|
+
export declare function getCurrentUserIpMetadata(): Promise<IMetadataIp>;
|
|
5
|
+
export declare const getNotificationsMetadata: () => Promise<INotificationMetadata>;
|
|
6
|
+
export declare const getSamlMetadata: () => Promise<ISamlMetadata>;
|
|
7
|
+
export declare const getAuditsMetadata: () => Promise<IAuditsMetadata>;
|
|
8
|
+
export declare const getIpAdressMetadata: (ip: string) => Promise<IMetadataIp>;
|