@frontegg/redux-store 6.77.0-alpha.2 → 6.77.0-alpha.4
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/auth/ApiTokensState/index.d.ts +6 -6
- package/auth/LoginState/index.d.ts +4 -4
- package/auth/LoginState/saga.js +1 -0
- package/auth/MfaState/index.d.ts +2 -2
- package/auth/ResetPhoneNumberState/index.d.ts +2 -2
- package/auth/ResetPhoneNumberState/interfaces.d.ts +1 -1
- package/auth/RestrictionsState/index.d.ts +2 -2
- package/auth/SSOState/index.d.ts +2 -2
- package/auth/SignUp/saga.d.ts +1 -1
- package/auth/TeamState/index.d.ts +6 -6
- package/auth/TenantsState/index.d.ts +6 -6
- package/auth/index.d.ts +30 -30
- package/auth/reducer.d.ts +30 -30
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/interfaces.d.ts +2 -1
- package/node/auth/LoginState/saga.js +1 -0
- package/node/index.js +1 -1
- package/package.json +1 -1
|
@@ -113,19 +113,19 @@ declare const reducers: {
|
|
|
113
113
|
};
|
|
114
114
|
declare const actions: {
|
|
115
115
|
loadApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(WithSilentLoad<{
|
|
116
|
-
callback?: (
|
|
116
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
117
117
|
}> | undefined)?], WithSilentLoad<{
|
|
118
|
-
callback?: (
|
|
118
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
119
119
|
}> | undefined, string, never, never>;
|
|
120
120
|
loadUserApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(WithSilentLoad<{
|
|
121
|
-
callback?: (
|
|
121
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
122
122
|
}> | undefined)?], WithSilentLoad<{
|
|
123
|
-
callback?: (
|
|
123
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
124
124
|
}> | undefined, string, never, never>;
|
|
125
125
|
loadTenantApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(WithSilentLoad<{
|
|
126
|
-
callback?: (
|
|
126
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
127
127
|
}> | undefined)?], WithSilentLoad<{
|
|
128
|
-
callback?: (
|
|
128
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
129
129
|
}> | undefined, string, never, never>;
|
|
130
130
|
initApiTokensData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[ApiTokenType], ApiTokenType, string, never, never>;
|
|
131
131
|
addTenantApiToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<Pick<import("./interfaces").ITenantApiTokensData, "description" | "roleIds" | "expires">, boolean>], WithCallback<Pick<import("./interfaces").ITenantApiTokensData, "description" | "roleIds" | "expires">, boolean>, string, never, never>;
|
|
@@ -132,15 +132,15 @@ declare const actions: {
|
|
|
132
132
|
webAuthnPrelogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>], WithCallback<IWebAuthnPreLogin, IWebAuthnPreLoginResponse | null>, string, never, never>;
|
|
133
133
|
webAuthnPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IWebAuthnPostLoginPayload], IWebAuthnPostLoginPayload, string, never, never>;
|
|
134
134
|
webAuthnCreateNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
135
|
-
callback?: (
|
|
135
|
+
callback?: import("../../interfaces").CallbackMethod<ICreateNewDeviceSessionResponse | null> | undefined;
|
|
136
136
|
}], {
|
|
137
|
-
callback?: (
|
|
137
|
+
callback?: import("../../interfaces").CallbackMethod<ICreateNewDeviceSessionResponse | null> | undefined;
|
|
138
138
|
}, string, never, never>;
|
|
139
139
|
webAuthnVerifyNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IVerifyNewWebAuthnDevicePayload], IVerifyNewWebAuthnDevicePayload, string, never, never>;
|
|
140
140
|
getUserIP: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
141
|
-
callback?: (
|
|
141
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
142
142
|
}], {
|
|
143
|
-
callback?: (
|
|
143
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
144
144
|
}, string, never, never>;
|
|
145
145
|
preEnrollMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IPreEnrollMFA, IPreEnrollMFAWebAuthNForLoginResponse>], WithCallback<IPreEnrollMFA, IPreEnrollMFAWebAuthNForLoginResponse>, string, never, never>;
|
|
146
146
|
enrollMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IEnrollMFAWebAuthnPayload], IEnrollMFAWebAuthnPayload, string, never, never>;
|
package/auth/LoginState/saga.js
CHANGED
package/auth/MfaState/index.d.ts
CHANGED
|
@@ -111,9 +111,9 @@ declare const actions: {
|
|
|
111
111
|
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>], WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>, string, never, never>;
|
|
112
112
|
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>], WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>, string, never, never>;
|
|
113
113
|
preEnrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
114
|
-
callback?: (
|
|
114
|
+
callback?: import("../../interfaces").CallbackMethod<IPreEnrollMFAWebAuthNForLoginResponse> | undefined;
|
|
115
115
|
}], {
|
|
116
|
-
callback?: (
|
|
116
|
+
callback?: import("../../interfaces").CallbackMethod<IPreEnrollMFAWebAuthNForLoginResponse> | undefined;
|
|
117
117
|
}, string, never, never>;
|
|
118
118
|
enrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[IUserEnrollMFAWebAuthnPayload], IUserEnrollMFAWebAuthnPayload, string, never, never>;
|
|
119
119
|
preDisableMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<{
|
|
@@ -98,10 +98,10 @@ declare const actions: {
|
|
|
98
98
|
resetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResetPhoneNumber, boolean>], WithCallback<IResetPhoneNumber, boolean>, string, never, never>;
|
|
99
99
|
verifyResetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IVerifyResetPhoneNumber, boolean>], WithCallback<IVerifyResetPhoneNumber, boolean>, string, never, never>;
|
|
100
100
|
changePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
101
|
-
recaptchaToken
|
|
101
|
+
recaptchaToken?: string | undefined;
|
|
102
102
|
email: string;
|
|
103
103
|
}, boolean>], WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
104
|
-
recaptchaToken
|
|
104
|
+
recaptchaToken?: string | undefined;
|
|
105
105
|
email: string;
|
|
106
106
|
}, boolean>, string, never, never>;
|
|
107
107
|
};
|
|
@@ -154,9 +154,9 @@ declare const reducers: {
|
|
|
154
154
|
declare const actions: {
|
|
155
155
|
checkIfUserIpValid: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
156
156
|
addCurrentUserIpAndActivate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
157
|
-
callback?: (
|
|
157
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
158
158
|
}], {
|
|
159
|
-
callback?: (
|
|
159
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
160
160
|
}, string, never, never>;
|
|
161
161
|
loadIpRestrictions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
162
162
|
saveIpRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<CreateIpRestriction, boolean>], WithCallback<CreateIpRestriction, boolean>, string, never, never>;
|
package/auth/SSOState/index.d.ts
CHANGED
|
@@ -193,9 +193,9 @@ declare const actions: {
|
|
|
193
193
|
configFile: File;
|
|
194
194
|
}, boolean>, string, never, never>;
|
|
195
195
|
validateSSODomain: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
196
|
-
callback?: (
|
|
196
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
197
197
|
} | undefined)?], {
|
|
198
|
-
callback?: (
|
|
198
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
199
199
|
} | undefined, string, never, never>;
|
|
200
200
|
updateSSOAuthorizationRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<{
|
|
201
201
|
authorizationRoles: string[];
|
package/auth/SignUp/saga.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare function signUpUser({ payload: { events, url, ...payload } }: Pay
|
|
|
46
46
|
type: string;
|
|
47
47
|
}> | import("redux-saga/effects").PutEffect<{
|
|
48
48
|
payload: {
|
|
49
|
-
callback?: (
|
|
49
|
+
callback?: import("../..").CallbackMethod<import("@frontegg/rest-api").ITenantsResponse[]> | undefined;
|
|
50
50
|
} | undefined;
|
|
51
51
|
type: string;
|
|
52
52
|
}>, void, {
|
|
@@ -116,15 +116,15 @@ declare const actions: {
|
|
|
116
116
|
loadUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<WithSilentLoad<ILoadUsers>, ITeamUser[]>], WithCallback<WithSilentLoad<ILoadUsers>, ITeamUser[]>, string, never, never>;
|
|
117
117
|
loadAllSubTenantsUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<WithSilentLoad<Partial<ILoadAllUsers>>, ISubTenantUser[]>], WithCallback<WithSilentLoad<Partial<ILoadAllUsers>>, ISubTenantUser[]>, string, never, never>;
|
|
118
118
|
loadRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
119
|
-
callback?: (
|
|
119
|
+
callback?: import("../../interfaces").CallbackMethod<{
|
|
120
120
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
121
121
|
permissions: import("@frontegg/rest-api").ITeamUserPermission[];
|
|
122
|
-
} |
|
|
122
|
+
}> | undefined;
|
|
123
123
|
} | undefined)?], {
|
|
124
|
-
callback?: (
|
|
124
|
+
callback?: import("../../interfaces").CallbackMethod<{
|
|
125
125
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
126
126
|
permissions: import("@frontegg/rest-api").ITeamUserPermission[];
|
|
127
|
-
} |
|
|
127
|
+
}> | undefined;
|
|
128
128
|
} | undefined, string, never, never>;
|
|
129
129
|
addUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IAddUser, ITeamUser>], WithCallback<IAddUser, ITeamUser>, string, never, never>;
|
|
130
130
|
addUsersBulk: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IAddUsers, BulkInvintationData>], WithCallback<IAddUsers, BulkInvintationData>, string, never, never>;
|
|
@@ -146,9 +146,9 @@ declare const actions: {
|
|
|
146
146
|
createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ICreateOrUpdateInviteUserLink, string>], WithCallback<ICreateOrUpdateInviteUserLink, string>, string, never, never>;
|
|
147
147
|
updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ICreateOrUpdateInviteUserLink, boolean>], WithCallback<ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
|
|
148
148
|
deleteInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
149
|
-
callback?: (
|
|
149
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
150
150
|
} | undefined)?], {
|
|
151
|
-
callback?: (
|
|
151
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
152
152
|
} | undefined, string, never, never>;
|
|
153
153
|
openAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(Pick<import("./interfaces").AddUserDialogState, "onClose"> | undefined)?], Pick<import("./interfaces").AddUserDialogState, "onClose"> | undefined, string, never, never>;
|
|
154
154
|
closeAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[any?], any, string, never, never>;
|
|
@@ -97,19 +97,19 @@ declare const reducers: {
|
|
|
97
97
|
declare const actions: {
|
|
98
98
|
switchTenant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ISwitchTenant, boolean>], WithCallback<ISwitchTenant, boolean>, string, never, never>;
|
|
99
99
|
loadTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
100
|
-
callback?: (
|
|
100
|
+
callback?: import("../../interfaces").CallbackMethod<ITenantsResponse[]> | undefined;
|
|
101
101
|
} | undefined)?], {
|
|
102
|
-
callback?: (
|
|
102
|
+
callback?: import("../../interfaces").CallbackMethod<ITenantsResponse[]> | undefined;
|
|
103
103
|
} | undefined, string, never, never>;
|
|
104
104
|
loadSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
105
|
-
callback?: (
|
|
105
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
106
106
|
} | undefined)?], {
|
|
107
|
-
callback?: (
|
|
107
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
108
108
|
} | undefined, string, never, never>;
|
|
109
109
|
loadSubTenantsTree: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
110
|
-
callback?: (
|
|
110
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
111
111
|
} | undefined)?], {
|
|
112
|
-
callback?: (
|
|
112
|
+
callback?: import("../../interfaces").CallbackMethod<boolean> | undefined;
|
|
113
113
|
} | undefined, string, never, never>;
|
|
114
114
|
};
|
|
115
115
|
/**
|
package/auth/index.d.ts
CHANGED
|
@@ -76,9 +76,9 @@ declare const _default: {
|
|
|
76
76
|
updateProvisionConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithId<import("@frontegg/rest-api").Scim2PatchConnectionConfigRequest>], import("../interfaces").WithId<import("@frontegg/rest-api").Scim2PatchConnectionConfigRequest>, string, never, never>;
|
|
77
77
|
checkIfUserIpValid: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
78
78
|
addCurrentUserIpAndActivate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
79
|
-
callback?: (
|
|
79
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
80
80
|
}], {
|
|
81
|
-
callback?: (
|
|
81
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
82
82
|
}, string, never, never>;
|
|
83
83
|
loadIpRestrictions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
84
84
|
saveIpRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").CreateIpRestriction, boolean>], import("..").WithCallback<import("@frontegg/rest-api").CreateIpRestriction, boolean>, string, never, never>;
|
|
@@ -123,19 +123,19 @@ declare const _default: {
|
|
|
123
123
|
attachPermissionToRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IAttachPermissionToRoles, import("@frontegg/rest-api").IRolePermission>], import("..").WithCallback<import("@frontegg/rest-api").IAttachPermissionToRoles, import("@frontegg/rest-api").IRolePermission>, string, never, never>;
|
|
124
124
|
switchTenant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").ISwitchTenant, boolean>], import("..").WithCallback<import("@frontegg/rest-api").ISwitchTenant, boolean>, string, never, never>;
|
|
125
125
|
loadTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
126
|
-
callback?: (
|
|
126
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ITenantsResponse[]> | undefined;
|
|
127
127
|
} | undefined)?], {
|
|
128
|
-
callback?: (
|
|
128
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ITenantsResponse[]> | undefined;
|
|
129
129
|
} | undefined, string, never, never>;
|
|
130
130
|
loadSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
131
|
-
callback?: (
|
|
131
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
132
132
|
} | undefined)?], {
|
|
133
|
-
callback?: (
|
|
133
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
134
134
|
} | undefined, string, never, never>;
|
|
135
135
|
loadSubTenantsTree: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
136
|
-
callback?: (
|
|
136
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
137
137
|
} | undefined)?], {
|
|
138
|
-
callback?: (
|
|
138
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
139
139
|
} | undefined, string, never, never>;
|
|
140
140
|
loadAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithCallback<{
|
|
141
141
|
silentLoading?: boolean | undefined;
|
|
@@ -158,19 +158,19 @@ declare const _default: {
|
|
|
158
158
|
loadVendorPasswordConfig: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
159
159
|
loadPublicAuthStrategiesPolicy: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
160
160
|
loadApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithSilentLoad<{
|
|
161
|
-
callback?: (
|
|
161
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
162
162
|
}> | undefined)?], import("..").WithSilentLoad<{
|
|
163
|
-
callback?: (
|
|
163
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
164
164
|
}> | undefined, string, never, never>;
|
|
165
165
|
loadUserApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithSilentLoad<{
|
|
166
|
-
callback?: (
|
|
166
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
167
167
|
}> | undefined)?], import("..").WithSilentLoad<{
|
|
168
|
-
callback?: (
|
|
168
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
169
169
|
}> | undefined, string, never, never>;
|
|
170
170
|
loadTenantApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithSilentLoad<{
|
|
171
|
-
callback?: (
|
|
171
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
172
172
|
}> | undefined)?], import("..").WithSilentLoad<{
|
|
173
|
-
callback?: (
|
|
173
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
174
174
|
}> | undefined, string, never, never>;
|
|
175
175
|
initApiTokensData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./ApiTokensState/interfaces").ApiTokenType], import("./ApiTokensState/interfaces").ApiTokenType, string, never, never>;
|
|
176
176
|
addTenantApiToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("./ApiTokensState/interfaces").ITenantApiTokensData, "description" | "roleIds" | "expires">, boolean>], import("..").WithCallback<Pick<import("./ApiTokensState/interfaces").ITenantApiTokensData, "description" | "roleIds" | "expires">, boolean>, string, never, never>;
|
|
@@ -216,15 +216,15 @@ declare const _default: {
|
|
|
216
216
|
loadUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("..").WithSilentLoad<import("@frontegg/rest-api").ILoadUsers>, import("@frontegg/rest-api").ITeamUser[]>], import("..").WithCallback<import("..").WithSilentLoad<import("@frontegg/rest-api").ILoadUsers>, import("@frontegg/rest-api").ITeamUser[]>, string, never, never>;
|
|
217
217
|
loadAllSubTenantsUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("..").WithSilentLoad<Partial<import("@frontegg/rest-api").ILoadAllUsers>>, import("@frontegg/rest-api").ISubTenantUser[]>], import("..").WithCallback<import("..").WithSilentLoad<Partial<import("@frontegg/rest-api").ILoadAllUsers>>, import("@frontegg/rest-api").ISubTenantUser[]>, string, never, never>;
|
|
218
218
|
loadRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
219
|
-
callback?: (
|
|
219
|
+
callback?: import("..").CallbackMethod<{
|
|
220
220
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
221
221
|
permissions: import("@frontegg/rest-api").ITeamUserPermission[];
|
|
222
|
-
} |
|
|
222
|
+
}> | undefined;
|
|
223
223
|
} | undefined)?], {
|
|
224
|
-
callback?: (
|
|
224
|
+
callback?: import("..").CallbackMethod<{
|
|
225
225
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
226
226
|
permissions: import("@frontegg/rest-api").ITeamUserPermission[];
|
|
227
|
-
} |
|
|
227
|
+
}> | undefined;
|
|
228
228
|
} | undefined, string, never, never>;
|
|
229
229
|
addUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IAddUser, import("@frontegg/rest-api").ITeamUser>], import("..").WithCallback<import("@frontegg/rest-api").IAddUser, import("@frontegg/rest-api").ITeamUser>, string, never, never>;
|
|
230
230
|
addUsersBulk: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("./TeamState/interfaces").IAddUsers, import("./TeamState/interfaces").BulkInvintationData>], import("..").WithCallback<import("./TeamState/interfaces").IAddUsers, import("./TeamState/interfaces").BulkInvintationData>, string, never, never>;
|
|
@@ -246,9 +246,9 @@ declare const _default: {
|
|
|
246
246
|
createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>], import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>, string, never, never>;
|
|
247
247
|
updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>], import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
|
|
248
248
|
deleteInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
249
|
-
callback?: (
|
|
249
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
250
250
|
} | undefined)?], {
|
|
251
|
-
callback?: (
|
|
251
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
252
252
|
} | undefined, string, never, never>;
|
|
253
253
|
openAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(Pick<import("./TeamState/interfaces").AddUserDialogState, "onClose"> | undefined)?], Pick<import("./TeamState/interfaces").AddUserDialogState, "onClose"> | undefined, string, never, never>;
|
|
254
254
|
closeAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[any?], any, string, never, never>;
|
|
@@ -271,9 +271,9 @@ declare const _default: {
|
|
|
271
271
|
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>, string, never, never>;
|
|
272
272
|
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>, string, never, never>;
|
|
273
273
|
preEnrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
274
|
-
callback?: (
|
|
274
|
+
callback?: import("..").CallbackMethod<import("./LoginState/interfaces").IPreEnrollMFAWebAuthNForLoginResponse> | undefined;
|
|
275
275
|
}], {
|
|
276
|
-
callback?: (
|
|
276
|
+
callback?: import("..").CallbackMethod<import("./LoginState/interfaces").IPreEnrollMFAWebAuthNForLoginResponse> | undefined;
|
|
277
277
|
}, string, never, never>;
|
|
278
278
|
enrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./MfaState/interfaces").IUserEnrollMFAWebAuthnPayload], import("./MfaState/interfaces").IUserEnrollMFAWebAuthnPayload, string, never, never>;
|
|
279
279
|
preDisableMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<{
|
|
@@ -362,9 +362,9 @@ declare const _default: {
|
|
|
362
362
|
configFile: File;
|
|
363
363
|
}, boolean>, string, never, never>;
|
|
364
364
|
validateSSODomain: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
365
|
-
callback?: (
|
|
365
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
366
366
|
} | undefined)?], {
|
|
367
|
-
callback?: (
|
|
367
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
368
368
|
} | undefined, string, never, never>;
|
|
369
369
|
updateSSOAuthorizationRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<{
|
|
370
370
|
authorizationRoles: string[];
|
|
@@ -388,10 +388,10 @@ declare const _default: {
|
|
|
388
388
|
resetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IResetPhoneNumber, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IResetPhoneNumber, boolean>, string, never, never>;
|
|
389
389
|
verifyResetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IVerifyResetPhoneNumber, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IVerifyResetPhoneNumber, boolean>, string, never, never>;
|
|
390
390
|
changePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
391
|
-
recaptchaToken
|
|
391
|
+
recaptchaToken?: string | undefined;
|
|
392
392
|
email: string;
|
|
393
393
|
}, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
394
|
-
recaptchaToken
|
|
394
|
+
recaptchaToken?: string | undefined;
|
|
395
395
|
email: string;
|
|
396
396
|
}, boolean>, string, never, never>;
|
|
397
397
|
forgotPassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IForgotPassword], import("@frontegg/rest-api").IForgotPassword, string, never, never>;
|
|
@@ -442,15 +442,15 @@ declare const _default: {
|
|
|
442
442
|
webAuthnPrelogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IWebAuthnPreLogin, import("@frontegg/rest-api").IWebAuthnPreLoginResponse | null>], import("..").WithCallback<import("@frontegg/rest-api").IWebAuthnPreLogin, import("@frontegg/rest-api").IWebAuthnPreLoginResponse | null>, string, never, never>;
|
|
443
443
|
webAuthnPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./LoginState/interfaces").IWebAuthnPostLoginPayload], import("./LoginState/interfaces").IWebAuthnPostLoginPayload, string, never, never>;
|
|
444
444
|
webAuthnCreateNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
445
|
-
callback?: (
|
|
445
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ICreateNewDeviceSessionResponse | null> | undefined;
|
|
446
446
|
}], {
|
|
447
|
-
callback?: (
|
|
447
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ICreateNewDeviceSessionResponse | null> | undefined;
|
|
448
448
|
}, string, never, never>;
|
|
449
449
|
webAuthnVerifyNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./LoginState/interfaces").IVerifyNewWebAuthnDevicePayload], import("./LoginState/interfaces").IVerifyNewWebAuthnDevicePayload, string, never, never>;
|
|
450
450
|
getUserIP: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
451
|
-
callback?: (
|
|
451
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
452
452
|
}], {
|
|
453
|
-
callback?: (
|
|
453
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
454
454
|
}, string, never, never>;
|
|
455
455
|
preEnrollMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IPreEnrollMFA, import("./LoginState/interfaces").IPreEnrollMFAWebAuthNForLoginResponse>], import("..").WithCallback<import("@frontegg/rest-api").IPreEnrollMFA, import("./LoginState/interfaces").IPreEnrollMFAWebAuthNForLoginResponse>, string, never, never>;
|
|
456
456
|
enrollMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("./LoginState/interfaces").IEnrollMFAWebAuthnPayload], import("./LoginState/interfaces").IEnrollMFAWebAuthnPayload, string, never, never>;
|
package/auth/reducer.d.ts
CHANGED
|
@@ -41,9 +41,9 @@ declare const actions: {
|
|
|
41
41
|
updateProvisionConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithId<import("@frontegg/rest-api").Scim2PatchConnectionConfigRequest>], import("../interfaces").WithId<import("@frontegg/rest-api").Scim2PatchConnectionConfigRequest>, string, never, never>;
|
|
42
42
|
checkIfUserIpValid: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
43
43
|
addCurrentUserIpAndActivate: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
44
|
-
callback?: (
|
|
44
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
45
45
|
}], {
|
|
46
|
-
callback?: (
|
|
46
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
47
47
|
}, string, never, never>;
|
|
48
48
|
loadIpRestrictions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
49
49
|
saveIpRestriction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").CreateIpRestriction, boolean>], import("..").WithCallback<import("@frontegg/rest-api").CreateIpRestriction, boolean>, string, never, never>;
|
|
@@ -88,19 +88,19 @@ declare const actions: {
|
|
|
88
88
|
attachPermissionToRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IAttachPermissionToRoles, import("@frontegg/rest-api").IRolePermission>], import("..").WithCallback<import("@frontegg/rest-api").IAttachPermissionToRoles, import("@frontegg/rest-api").IRolePermission>, string, never, never>;
|
|
89
89
|
switchTenant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").ISwitchTenant, boolean>], import("..").WithCallback<import("@frontegg/rest-api").ISwitchTenant, boolean>, string, never, never>;
|
|
90
90
|
loadTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
91
|
-
callback?: (
|
|
91
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ITenantsResponse[]> | undefined;
|
|
92
92
|
} | undefined)?], {
|
|
93
|
-
callback?: (
|
|
93
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ITenantsResponse[]> | undefined;
|
|
94
94
|
} | undefined, string, never, never>;
|
|
95
95
|
loadSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
96
|
-
callback?: (
|
|
96
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
97
97
|
} | undefined)?], {
|
|
98
|
-
callback?: (
|
|
98
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
99
99
|
} | undefined, string, never, never>;
|
|
100
100
|
loadSubTenantsTree: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
101
|
-
callback?: (
|
|
101
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
102
102
|
} | undefined)?], {
|
|
103
|
-
callback?: (
|
|
103
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
104
104
|
} | undefined, string, never, never>;
|
|
105
105
|
loadAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithCallback<{
|
|
106
106
|
silentLoading?: boolean | undefined;
|
|
@@ -123,19 +123,19 @@ declare const actions: {
|
|
|
123
123
|
loadVendorPasswordConfig: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
124
124
|
loadPublicAuthStrategiesPolicy: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
125
125
|
loadApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithSilentLoad<{
|
|
126
|
-
callback?: (
|
|
126
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
127
127
|
}> | undefined)?], import("..").WithSilentLoad<{
|
|
128
|
-
callback?: (
|
|
128
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
129
129
|
}> | undefined, string, never, never>;
|
|
130
130
|
loadUserApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithSilentLoad<{
|
|
131
|
-
callback?: (
|
|
131
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
132
132
|
}> | undefined)?], import("..").WithSilentLoad<{
|
|
133
|
-
callback?: (
|
|
133
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
134
134
|
}> | undefined, string, never, never>;
|
|
135
135
|
loadTenantApiTokens: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(import("..").WithSilentLoad<{
|
|
136
|
-
callback?: (
|
|
136
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
137
137
|
}> | undefined)?], import("..").WithSilentLoad<{
|
|
138
|
-
callback?: (
|
|
138
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
139
139
|
}> | undefined, string, never, never>;
|
|
140
140
|
initApiTokensData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").ApiTokenType], import(".").ApiTokenType, string, never, never>;
|
|
141
141
|
addTenantApiToken: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import(".").ITenantApiTokensData, "description" | "roleIds" | "expires">, boolean>], import("..").WithCallback<Pick<import(".").ITenantApiTokensData, "description" | "roleIds" | "expires">, boolean>, string, never, never>;
|
|
@@ -181,15 +181,15 @@ declare const actions: {
|
|
|
181
181
|
loadUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("..").WithSilentLoad<import("@frontegg/rest-api").ILoadUsers>, import("@frontegg/rest-api").ITeamUser[]>], import("..").WithCallback<import("..").WithSilentLoad<import("@frontegg/rest-api").ILoadUsers>, import("@frontegg/rest-api").ITeamUser[]>, string, never, never>;
|
|
182
182
|
loadAllSubTenantsUsers: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("..").WithSilentLoad<Partial<import("@frontegg/rest-api").ILoadAllUsers>>, import("@frontegg/rest-api").ISubTenantUser[]>], import("..").WithCallback<import("..").WithSilentLoad<Partial<import("@frontegg/rest-api").ILoadAllUsers>>, import("@frontegg/rest-api").ISubTenantUser[]>, string, never, never>;
|
|
183
183
|
loadRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
184
|
-
callback?: (
|
|
184
|
+
callback?: import("..").CallbackMethod<{
|
|
185
185
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
186
186
|
permissions: import("@frontegg/rest-api").ITeamUserPermission[];
|
|
187
|
-
} |
|
|
187
|
+
}> | undefined;
|
|
188
188
|
} | undefined)?], {
|
|
189
|
-
callback?: (
|
|
189
|
+
callback?: import("..").CallbackMethod<{
|
|
190
190
|
roles: import("@frontegg/rest-api").ITeamUserRole[];
|
|
191
191
|
permissions: import("@frontegg/rest-api").ITeamUserPermission[];
|
|
192
|
-
} |
|
|
192
|
+
}> | undefined;
|
|
193
193
|
} | undefined, string, never, never>;
|
|
194
194
|
addUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IAddUser, import("@frontegg/rest-api").ITeamUser>], import("..").WithCallback<import("@frontegg/rest-api").IAddUser, import("@frontegg/rest-api").ITeamUser>, string, never, never>;
|
|
195
195
|
addUsersBulk: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import(".").IAddUsers, import(".").BulkInvintationData>], import("..").WithCallback<import(".").IAddUsers, import(".").BulkInvintationData>, string, never, never>;
|
|
@@ -211,9 +211,9 @@ declare const actions: {
|
|
|
211
211
|
createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>], import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>, string, never, never>;
|
|
212
212
|
updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>], import("..").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
|
|
213
213
|
deleteInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
214
|
-
callback?: (
|
|
214
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
215
215
|
} | undefined)?], {
|
|
216
|
-
callback?: (
|
|
216
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
217
217
|
} | undefined, string, never, never>;
|
|
218
218
|
openAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[(Pick<import(".").AddUserDialogState, "onClose"> | undefined)?], Pick<import(".").AddUserDialogState, "onClose"> | undefined, string, never, never>;
|
|
219
219
|
closeAddUserDialog: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[any?], any, string, never, never>;
|
|
@@ -236,9 +236,9 @@ declare const actions: {
|
|
|
236
236
|
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>, string, never, never>;
|
|
237
237
|
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>, string, never, never>;
|
|
238
238
|
preEnrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
239
|
-
callback?: (
|
|
239
|
+
callback?: import("..").CallbackMethod<import(".").IPreEnrollMFAWebAuthNForLoginResponse> | undefined;
|
|
240
240
|
}], {
|
|
241
|
-
callback?: (
|
|
241
|
+
callback?: import("..").CallbackMethod<import(".").IPreEnrollMFAWebAuthNForLoginResponse> | undefined;
|
|
242
242
|
}, string, never, never>;
|
|
243
243
|
enrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IUserEnrollMFAWebAuthnPayload], import(".").IUserEnrollMFAWebAuthnPayload, string, never, never>;
|
|
244
244
|
preDisableMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<{
|
|
@@ -327,9 +327,9 @@ declare const actions: {
|
|
|
327
327
|
configFile: File;
|
|
328
328
|
}, boolean>, string, never, never>;
|
|
329
329
|
validateSSODomain: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[({
|
|
330
|
-
callback?: (
|
|
330
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
331
331
|
} | undefined)?], {
|
|
332
|
-
callback?: (
|
|
332
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
333
333
|
} | undefined, string, never, never>;
|
|
334
334
|
updateSSOAuthorizationRoles: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<{
|
|
335
335
|
authorizationRoles: string[];
|
|
@@ -353,10 +353,10 @@ declare const actions: {
|
|
|
353
353
|
resetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IResetPhoneNumber, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IResetPhoneNumber, boolean>, string, never, never>;
|
|
354
354
|
verifyResetPhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IVerifyResetPhoneNumber, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IVerifyResetPhoneNumber, boolean>, string, never, never>;
|
|
355
355
|
changePhoneNumber: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
356
|
-
recaptchaToken
|
|
356
|
+
recaptchaToken?: string | undefined;
|
|
357
357
|
email: string;
|
|
358
358
|
}, boolean>], import("..").WithCallback<import("@frontegg/rest-api").IChangePhoneNumber & {
|
|
359
|
-
recaptchaToken
|
|
359
|
+
recaptchaToken?: string | undefined;
|
|
360
360
|
email: string;
|
|
361
361
|
}, boolean>, string, never, never>;
|
|
362
362
|
forgotPassword: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("@frontegg/rest-api").IForgotPassword], import("@frontegg/rest-api").IForgotPassword, string, never, never>;
|
|
@@ -407,15 +407,15 @@ declare const actions: {
|
|
|
407
407
|
webAuthnPrelogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IWebAuthnPreLogin, import("@frontegg/rest-api").IWebAuthnPreLoginResponse | null>], import("..").WithCallback<import("@frontegg/rest-api").IWebAuthnPreLogin, import("@frontegg/rest-api").IWebAuthnPreLoginResponse | null>, string, never, never>;
|
|
408
408
|
webAuthnPostLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IWebAuthnPostLoginPayload], import(".").IWebAuthnPostLoginPayload, string, never, never>;
|
|
409
409
|
webAuthnCreateNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
410
|
-
callback?: (
|
|
410
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ICreateNewDeviceSessionResponse | null> | undefined;
|
|
411
411
|
}], {
|
|
412
|
-
callback?: (
|
|
412
|
+
callback?: import("..").CallbackMethod<import("@frontegg/rest-api").ICreateNewDeviceSessionResponse | null> | undefined;
|
|
413
413
|
}, string, never, never>;
|
|
414
414
|
webAuthnVerifyNewDeviceSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IVerifyNewWebAuthnDevicePayload], import(".").IVerifyNewWebAuthnDevicePayload, string, never, never>;
|
|
415
415
|
getUserIP: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
416
|
-
callback?: (
|
|
416
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
417
417
|
}], {
|
|
418
|
-
callback?: (
|
|
418
|
+
callback?: import("..").CallbackMethod<boolean> | undefined;
|
|
419
419
|
}, string, never, never>;
|
|
420
420
|
preEnrollMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("@frontegg/rest-api").IPreEnrollMFA, import(".").IPreEnrollMFAWebAuthNForLoginResponse>], import("..").WithCallback<import("@frontegg/rest-api").IPreEnrollMFA, import(".").IPreEnrollMFAWebAuthNForLoginResponse>, string, never, never>;
|
|
421
421
|
enrollMFAWebAuthnForLogin: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import(".").IEnrollMFAWebAuthnPayload], import(".").IEnrollMFAWebAuthnPayload, string, never, never>;
|
package/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export * from './subscriptions';
|
|
|
18
18
|
export * from './vendor';
|
|
19
19
|
export * from './toolkit';
|
|
20
20
|
export * from './helpers';
|
|
21
|
-
export type { WithCallback, WithSilentLoad } from './interfaces';
|
|
21
|
+
export type { WithCallback, WithSilentLoad, CallbackMethod } from './interfaces';
|
|
22
22
|
export declare type FronteggState = {
|
|
23
23
|
root: RootState;
|
|
24
24
|
auth: AuthState;
|
package/index.js
CHANGED
package/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export declare type CallbackMethod<R = boolean> = (data: R | null, error?: string) => void;
|
|
1
2
|
export declare type WithCallback<T = {}, R = boolean> = T & {
|
|
2
|
-
callback?:
|
|
3
|
+
callback?: CallbackMethod<R>;
|
|
3
4
|
};
|
|
4
5
|
export declare type WithStatus = {
|
|
5
6
|
loading: boolean;
|
|
@@ -1297,6 +1297,7 @@ function* login({
|
|
|
1297
1297
|
} catch (e) {
|
|
1298
1298
|
_restApi.ContextHolder.setAccessToken(null);
|
|
1299
1299
|
_restApi.ContextHolder.setUser(null);
|
|
1300
|
+
callback == null ? void 0 : callback(false, e);
|
|
1300
1301
|
yield (0, _effects.put)(_reducer.actions.setLoginState({
|
|
1301
1302
|
email,
|
|
1302
1303
|
error: e.message,
|
package/node/index.js
CHANGED