woodsportal-client-sdk 1.1.5-dev.0 → 4.0.0-dev.0
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/CHANGELOG.md +109 -0
- package/README.md +171 -77
- package/dist/adapters/angular/index.d.ts +58 -5
- package/dist/adapters/angular/index.js +8 -7
- package/dist/adapters/angular/index.js.map +1 -1
- package/dist/adapters/react/index.d.ts +58 -5
- package/dist/adapters/react/index.js +7 -6
- package/dist/adapters/react/index.js.map +1 -1
- package/dist/adapters/vue/index.d.ts +58 -5
- package/dist/adapters/vue/index.js +8 -7
- package/dist/adapters/vue/index.js.map +1 -1
- package/dist/auth-utils-VT7HSLMA.js +3 -0
- package/dist/{auth-utils-A4WPJMPK.js.map → auth-utils-VT7HSLMA.js.map} +1 -1
- package/dist/authentication-BfYhAeMs.d.ts +463 -0
- package/dist/cache-purge-G5WkHckd.d.ts +236 -0
- package/dist/chunk-3FUHGFAQ.js +167 -0
- package/dist/chunk-3FUHGFAQ.js.map +1 -0
- package/dist/chunk-4ZV3MQIB.js +2000 -0
- package/dist/chunk-4ZV3MQIB.js.map +1 -0
- package/dist/{chunk-Y5MRAAGK.js → chunk-AYTO6ND7.js} +3 -3
- package/dist/chunk-AYTO6ND7.js.map +1 -0
- package/dist/chunk-G2KECOVQ.js +504 -0
- package/dist/chunk-G2KECOVQ.js.map +1 -0
- package/dist/chunk-H57IQHVF.js +20 -0
- package/dist/chunk-H57IQHVF.js.map +1 -0
- package/dist/chunk-KBXI2JBA.js +1200 -0
- package/dist/chunk-KBXI2JBA.js.map +1 -0
- package/dist/chunk-KCZFT6OM.js +416 -0
- package/dist/chunk-KCZFT6OM.js.map +1 -0
- package/dist/chunk-SSS4DNXP.js +304 -0
- package/dist/chunk-SSS4DNXP.js.map +1 -0
- package/dist/entries/auth.d.ts +68 -0
- package/dist/entries/auth.js +13 -0
- package/dist/entries/auth.js.map +1 -0
- package/dist/entries/crm.d.ts +208 -0
- package/dist/entries/crm.js +24 -0
- package/dist/entries/crm.js.map +1 -0
- package/dist/index-CCwMopD8.d.ts +38 -0
- package/dist/index.d.ts +405 -406
- package/dist/index.js +23 -1720
- package/dist/index.js.map +1 -1
- package/dist/use-sync-DpazhM4d.d.ts +60 -0
- package/dist/use-uploader-2F1zc7Cl.d.ts +23 -0
- package/package.json +53 -8
- package/dist/auth-utils-A4WPJMPK.js +0 -4
- package/dist/chunk-J7MDPY5P.js +0 -54
- package/dist/chunk-J7MDPY5P.js.map +0 -1
- package/dist/chunk-NB7AINV4.js +0 -35
- package/dist/chunk-NB7AINV4.js.map +0 -1
- package/dist/chunk-RDCT25UV.js +0 -1066
- package/dist/chunk-RDCT25UV.js.map +0 -1
- package/dist/chunk-Y5MRAAGK.js.map +0 -1
- package/dist/chunk-YLZA5S7A.js +0 -102
- package/dist/chunk-YLZA5S7A.js.map +0 -1
- package/dist/use-sync-LbURBOs_.d.ts +0 -29
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import { M as MutationOptions, P as PreLoginPayload, C as ChangePasswordPayload, L as LoginPayload, V as VerifyEmailPayload, F as ForgetPasswordPayload, a as ResetPasswordPayload, R as ResetPasswordVerifyTokenPayload } from './index-CCwMopD8.js';
|
|
2
|
+
|
|
3
|
+
type MfaMethod = 'EMAIL_OTP' | 'SMS_OTP' | 'TOTP' | 'BACKUP_CODE' | 'PASSKEY' | 'PASSKEY_PRIMARY';
|
|
4
|
+
type MfaMethodStatus = 'READY' | 'NOT_ENROLLED';
|
|
5
|
+
type MfaMethodNotReadyReason = 'PHONE_NOT_VERIFIED' | 'NOT_ENROLLED' | 'POLICY_BLOCKED' | string;
|
|
6
|
+
interface MfaMethodOption {
|
|
7
|
+
method: MfaMethod;
|
|
8
|
+
status: MfaMethodStatus;
|
|
9
|
+
destinationMasked?: string;
|
|
10
|
+
reason?: MfaMethodNotReadyReason;
|
|
11
|
+
}
|
|
12
|
+
interface TokenResponse {
|
|
13
|
+
token?: string;
|
|
14
|
+
refreshToken?: string;
|
|
15
|
+
expiresIn?: number;
|
|
16
|
+
refreshExpiresIn?: number;
|
|
17
|
+
}
|
|
18
|
+
interface LoginResponseData {
|
|
19
|
+
tokenData?: TokenResponse;
|
|
20
|
+
loggedInDetails?: Record<string, unknown>;
|
|
21
|
+
twoFactorRequired?: boolean;
|
|
22
|
+
otpDelivery?: string;
|
|
23
|
+
otpDestinationMasked?: string;
|
|
24
|
+
mfaMethods?: MfaMethodOption[];
|
|
25
|
+
defaultMethod?: MfaMethod;
|
|
26
|
+
}
|
|
27
|
+
interface TwoFaVerificationRequest {
|
|
28
|
+
token: string;
|
|
29
|
+
otp: string;
|
|
30
|
+
method: MfaMethod;
|
|
31
|
+
}
|
|
32
|
+
interface MfaOtpSendRequest {
|
|
33
|
+
token: string;
|
|
34
|
+
method: MfaMethod;
|
|
35
|
+
}
|
|
36
|
+
interface MfaPendingPasskeyOptionsRequest {
|
|
37
|
+
token: string;
|
|
38
|
+
portalId?: string | number;
|
|
39
|
+
}
|
|
40
|
+
interface MfaPendingPasskeyVerifyRequest {
|
|
41
|
+
token: string;
|
|
42
|
+
challengeId: string;
|
|
43
|
+
credential: Record<string, unknown>;
|
|
44
|
+
portalId?: string | number;
|
|
45
|
+
}
|
|
46
|
+
interface MfaEnrollmentStatus {
|
|
47
|
+
policyAllowedMethods?: MfaMethod[];
|
|
48
|
+
enrolledMethods?: MfaMethod[];
|
|
49
|
+
readyMethods?: MfaMethod[];
|
|
50
|
+
totpEnrolled?: boolean;
|
|
51
|
+
phoneVerified?: boolean;
|
|
52
|
+
passkeyCount?: number;
|
|
53
|
+
unusedBackupCodes?: number;
|
|
54
|
+
defaultMethod?: MfaMethod;
|
|
55
|
+
preferredMethod?: MfaMethod;
|
|
56
|
+
methods?: MfaMethodOption[];
|
|
57
|
+
}
|
|
58
|
+
interface MfaPreferenceRequest {
|
|
59
|
+
defaultMethod: MfaMethod;
|
|
60
|
+
}
|
|
61
|
+
interface PhoneVerifyStartRequest {
|
|
62
|
+
phone: string;
|
|
63
|
+
}
|
|
64
|
+
interface PhoneVerifyConfirmRequest {
|
|
65
|
+
phone: string;
|
|
66
|
+
code: string;
|
|
67
|
+
}
|
|
68
|
+
interface TotpEnrollVerifyRequest {
|
|
69
|
+
code: string;
|
|
70
|
+
portalId?: string | number;
|
|
71
|
+
hubId?: string | number;
|
|
72
|
+
}
|
|
73
|
+
interface TotpDisableRequest {
|
|
74
|
+
password: string;
|
|
75
|
+
}
|
|
76
|
+
interface WebAuthnVerifyRequest {
|
|
77
|
+
challengeId: string;
|
|
78
|
+
credential: Record<string, unknown>;
|
|
79
|
+
nickname?: string;
|
|
80
|
+
portalId?: string | number;
|
|
81
|
+
}
|
|
82
|
+
interface PasskeyLoginOptionsRequest {
|
|
83
|
+
email: string;
|
|
84
|
+
hubId?: string | number;
|
|
85
|
+
portalId?: string | number;
|
|
86
|
+
}
|
|
87
|
+
interface PasskeyLoginVerifyRequest {
|
|
88
|
+
challengeId: string;
|
|
89
|
+
credential: Record<string, unknown>;
|
|
90
|
+
portalId?: string | number;
|
|
91
|
+
}
|
|
92
|
+
interface MfaStatusQuery {
|
|
93
|
+
portalId?: string | number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type LoginPortal = 'PORTAL_CLIENT' | 'PORTAL_ADMIN' | 'SUPER_ADMIN';
|
|
97
|
+
type LoginStatus = 'SUCCESS' | 'FAILURE' | string;
|
|
98
|
+
interface SecurityOverview {
|
|
99
|
+
passwordLastChanged?: string;
|
|
100
|
+
emailVerified?: boolean;
|
|
101
|
+
email?: string;
|
|
102
|
+
twoFactorAuthEnabled?: boolean;
|
|
103
|
+
mfaRequired?: boolean;
|
|
104
|
+
methods?: MfaMethodOption[];
|
|
105
|
+
readyMethods?: MfaMethod[];
|
|
106
|
+
preferredMethod?: MfaMethod;
|
|
107
|
+
defaultMethod?: MfaMethod;
|
|
108
|
+
totpEnrolled?: boolean;
|
|
109
|
+
phoneVerified?: boolean;
|
|
110
|
+
passkeyCount?: number;
|
|
111
|
+
unusedBackupCodes?: number;
|
|
112
|
+
}
|
|
113
|
+
interface LoginHistoryRow {
|
|
114
|
+
loginHistoryId?: number;
|
|
115
|
+
userId?: number;
|
|
116
|
+
portalId?: number;
|
|
117
|
+
hubspotId?: number;
|
|
118
|
+
ipAddress?: string;
|
|
119
|
+
userAgent?: string;
|
|
120
|
+
loginTime?: string;
|
|
121
|
+
loginStatus?: LoginStatus;
|
|
122
|
+
loginPortal?: LoginPortal;
|
|
123
|
+
logoutTime?: string;
|
|
124
|
+
failureReason?: string;
|
|
125
|
+
countryCode?: string;
|
|
126
|
+
deviceType?: string;
|
|
127
|
+
}
|
|
128
|
+
interface PaginationResponse<T> {
|
|
129
|
+
content?: T[];
|
|
130
|
+
page?: number;
|
|
131
|
+
limit?: number;
|
|
132
|
+
totalElements?: number;
|
|
133
|
+
totalPages?: number;
|
|
134
|
+
}
|
|
135
|
+
interface ActiveSession {
|
|
136
|
+
familyId?: string;
|
|
137
|
+
current?: boolean;
|
|
138
|
+
deviceType?: string;
|
|
139
|
+
userAgent?: string;
|
|
140
|
+
ipAddressMasked?: string;
|
|
141
|
+
countryCode?: string;
|
|
142
|
+
lastActiveAt?: string;
|
|
143
|
+
expiresAt?: number;
|
|
144
|
+
rememberMe?: boolean;
|
|
145
|
+
portalId?: number;
|
|
146
|
+
loginPortal?: LoginPortal;
|
|
147
|
+
}
|
|
148
|
+
interface SecurityOverviewQuery {
|
|
149
|
+
portalId?: string | number;
|
|
150
|
+
}
|
|
151
|
+
interface SecurityLoginActivityQuery {
|
|
152
|
+
page?: number;
|
|
153
|
+
limit?: number;
|
|
154
|
+
sort?: string;
|
|
155
|
+
loginPortal?: LoginPortal;
|
|
156
|
+
}
|
|
157
|
+
interface SecuritySessionsQuery {
|
|
158
|
+
currentFamilyId?: string;
|
|
159
|
+
refreshToken?: string;
|
|
160
|
+
}
|
|
161
|
+
interface RevokeSecuritySessionPayload {
|
|
162
|
+
familyId: string;
|
|
163
|
+
refreshToken?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare function getAccessToken(): string | null;
|
|
167
|
+
declare function isExpiresAccessToken(): boolean;
|
|
168
|
+
declare function isAuthenticateApp(): boolean;
|
|
169
|
+
declare function isAuthenticated(): boolean;
|
|
170
|
+
declare function isAccessTokenExpired(): boolean;
|
|
171
|
+
|
|
172
|
+
type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent';
|
|
173
|
+
type LogMeta = Record<string, unknown>;
|
|
174
|
+
interface SdkLogger {
|
|
175
|
+
debug(context: string, message: string, meta?: LogMeta): void;
|
|
176
|
+
info(context: string, message: string, meta?: LogMeta): void;
|
|
177
|
+
warn(context: string, message: string, meta?: LogMeta): void;
|
|
178
|
+
error(context: string, error: unknown, meta?: LogMeta): void;
|
|
179
|
+
}
|
|
180
|
+
interface LoggerConfig {
|
|
181
|
+
level?: LogLevel;
|
|
182
|
+
namespace?: string;
|
|
183
|
+
enabled?: boolean;
|
|
184
|
+
sinks?: Partial<Pick<SdkLogger, 'debug' | 'info' | 'warn' | 'error'>>;
|
|
185
|
+
httpTracing?: boolean;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface StorageKeyConfig {
|
|
189
|
+
loginDetails?: string;
|
|
190
|
+
refreshToken?: string;
|
|
191
|
+
portal?: string;
|
|
192
|
+
subscriptionType?: string;
|
|
193
|
+
authUser?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface HttpClientConfig {
|
|
197
|
+
baseURL?: string;
|
|
198
|
+
timeout?: number;
|
|
199
|
+
headers?: Record<string, string>;
|
|
200
|
+
skipCurrentPublicPath?: () => boolean;
|
|
201
|
+
routes?: {
|
|
202
|
+
unauthorized?: string;
|
|
203
|
+
login?: string;
|
|
204
|
+
};
|
|
205
|
+
hubId?: string;
|
|
206
|
+
devPortalId?: string;
|
|
207
|
+
onLogout?: () => void | Promise<void>;
|
|
208
|
+
logger?: LoggerConfig;
|
|
209
|
+
storageKeys?: StorageKeyConfig;
|
|
210
|
+
onServiceUnavailable?: (error: unknown) => void;
|
|
211
|
+
}
|
|
212
|
+
declare function initializeHttpClient(clientConfig: HttpClientConfig): void;
|
|
213
|
+
declare function getFormErrors(error: unknown): string | null;
|
|
214
|
+
declare function getFieldErrors(error: unknown): any;
|
|
215
|
+
declare function getAuthRefreshToken(refreshToken: string | null): Promise<{
|
|
216
|
+
token: string | null;
|
|
217
|
+
success: boolean;
|
|
218
|
+
}>;
|
|
219
|
+
|
|
220
|
+
declare function getRefreshToken(): string | null;
|
|
221
|
+
|
|
222
|
+
declare function getSsoDetails(options?: MutationOptions<any, any>): {
|
|
223
|
+
mutate: (payload?: unknown) => Promise<any>;
|
|
224
|
+
getDetails: (payload?: unknown) => Promise<any>;
|
|
225
|
+
getSsoDetails: (payload?: unknown) => Promise<any>;
|
|
226
|
+
isLoading: () => boolean;
|
|
227
|
+
};
|
|
228
|
+
declare function generateSsoUrl(options?: MutationOptions<any, any>): {
|
|
229
|
+
mutate: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
230
|
+
generateUrl: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
231
|
+
generateSsoUrl: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
232
|
+
isLoading: () => boolean;
|
|
233
|
+
};
|
|
234
|
+
declare function ssoCallback(options?: MutationOptions<any, any>): {
|
|
235
|
+
mutate: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
236
|
+
callback: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
237
|
+
ssoCallback: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
238
|
+
isLoading: () => boolean;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare function getSecurityOverview(options?: MutationOptions<any, any>): {
|
|
242
|
+
mutate: (payload?: SecurityOverviewQuery | undefined) => Promise<any>;
|
|
243
|
+
getOverview: (payload?: SecurityOverviewQuery | undefined) => Promise<any>;
|
|
244
|
+
getSecurityOverview: (payload?: SecurityOverviewQuery | undefined) => Promise<any>;
|
|
245
|
+
isLoading: () => boolean;
|
|
246
|
+
};
|
|
247
|
+
declare function getSecurityLoginActivity(options?: MutationOptions<any, any>): {
|
|
248
|
+
mutate: (payload?: SecurityLoginActivityQuery | undefined) => Promise<any>;
|
|
249
|
+
getLoginActivity: (payload?: SecurityLoginActivityQuery | undefined) => Promise<any>;
|
|
250
|
+
getSecurityLoginActivity: (payload?: SecurityLoginActivityQuery | undefined) => Promise<any>;
|
|
251
|
+
isLoading: () => boolean;
|
|
252
|
+
};
|
|
253
|
+
declare function getSecuritySessions(options?: MutationOptions<any, any>): {
|
|
254
|
+
mutate: (payload?: SecuritySessionsQuery | undefined) => Promise<any>;
|
|
255
|
+
getSessions: (payload?: SecuritySessionsQuery | undefined) => Promise<any>;
|
|
256
|
+
getSecuritySessions: (payload?: SecuritySessionsQuery | undefined) => Promise<any>;
|
|
257
|
+
isLoading: () => boolean;
|
|
258
|
+
};
|
|
259
|
+
declare function revokeSecuritySession(options?: MutationOptions<any, any>): {
|
|
260
|
+
mutate: (payload?: RevokeSecuritySessionPayload | undefined) => Promise<any>;
|
|
261
|
+
revokeSession: (payload?: RevokeSecuritySessionPayload | undefined) => Promise<any>;
|
|
262
|
+
revokeSecuritySession: (payload?: RevokeSecuritySessionPayload | undefined) => Promise<any>;
|
|
263
|
+
isLoading: () => boolean;
|
|
264
|
+
};
|
|
265
|
+
declare function revokeOtherSecuritySessions(options?: MutationOptions<any, any>): {
|
|
266
|
+
mutate: (payload?: {
|
|
267
|
+
refreshToken?: string;
|
|
268
|
+
} | undefined) => Promise<any>;
|
|
269
|
+
revokeOtherSessions: (payload?: {
|
|
270
|
+
refreshToken?: string;
|
|
271
|
+
} | undefined) => Promise<any>;
|
|
272
|
+
revokeOtherSecuritySessions: (payload?: {
|
|
273
|
+
refreshToken?: string;
|
|
274
|
+
} | undefined) => Promise<any>;
|
|
275
|
+
isLoading: () => boolean;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
declare function verifyOtp(options?: MutationOptions<any, any>): {
|
|
279
|
+
mutate: (payload?: TwoFaVerificationRequest | undefined) => Promise<any>;
|
|
280
|
+
verifyOtp: (payload?: TwoFaVerificationRequest | undefined) => Promise<any>;
|
|
281
|
+
isLoading: () => boolean;
|
|
282
|
+
};
|
|
283
|
+
declare function sendMfaOtp(options?: MutationOptions<any, any>): {
|
|
284
|
+
mutate: (payload?: MfaOtpSendRequest | undefined) => Promise<any>;
|
|
285
|
+
sendOtp: (payload?: MfaOtpSendRequest | undefined) => Promise<any>;
|
|
286
|
+
sendMfaOtp: (payload?: MfaOtpSendRequest | undefined) => Promise<any>;
|
|
287
|
+
isLoading: () => boolean;
|
|
288
|
+
};
|
|
289
|
+
declare function pendingPasskeyOptions(options?: MutationOptions<any, any>): {
|
|
290
|
+
mutate: (payload?: MfaPendingPasskeyOptionsRequest | undefined) => Promise<any>;
|
|
291
|
+
pendingPasskeyOptions: (payload?: MfaPendingPasskeyOptionsRequest | undefined) => Promise<any>;
|
|
292
|
+
isLoading: () => boolean;
|
|
293
|
+
};
|
|
294
|
+
declare function pendingPasskeyVerify(options?: MutationOptions<any, any>): {
|
|
295
|
+
mutate: (payload?: MfaPendingPasskeyVerifyRequest | undefined) => Promise<any>;
|
|
296
|
+
pendingPasskeyVerify: (payload?: MfaPendingPasskeyVerifyRequest | undefined) => Promise<any>;
|
|
297
|
+
isLoading: () => boolean;
|
|
298
|
+
};
|
|
299
|
+
declare function getMfaStatus(options?: MutationOptions<any, any>): {
|
|
300
|
+
mutate: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
301
|
+
getStatus: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
302
|
+
getMfaStatus: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
303
|
+
isLoading: () => boolean;
|
|
304
|
+
};
|
|
305
|
+
declare function setMfaPreferences(options?: MutationOptions<any, any>): {
|
|
306
|
+
mutate: (payload?: (MfaPreferenceRequest & MfaStatusQuery) | undefined) => Promise<any>;
|
|
307
|
+
setPreferences: (payload?: (MfaPreferenceRequest & MfaStatusQuery) | undefined) => Promise<any>;
|
|
308
|
+
setMfaPreferences: (payload?: (MfaPreferenceRequest & MfaStatusQuery) | undefined) => Promise<any>;
|
|
309
|
+
isLoading: () => boolean;
|
|
310
|
+
};
|
|
311
|
+
declare function startPhoneVerify(options?: MutationOptions<any, any>): {
|
|
312
|
+
mutate: (payload?: PhoneVerifyStartRequest | undefined) => Promise<any>;
|
|
313
|
+
startPhoneVerify: (payload?: PhoneVerifyStartRequest | undefined) => Promise<any>;
|
|
314
|
+
isLoading: () => boolean;
|
|
315
|
+
};
|
|
316
|
+
declare function confirmPhoneVerify(options?: MutationOptions<any, any>): {
|
|
317
|
+
mutate: (payload?: PhoneVerifyConfirmRequest | undefined) => Promise<any>;
|
|
318
|
+
confirmPhoneVerify: (payload?: PhoneVerifyConfirmRequest | undefined) => Promise<any>;
|
|
319
|
+
isLoading: () => boolean;
|
|
320
|
+
};
|
|
321
|
+
declare function totpEnrollStart(options?: MutationOptions<any, any>): {
|
|
322
|
+
mutate: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
323
|
+
totpEnrollStart: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
324
|
+
isLoading: () => boolean;
|
|
325
|
+
};
|
|
326
|
+
declare function totpEnrollVerify(options?: MutationOptions<any, any>): {
|
|
327
|
+
mutate: (payload?: TotpEnrollVerifyRequest | undefined) => Promise<any>;
|
|
328
|
+
totpEnrollVerify: (payload?: TotpEnrollVerifyRequest | undefined) => Promise<any>;
|
|
329
|
+
isLoading: () => boolean;
|
|
330
|
+
};
|
|
331
|
+
declare function totpDisable(options?: MutationOptions<any, any>): {
|
|
332
|
+
mutate: (payload?: TotpDisableRequest | undefined) => Promise<any>;
|
|
333
|
+
totpDisable: (payload?: TotpDisableRequest | undefined) => Promise<any>;
|
|
334
|
+
isLoading: () => boolean;
|
|
335
|
+
};
|
|
336
|
+
declare function webauthnRegisterOptions(options?: MutationOptions<any, any>): {
|
|
337
|
+
mutate: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
338
|
+
webauthnRegisterOptions: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
339
|
+
isLoading: () => boolean;
|
|
340
|
+
};
|
|
341
|
+
declare function webauthnRegisterVerify(options?: MutationOptions<any, any>): {
|
|
342
|
+
mutate: (payload?: WebAuthnVerifyRequest | undefined) => Promise<any>;
|
|
343
|
+
webauthnRegisterVerify: (payload?: WebAuthnVerifyRequest | undefined) => Promise<any>;
|
|
344
|
+
isLoading: () => boolean;
|
|
345
|
+
};
|
|
346
|
+
declare function webauthnAuthOptions(options?: MutationOptions<any, any>): {
|
|
347
|
+
mutate: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
348
|
+
webauthnAuthOptions: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
349
|
+
isLoading: () => boolean;
|
|
350
|
+
};
|
|
351
|
+
declare function webauthnAuthVerify(options?: MutationOptions<any, any>): {
|
|
352
|
+
mutate: (payload?: WebAuthnVerifyRequest | undefined) => Promise<any>;
|
|
353
|
+
webauthnAuthVerify: (payload?: WebAuthnVerifyRequest | undefined) => Promise<any>;
|
|
354
|
+
isLoading: () => boolean;
|
|
355
|
+
};
|
|
356
|
+
declare function listWebauthnCredentials(options?: MutationOptions<any, any>): {
|
|
357
|
+
mutate: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
358
|
+
listWebauthnCredentials: (payload?: MfaStatusQuery | undefined) => Promise<any>;
|
|
359
|
+
isLoading: () => boolean;
|
|
360
|
+
};
|
|
361
|
+
declare function deleteWebauthnCredential(options?: MutationOptions<any, any>): {
|
|
362
|
+
mutate: (payload?: ({
|
|
363
|
+
credentialRecordId: string | number;
|
|
364
|
+
} & MfaStatusQuery) | undefined) => Promise<any>;
|
|
365
|
+
deleteWebauthnCredential: (payload?: ({
|
|
366
|
+
credentialRecordId: string | number;
|
|
367
|
+
} & MfaStatusQuery) | undefined) => Promise<any>;
|
|
368
|
+
isLoading: () => boolean;
|
|
369
|
+
};
|
|
370
|
+
declare function passkeyLoginOptions(options?: MutationOptions<any, any>): {
|
|
371
|
+
mutate: (payload?: PasskeyLoginOptionsRequest | undefined) => Promise<any>;
|
|
372
|
+
passkeyLoginOptions: (payload?: PasskeyLoginOptionsRequest | undefined) => Promise<any>;
|
|
373
|
+
isLoading: () => boolean;
|
|
374
|
+
};
|
|
375
|
+
declare function passkeyLoginVerify(options?: MutationOptions<any, any>): {
|
|
376
|
+
mutate: (payload?: PasskeyLoginVerifyRequest | undefined) => Promise<any>;
|
|
377
|
+
passkeyLoginVerify: (payload?: PasskeyLoginVerifyRequest | undefined) => Promise<any>;
|
|
378
|
+
isLoading: () => boolean;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
declare function me(options?: MutationOptions<any, any>): {
|
|
382
|
+
mutate: (payload?: unknown) => Promise<any>;
|
|
383
|
+
me: (payload?: unknown) => Promise<any>;
|
|
384
|
+
isLoading: () => boolean;
|
|
385
|
+
};
|
|
386
|
+
declare function profile(options?: MutationOptions<any, any>): {
|
|
387
|
+
mutate: (payload?: any) => Promise<any>;
|
|
388
|
+
profile: (payload?: any) => Promise<any>;
|
|
389
|
+
isLoading: () => boolean;
|
|
390
|
+
};
|
|
391
|
+
declare function profileUpdate(options?: MutationOptions<any, any>): {
|
|
392
|
+
mutate: (payload?: any) => Promise<any>;
|
|
393
|
+
updateProfile: (payload?: any) => Promise<any>;
|
|
394
|
+
profileUpdate: (payload?: any) => Promise<any>;
|
|
395
|
+
isLoading: () => boolean;
|
|
396
|
+
};
|
|
397
|
+
declare function changePassword(options?: MutationOptions<any, any>): {
|
|
398
|
+
mutate: (payload?: ChangePasswordPayload | undefined) => Promise<any>;
|
|
399
|
+
changePassword: (payload?: ChangePasswordPayload | undefined) => Promise<any>;
|
|
400
|
+
isLoading: () => boolean;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
declare function preLogin(options?: MutationOptions<any, any>): {
|
|
404
|
+
mutate: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
405
|
+
preLogin: (payload?: PreLoginPayload | undefined) => Promise<any>;
|
|
406
|
+
isLoading: () => boolean;
|
|
407
|
+
};
|
|
408
|
+
declare function login(options?: MutationOptions<any, any>): {
|
|
409
|
+
mutate: (payload?: LoginPayload | undefined) => Promise<any>;
|
|
410
|
+
login: (payload?: LoginPayload | undefined) => Promise<any>;
|
|
411
|
+
isLoading: () => boolean;
|
|
412
|
+
};
|
|
413
|
+
interface ClientSessionPayload {
|
|
414
|
+
accessToken: string;
|
|
415
|
+
refreshToken?: string;
|
|
416
|
+
}
|
|
417
|
+
declare function clientSession(options?: MutationOptions<any, any>): {
|
|
418
|
+
mutate: (payload?: ClientSessionPayload | undefined) => Promise<any>;
|
|
419
|
+
clientSession: (payload?: ClientSessionPayload | undefined) => Promise<any>;
|
|
420
|
+
isLoading: () => boolean;
|
|
421
|
+
};
|
|
422
|
+
declare function verifyEmail(options?: MutationOptions<any, any>): {
|
|
423
|
+
mutate: (payload?: VerifyEmailPayload | undefined) => Promise<any>;
|
|
424
|
+
verifyEmail: (payload?: VerifyEmailPayload | undefined) => Promise<any>;
|
|
425
|
+
isLoading: () => boolean;
|
|
426
|
+
};
|
|
427
|
+
declare function resetPasswordVerifyToken(options?: MutationOptions<any, any>): {
|
|
428
|
+
mutate: (payload?: ResetPasswordVerifyTokenPayload | undefined) => Promise<any>;
|
|
429
|
+
resetPasswordVerifyToken: (payload?: ResetPasswordVerifyTokenPayload | undefined) => Promise<any>;
|
|
430
|
+
isLoading: () => boolean;
|
|
431
|
+
};
|
|
432
|
+
declare function resetPassword(options?: MutationOptions<any, any>): {
|
|
433
|
+
mutate: (payload?: ResetPasswordPayload | undefined) => Promise<any>;
|
|
434
|
+
resetPassword: (payload?: ResetPasswordPayload | undefined) => Promise<any>;
|
|
435
|
+
isLoading: () => boolean;
|
|
436
|
+
};
|
|
437
|
+
declare function forgetPassword(options?: MutationOptions<any, any>): {
|
|
438
|
+
mutate: (payload?: ForgetPasswordPayload | undefined) => Promise<any>;
|
|
439
|
+
forgetPassword: (payload?: ForgetPasswordPayload | undefined) => Promise<any>;
|
|
440
|
+
isLoading: () => boolean;
|
|
441
|
+
};
|
|
442
|
+
declare function logout(options?: MutationOptions<any, any>): {
|
|
443
|
+
mutate: (payload?: unknown) => Promise<any>;
|
|
444
|
+
logout: (payload?: unknown) => Promise<any>;
|
|
445
|
+
isLoading: () => boolean;
|
|
446
|
+
};
|
|
447
|
+
declare function registerExistingUser(options?: MutationOptions<any, any>): {
|
|
448
|
+
mutate: (payload?: any) => Promise<any>;
|
|
449
|
+
registerExistingUser: (payload?: any) => Promise<any>;
|
|
450
|
+
isLoading: () => boolean;
|
|
451
|
+
};
|
|
452
|
+
declare function verifyEmailResend(options?: MutationOptions<any, any>): {
|
|
453
|
+
mutate: (payload?: any) => Promise<any>;
|
|
454
|
+
verifyEmailResend: (payload?: any) => Promise<any>;
|
|
455
|
+
isLoading: () => boolean;
|
|
456
|
+
};
|
|
457
|
+
declare function resendEmail(options?: MutationOptions<any, any>): {
|
|
458
|
+
mutate: (payload?: any) => Promise<any>;
|
|
459
|
+
resendEmail: (payload?: any) => Promise<any>;
|
|
460
|
+
isLoading: () => boolean;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export { type MfaPendingPasskeyVerifyRequest as $, webauthnRegisterOptions as A, webauthnRegisterVerify as B, webauthnAuthOptions as C, webauthnAuthVerify as D, listWebauthnCredentials as E, deleteWebauthnCredential as F, passkeyLoginOptions as G, passkeyLoginVerify as H, getSecurityOverview as I, getSecurityLoginActivity as J, getSecuritySessions as K, revokeSecuritySession as L, revokeOtherSecuritySessions as M, getSsoDetails as N, generateSsoUrl as O, ssoCallback as P, getRefreshToken as Q, getAuthRefreshToken as R, getAccessToken as S, isAuthenticated as T, isAuthenticateApp as U, isAccessTokenExpired as V, isExpiresAccessToken as W, type LoggerConfig as X, type TwoFaVerificationRequest as Y, type MfaOtpSendRequest as Z, type MfaPendingPasskeyOptionsRequest as _, logout as a, type MfaStatusQuery as a0, type MfaPreferenceRequest as a1, type PhoneVerifyStartRequest as a2, type PhoneVerifyConfirmRequest as a3, type TotpEnrollVerifyRequest as a4, type TotpDisableRequest as a5, type WebAuthnVerifyRequest as a6, type PasskeyLoginOptionsRequest as a7, type PasskeyLoginVerifyRequest as a8, type SecurityOverviewQuery as a9, type SecurityLoginActivityQuery as aa, type SecuritySessionsQuery as ab, type RevokeSecuritySessionPayload as ac, type ActiveSession as ad, type HttpClientConfig as ae, type LogLevel as af, type LoginHistoryRow as ag, type LoginResponseData as ah, type MfaEnrollmentStatus as ai, type MfaMethod as aj, type MfaMethodOption as ak, type PaginationResponse as al, type SecurityOverview as am, type StorageKeyConfig as an, getFieldErrors as ao, getFormErrors as ap, initializeHttpClient as aq, resetPassword as b, clientSession as c, resetPasswordVerifyToken as d, verifyEmailResend as e, forgetPassword as f, resendEmail as g, changePassword as h, profile as i, profileUpdate as j, verifyOtp as k, login as l, me as m, pendingPasskeyOptions as n, pendingPasskeyVerify as o, preLogin as p, getMfaStatus as q, registerExistingUser as r, sendMfaOtp as s, setMfaPreferences as t, startPhoneVerify as u, verifyEmail as v, confirmPhoneVerify as w, totpEnrollStart as x, totpEnrollVerify as y, totpDisable as z };
|