woodsportal-client-sdk 4.0.4-dev.2 → 4.0.4-dev.3

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.
@@ -1,5 +1,5 @@
1
1
  import { InternalAxiosRequestConfig } from 'axios';
2
- 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
+ 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-Bh9eY8sA.js';
3
3
 
4
4
  type MfaMethod = 'EMAIL_OTP' | 'SMS_OTP' | 'TOTP' | 'BACKUP_CODE' | 'PASSKEY' | 'PASSKEY_PRIMARY';
5
5
  type MfaMethodStatus = 'READY' | 'NOT_ENROLLED';
@@ -7,6 +7,7 @@ type MfaMethodNotReadyReason = 'PHONE_NOT_VERIFIED' | 'NOT_ENROLLED' | 'POLICY_B
7
7
  interface MfaMethodOption {
8
8
  method: MfaMethod;
9
9
  status: MfaMethodStatus;
10
+ destination?: string;
10
11
  destinationMasked?: string;
11
12
  reason?: MfaMethodNotReadyReason;
12
13
  }
@@ -30,6 +31,7 @@ interface LoginResponseData extends MfaPortalScopeContext {
30
31
  loggedInDetails?: Record<string, unknown>;
31
32
  twoFactorRequired?: boolean;
32
33
  otpDelivery?: string;
34
+ otpDestination?: string;
33
35
  otpDestinationMasked?: string;
34
36
  mfaMethods?: MfaMethodOption[];
35
37
  defaultMethod?: MfaMethod;
@@ -75,6 +77,31 @@ interface PhoneVerifyConfirmRequest {
75
77
  phone: string;
76
78
  code: string;
77
79
  }
80
+ interface LoginBootstrapPortal {
81
+ portalId?: number;
82
+ label?: string;
83
+ name?: string;
84
+ portalUrl?: string;
85
+ }
86
+ interface LoginBootstrapMfaPolicy {
87
+ mfaRequired?: boolean;
88
+ mfaConfigured?: boolean;
89
+ mfaEnforcementEnabled?: boolean;
90
+ mfaAllowedMethods?: MfaMethod[];
91
+ }
92
+ interface LoginBootstrapSsoProvider {
93
+ portalIntegrationConfigId?: number;
94
+ activeStatus?: boolean;
95
+ integrationName?: string;
96
+ integrationSlug?: string;
97
+ logo?: string;
98
+ buttonText?: string;
99
+ }
100
+ interface LoginBootstrapResponse {
101
+ portal?: LoginBootstrapPortal;
102
+ mfaPolicy?: LoginBootstrapMfaPolicy;
103
+ ssoProviders?: LoginBootstrapSsoProvider[];
104
+ }
78
105
  interface TotpEnrollVerifyRequest {
79
106
  code: string;
80
107
  portalId?: string | number;
@@ -83,6 +110,19 @@ interface TotpEnrollVerifyRequest {
83
110
  interface TotpDisableRequest {
84
111
  password: string;
85
112
  }
113
+ interface PhoneUnverifyRequest {
114
+ password: string;
115
+ }
116
+ interface BackupCodesRegenerateRequest {
117
+ password: string;
118
+ totpCode: string;
119
+ }
120
+ interface MfaOptOutRequest {
121
+ password: string;
122
+ }
123
+ interface MfaBackupCodesResponse {
124
+ backupCodes?: string[];
125
+ }
86
126
  interface WebAuthnVerifyRequest {
87
127
  challengeId: string;
88
128
  credential: Record<string, unknown>;
@@ -148,6 +188,7 @@ interface ActiveSession {
148
188
  current?: boolean;
149
189
  deviceType?: string;
150
190
  userAgent?: string;
191
+ ipAddress?: string;
151
192
  ipAddressMasked?: string;
152
193
  countryCode?: string;
153
194
  lastActiveAt?: string;
@@ -263,6 +304,21 @@ declare function ssoCallback(options?: MutationOptions<any, any>): {
263
304
  isLoading: () => boolean;
264
305
  };
265
306
 
307
+ declare function getLoginBootstrap(options?: MutationOptions<any, {
308
+ hubId?: number;
309
+ portalId?: number;
310
+ } | void>): {
311
+ mutate: (payload?: {
312
+ hubId?: number;
313
+ portalId?: number;
314
+ } | undefined) => Promise<any>;
315
+ getLoginBootstrap: (payload?: {
316
+ hubId?: number;
317
+ portalId?: number;
318
+ } | undefined) => Promise<any>;
319
+ isLoading: () => boolean;
320
+ };
321
+
266
322
  declare function getSecurityOverview(options?: MutationOptions<any, any>): {
267
323
  mutate: (payload?: SecurityOverviewQuery | undefined) => Promise<any>;
268
324
  getOverview: (payload?: SecurityOverviewQuery | undefined) => Promise<any>;
@@ -334,13 +390,13 @@ declare function setMfaPreferences(options?: MutationOptions<any, any>): {
334
390
  isLoading: () => boolean;
335
391
  };
336
392
  declare function startPhoneVerify(options?: MutationOptions<any, any>): {
337
- mutate: (payload?: PhoneVerifyStartRequest | undefined) => Promise<any>;
338
- startPhoneVerify: (payload?: PhoneVerifyStartRequest | undefined) => Promise<any>;
393
+ mutate: (payload?: (PhoneVerifyStartRequest & MfaStatusQuery) | undefined) => Promise<any>;
394
+ startPhoneVerify: (payload?: (PhoneVerifyStartRequest & MfaStatusQuery) | undefined) => Promise<any>;
339
395
  isLoading: () => boolean;
340
396
  };
341
397
  declare function confirmPhoneVerify(options?: MutationOptions<any, any>): {
342
- mutate: (payload?: PhoneVerifyConfirmRequest | undefined) => Promise<any>;
343
- confirmPhoneVerify: (payload?: PhoneVerifyConfirmRequest | undefined) => Promise<any>;
398
+ mutate: (payload?: (PhoneVerifyConfirmRequest & MfaStatusQuery) | undefined) => Promise<any>;
399
+ confirmPhoneVerify: (payload?: (PhoneVerifyConfirmRequest & MfaStatusQuery) | undefined) => Promise<any>;
344
400
  isLoading: () => boolean;
345
401
  };
346
402
  declare function totpEnrollStart(options?: MutationOptions<any, any>): {
@@ -354,8 +410,24 @@ declare function totpEnrollVerify(options?: MutationOptions<any, any>): {
354
410
  isLoading: () => boolean;
355
411
  };
356
412
  declare function totpDisable(options?: MutationOptions<any, any>): {
357
- mutate: (payload?: TotpDisableRequest | undefined) => Promise<any>;
358
- totpDisable: (payload?: TotpDisableRequest | undefined) => Promise<any>;
413
+ mutate: (payload?: (TotpDisableRequest & MfaStatusQuery) | undefined) => Promise<any>;
414
+ totpDisable: (payload?: (TotpDisableRequest & MfaStatusQuery) | undefined) => Promise<any>;
415
+ isLoading: () => boolean;
416
+ };
417
+ declare function phoneUnverify(options?: MutationOptions<any, any>): {
418
+ mutate: (payload?: (PhoneUnverifyRequest & MfaStatusQuery) | undefined) => Promise<any>;
419
+ phoneUnverify: (payload?: (PhoneUnverifyRequest & MfaStatusQuery) | undefined) => Promise<any>;
420
+ isLoading: () => boolean;
421
+ };
422
+ declare function backupCodesRegenerate(options?: MutationOptions<MfaBackupCodesResponse, any>): {
423
+ mutate: (payload?: (BackupCodesRegenerateRequest & MfaStatusQuery) | undefined) => Promise<MfaBackupCodesResponse>;
424
+ backupCodesRegenerate: (payload?: (BackupCodesRegenerateRequest & MfaStatusQuery) | undefined) => Promise<MfaBackupCodesResponse>;
425
+ isLoading: () => boolean;
426
+ };
427
+ declare function mfaOptOut(options?: MutationOptions<any, any>): {
428
+ mutate: (payload?: (MfaOptOutRequest & MfaStatusQuery) | undefined) => Promise<any>;
429
+ optOut: (payload?: (MfaOptOutRequest & MfaStatusQuery) | undefined) => Promise<any>;
430
+ mfaOptOut: (payload?: (MfaOptOutRequest & MfaStatusQuery) | undefined) => Promise<any>;
359
431
  isLoading: () => boolean;
360
432
  };
361
433
  declare function webauthnRegisterOptions(options?: MutationOptions<any, any>): {
@@ -500,4 +572,4 @@ declare function classifyHttpError(error: unknown): HttpErrorKind;
500
572
  declare function isServiceUnavailableError(error: unknown): boolean;
501
573
  declare function getHttpErrorMessage(error: unknown): string;
502
574
 
503
- export { type MfaOtpSendRequest as $, totpDisable as A, webauthnRegisterOptions as B, webauthnRegisterVerify as C, webauthnAuthOptions as D, webauthnAuthVerify as E, listWebauthnCredentials as F, deleteWebauthnCredential as G, passkeyLoginOptions as H, passkeyLoginVerify as I, getSecurityOverview as J, getSecurityLoginActivity as K, getSecuritySessions as L, revokeSecuritySession as M, revokeOtherSecuritySessions as N, getSsoDetails as O, generateSsoUrl as P, ssoCallback as Q, getRefreshToken as R, getAuthRefreshToken as S, getAccessToken as T, clearAccessToken as U, isAuthenticated as V, isAuthenticateApp as W, isAccessTokenExpired as X, isExpiresAccessToken as Y, type LoggerConfig as Z, type TwoFaVerificationRequest as _, logout as a, type MfaPendingPasskeyOptionsRequest as a0, type MfaPendingPasskeyVerifyRequest as a1, type MfaStatusQuery as a2, type MfaPreferenceRequest as a3, type PhoneVerifyStartRequest as a4, type PhoneVerifyConfirmRequest as a5, type TotpEnrollVerifyRequest as a6, type TotpDisableRequest as a7, type WebAuthnVerifyRequest as a8, type PasskeyLoginOptionsRequest as a9, type EditorPreviewMockResult as aA, setEditorPreviewMockHandler as aB, type PasskeyLoginVerifyRequest as aa, type SecurityOverviewQuery as ab, type SecurityLoginActivityQuery as ac, type SecuritySessionsQuery as ad, type RevokeSecuritySessionPayload as ae, type ActiveSession as af, type HttpClientConfig as ag, type HttpErrorKind as ah, type LogLevel as ai, type LoginHistoryRow as aj, type LoginResponseData as ak, type MfaEnrollmentStatus as al, type MfaMethod as am, type MfaMethodOption as an, type MfaPortalScopeContext as ao, type PaginationResponse as ap, SERVICE_UNAVAILABLE_MESSAGE as aq, type SecurityOverview as ar, type StorageKeyConfig as as, classifyHttpError as at, getFieldErrors as au, getFormErrors as av, getHttpErrorMessage as aw, initializeHttpClient as ax, isServiceUnavailableError as ay, type EditorPreviewMockHandler as az, resetPassword as b, clientSession as c, resetPasswordVerifyToken as d, verifyEmailResend as e, forgetPassword as f, resendEmail as g, handoff as h, changePassword as i, profile as j, profileUpdate as k, login as l, me as m, verifyOtp as n, pendingPasskeyOptions as o, preLogin as p, pendingPasskeyVerify as q, registerExistingUser as r, sendMfaOtp as s, getMfaStatus as t, setMfaPreferences as u, verifyEmail as v, startPhoneVerify as w, confirmPhoneVerify as x, totpEnrollStart as y, totpEnrollVerify as z };
575
+ export { isAccessTokenExpired as $, totpDisable as A, phoneUnverify as B, backupCodesRegenerate as C, mfaOptOut as D, webauthnRegisterOptions as E, webauthnRegisterVerify as F, webauthnAuthOptions as G, webauthnAuthVerify as H, listWebauthnCredentials as I, deleteWebauthnCredential as J, passkeyLoginOptions as K, passkeyLoginVerify as L, getSecurityOverview as M, getSecurityLoginActivity as N, getSecuritySessions as O, revokeSecuritySession as P, revokeOtherSecuritySessions as Q, getLoginBootstrap as R, getSsoDetails as S, generateSsoUrl as T, ssoCallback as U, getRefreshToken as V, getAuthRefreshToken as W, getAccessToken as X, clearAccessToken as Y, isAuthenticated as Z, isAuthenticateApp as _, logout as a, isExpiresAccessToken as a0, type LoggerConfig as a1, type TwoFaVerificationRequest as a2, type MfaOtpSendRequest as a3, type MfaPendingPasskeyOptionsRequest as a4, type MfaPendingPasskeyVerifyRequest as a5, type MfaStatusQuery as a6, type MfaPreferenceRequest as a7, type PhoneVerifyStartRequest as a8, type PhoneVerifyConfirmRequest as a9, type StorageKeyConfig as aA, classifyHttpError as aB, getFieldErrors as aC, getFormErrors as aD, getHttpErrorMessage as aE, initializeHttpClient as aF, isServiceUnavailableError as aG, type EditorPreviewMockHandler as aH, type EditorPreviewMockResult as aI, type LoginBootstrapMfaPolicy as aJ, type LoginBootstrapPortal as aK, type LoginBootstrapResponse as aL, type LoginBootstrapSsoProvider as aM, setEditorPreviewMockHandler as aN, type TotpEnrollVerifyRequest as aa, type TotpDisableRequest as ab, type PhoneUnverifyRequest as ac, type BackupCodesRegenerateRequest as ad, type MfaBackupCodesResponse as ae, type MfaOptOutRequest as af, type WebAuthnVerifyRequest as ag, type PasskeyLoginOptionsRequest as ah, type PasskeyLoginVerifyRequest as ai, type SecurityOverviewQuery as aj, type SecurityLoginActivityQuery as ak, type SecuritySessionsQuery as al, type RevokeSecuritySessionPayload as am, type ActiveSession as an, type HttpClientConfig as ao, type HttpErrorKind as ap, type LogLevel as aq, type LoginHistoryRow as ar, type LoginResponseData as as, type MfaEnrollmentStatus as at, type MfaMethod as au, type MfaMethodOption as av, type MfaPortalScopeContext as aw, type PaginationResponse as ax, SERVICE_UNAVAILABLE_MESSAGE as ay, type SecurityOverview as az, resetPassword as b, clientSession as c, resetPasswordVerifyToken as d, verifyEmailResend as e, forgetPassword as f, resendEmail as g, handoff as h, changePassword as i, profile as j, profileUpdate as k, login as l, me as m, verifyOtp as n, pendingPasskeyOptions as o, preLogin as p, pendingPasskeyVerify as q, registerExistingUser as r, sendMfaOtp as s, getMfaStatus as t, setMfaPreferences as u, verifyEmail as v, startPhoneVerify as w, confirmPhoneVerify as x, totpEnrollStart as y, totpEnrollVerify as z };
@@ -10,11 +10,15 @@ interface MutationOptions<TSuccess, TError = unknown> {
10
10
  onLoadingChange?: (loading: boolean) => void;
11
11
  }
12
12
  interface PreLoginPayload {
13
- username: string;
13
+ username?: string;
14
+ email?: string;
15
+ hubId?: number;
16
+ portalId?: number;
14
17
  }
15
18
  interface LoginPayload {
16
19
  username: string;
17
20
  password: string;
21
+ rememberMe?: boolean;
18
22
  }
19
23
  interface VerifyEmailPayload {
20
24
  token: string;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { T as TableUiState, a as TableState, U as UserState, N as NoteState, E as EmailState, S as SyncState } from './use-sync-DpazhM4d.js';
2
- import { l as list, a as list$1, b as list$2, s as sideBarList, f as form, o as objectFormOptions, d as details, u as update, c as create, e as createExisting, r as removeExisting, g as list$3, h as create$1, i as update$1, j as list$4, k as create$2, m as update$2, n as list$5, p as details$1, q as download, t as addFolder, v as addFile, w as imageUpload, x as attachmentUpload, y as purge, z as purgeStatus, C as CachePurgeTarget, A as CachePurgeRequest, B as CachePurgeListQuery, D as CachePurgeView, E as CreateCachePurgeJobOptions, P as PurgeResult, F as CrmCachePurgeOptions } from './cache-purge-G5WkHckd.js';
3
- export { G as CachePurgeDomain, H as CachePurgeMode } from './cache-purge-G5WkHckd.js';
4
- import { p as preLogin, l as login, c as clientSession, h as handoff, a as logout, v as verifyEmail, r as registerExistingUser, f as forgetPassword, b as resetPassword, d as resetPasswordVerifyToken, e as verifyEmailResend, g as resendEmail, i as changePassword, m as me, j as profile, k as profileUpdate, n as verifyOtp, s as sendMfaOtp, o as pendingPasskeyOptions, q as pendingPasskeyVerify, t as getMfaStatus, u as setMfaPreferences, w as startPhoneVerify, x as confirmPhoneVerify, y as totpEnrollStart, z as totpEnrollVerify, A as totpDisable, B as webauthnRegisterOptions, C as webauthnRegisterVerify, D as webauthnAuthOptions, E as webauthnAuthVerify, F as listWebauthnCredentials, G as deleteWebauthnCredential, H as passkeyLoginOptions, I as passkeyLoginVerify, J as getSecurityOverview, K as getSecurityLoginActivity, L as getSecuritySessions, M as revokeSecuritySession, N as revokeOtherSecuritySessions, O as getSsoDetails, P as generateSsoUrl, Q as ssoCallback, R as getRefreshToken, S as getAuthRefreshToken, T as getAccessToken, U as clearAccessToken, V as isAuthenticated, W as isAuthenticateApp, X as isAccessTokenExpired, Y as isExpiresAccessToken, Z as LoggerConfig, _ as TwoFaVerificationRequest, $ as MfaOtpSendRequest, a0 as MfaPendingPasskeyOptionsRequest, a1 as MfaPendingPasskeyVerifyRequest, a2 as MfaStatusQuery, a3 as MfaPreferenceRequest, a4 as PhoneVerifyStartRequest, a5 as PhoneVerifyConfirmRequest, a6 as TotpEnrollVerifyRequest, a7 as TotpDisableRequest, a8 as WebAuthnVerifyRequest, a9 as PasskeyLoginOptionsRequest, aa as PasskeyLoginVerifyRequest, ab as SecurityOverviewQuery, ac as SecurityLoginActivityQuery, ad as SecuritySessionsQuery, ae as RevokeSecuritySessionPayload } from './http-errors-hlKcIsXD.js';
5
- export { af as ActiveSession, ag as HttpClientConfig, ah as HttpErrorKind, ai as LogLevel, aj as LoginHistoryRow, ak as LoginResponseData, al as MfaEnrollmentStatus, am as MfaMethod, an as MfaMethodOption, ao as MfaPortalScopeContext, ap as PaginationResponse, aq as SERVICE_UNAVAILABLE_MESSAGE, ar as SecurityOverview, as as StorageKeyConfig, at as classifyHttpError, au as getFieldErrors, av as getFormErrors, aw as getHttpErrorMessage, ax as initializeHttpClient, ay as isServiceUnavailableError } from './http-errors-hlKcIsXD.js';
6
- import { P as PreLoginPayload, L as LoginPayload, V as VerifyEmailPayload, R as ResetPasswordVerifyTokenPayload, a as ResetPasswordPayload, F as ForgetPasswordPayload, C as ChangePasswordPayload } from './index-CCwMopD8.js';
7
- export { b as Config, M as MutationOptions } from './index-CCwMopD8.js';
2
+ import { l as list, a as list$1, b as list$2, s as sideBarList, f as form, o as objectFormOptions, d as details, u as update, c as create, e as createExisting, r as removeExisting, g as list$3, h as create$1, i as update$1, j as list$4, k as create$2, m as update$2, n as list$5, p as details$1, q as download, t as addFolder, v as addFile, w as imageUpload, x as attachmentUpload, y as purge, z as purgeStatus, C as CachePurgeTarget, A as CachePurgeRequest, B as CachePurgeListQuery, D as CachePurgeView, E as CreateCachePurgeJobOptions, P as PurgeResult, F as CrmCachePurgeOptions } from './cache-purge-Ca4idzyy.js';
3
+ export { G as CachePurgeDomain, H as CachePurgeMode } from './cache-purge-Ca4idzyy.js';
4
+ import { p as preLogin, l as login, c as clientSession, h as handoff, a as logout, v as verifyEmail, r as registerExistingUser, f as forgetPassword, b as resetPassword, d as resetPasswordVerifyToken, e as verifyEmailResend, g as resendEmail, i as changePassword, m as me, j as profile, k as profileUpdate, n as verifyOtp, s as sendMfaOtp, o as pendingPasskeyOptions, q as pendingPasskeyVerify, t as getMfaStatus, u as setMfaPreferences, w as startPhoneVerify, x as confirmPhoneVerify, y as totpEnrollStart, z as totpEnrollVerify, A as totpDisable, B as phoneUnverify, C as backupCodesRegenerate, D as mfaOptOut, E as webauthnRegisterOptions, F as webauthnRegisterVerify, G as webauthnAuthOptions, H as webauthnAuthVerify, I as listWebauthnCredentials, J as deleteWebauthnCredential, K as passkeyLoginOptions, L as passkeyLoginVerify, M as getSecurityOverview, N as getSecurityLoginActivity, O as getSecuritySessions, P as revokeSecuritySession, Q as revokeOtherSecuritySessions, R as getLoginBootstrap, S as getSsoDetails, T as generateSsoUrl, U as ssoCallback, V as getRefreshToken, W as getAuthRefreshToken, X as getAccessToken, Y as clearAccessToken, Z as isAuthenticated, _ as isAuthenticateApp, $ as isAccessTokenExpired, a0 as isExpiresAccessToken, a1 as LoggerConfig, a2 as TwoFaVerificationRequest, a3 as MfaOtpSendRequest, a4 as MfaPendingPasskeyOptionsRequest, a5 as MfaPendingPasskeyVerifyRequest, a6 as MfaStatusQuery, a7 as MfaPreferenceRequest, a8 as PhoneVerifyStartRequest, a9 as PhoneVerifyConfirmRequest, aa as TotpEnrollVerifyRequest, ab as TotpDisableRequest, ac as PhoneUnverifyRequest, ad as BackupCodesRegenerateRequest, ae as MfaBackupCodesResponse, af as MfaOptOutRequest, ag as WebAuthnVerifyRequest, ah as PasskeyLoginOptionsRequest, ai as PasskeyLoginVerifyRequest, aj as SecurityOverviewQuery, ak as SecurityLoginActivityQuery, al as SecuritySessionsQuery, am as RevokeSecuritySessionPayload } from './http-errors-DqdtoJ1y.js';
5
+ export { an as ActiveSession, ao as HttpClientConfig, ap as HttpErrorKind, aq as LogLevel, ar as LoginHistoryRow, as as LoginResponseData, at as MfaEnrollmentStatus, au as MfaMethod, av as MfaMethodOption, aw as MfaPortalScopeContext, ax as PaginationResponse, ay as SERVICE_UNAVAILABLE_MESSAGE, az as SecurityOverview, aA as StorageKeyConfig, aB as classifyHttpError, aC as getFieldErrors, aD as getFormErrors, aE as getHttpErrorMessage, aF as initializeHttpClient, aG as isServiceUnavailableError } from './http-errors-DqdtoJ1y.js';
6
+ import { P as PreLoginPayload, L as LoginPayload, V as VerifyEmailPayload, R as ResetPasswordVerifyTokenPayload, a as ResetPasswordPayload, F as ForgetPasswordPayload, C as ChangePasswordPayload } from './index-Bh9eY8sA.js';
7
+ export { b as Config, M as MutationOptions } from './index-Bh9eY8sA.js';
8
8
  import 'axios';
9
9
 
10
10
  declare const api: {
@@ -37,6 +37,10 @@ declare const api: {
37
37
  totpEnrollStart: typeof totpEnrollStart;
38
38
  totpEnrollVerify: typeof totpEnrollVerify;
39
39
  totpDisable: typeof totpDisable;
40
+ phoneUnverify: typeof phoneUnverify;
41
+ backupCodesRegenerate: typeof backupCodesRegenerate;
42
+ optOut: typeof mfaOptOut;
43
+ mfaOptOut: typeof mfaOptOut;
40
44
  webauthnRegisterOptions: typeof webauthnRegisterOptions;
41
45
  webauthnRegisterVerify: typeof webauthnRegisterVerify;
42
46
  webauthnAuthOptions: typeof webauthnAuthOptions;
@@ -53,6 +57,7 @@ declare const api: {
53
57
  revokeSession: typeof revokeSecuritySession;
54
58
  revokeOtherSessions: typeof revokeOtherSecuritySessions;
55
59
  };
60
+ loginBootstrap: typeof getLoginBootstrap;
56
61
  sso: {
57
62
  getDetails: typeof getSsoDetails;
58
63
  generateUrl: typeof generateSsoUrl;
@@ -241,11 +246,14 @@ declare const Client: {
241
246
  pendingPasskeyVerify: (data: MfaPendingPasskeyVerifyRequest) => Promise<unknown>;
242
247
  getStatus: (query?: MfaStatusQuery) => Promise<unknown>;
243
248
  setPreferences: (data: MfaPreferenceRequest, query?: MfaStatusQuery) => Promise<unknown>;
244
- startPhoneVerify: (data: PhoneVerifyStartRequest) => Promise<unknown>;
245
- confirmPhoneVerify: (data: PhoneVerifyConfirmRequest) => Promise<unknown>;
249
+ startPhoneVerify: (data: PhoneVerifyStartRequest, query?: MfaStatusQuery) => Promise<unknown>;
250
+ confirmPhoneVerify: (data: PhoneVerifyConfirmRequest, query?: MfaStatusQuery) => Promise<unknown>;
246
251
  totpEnrollStart: (query?: MfaStatusQuery) => Promise<unknown>;
247
252
  totpEnrollVerify: (data: TotpEnrollVerifyRequest) => Promise<unknown>;
248
- totpDisable: (data: TotpDisableRequest) => Promise<unknown>;
253
+ totpDisable: (data: TotpDisableRequest, query?: MfaStatusQuery) => Promise<unknown>;
254
+ phoneUnverify: (data: PhoneUnverifyRequest, query?: MfaStatusQuery) => Promise<unknown>;
255
+ backupCodesRegenerate: (data: BackupCodesRegenerateRequest, query?: MfaStatusQuery) => Promise<MfaBackupCodesResponse>;
256
+ optOut: (data: MfaOptOutRequest, query?: MfaStatusQuery) => Promise<unknown>;
249
257
  webauthnRegisterOptions: (query?: MfaStatusQuery) => Promise<unknown>;
250
258
  webauthnRegisterVerify: (data: WebAuthnVerifyRequest) => Promise<unknown>;
251
259
  webauthnAuthOptions: (query?: MfaStatusQuery) => Promise<unknown>;
@@ -320,6 +328,10 @@ declare const Client: {
320
328
  code: string;
321
329
  hubId: number;
322
330
  }) => Promise<unknown>;
331
+ getLoginBootstrap: (payload?: {
332
+ hubId?: number;
333
+ portalId?: number;
334
+ }) => Promise<unknown>;
323
335
  };
324
336
  sso: {
325
337
  getSsoDetails: () => Promise<unknown>;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { authApi } from './chunk-GO35W5PN.js';
2
- import { crmApi } from './chunk-D7XKR2O7.js';
3
- import { navigationApi, storage } from './chunk-FDZNMZS4.js';
4
- export { Client, SERVICE_UNAVAILABLE_MESSAGE, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, classifyHttpError, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, getFieldErrors, getFormErrors, getHttpErrorMessage, config as hubContext, initializeHttpClient, isServiceUnavailableError, mergePurgeTargets, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, setConfig as setHubContext, toCachePurgeListQuery } from './chunk-FDZNMZS4.js';
1
+ import { authApi } from './chunk-6AW4JPD5.js';
2
+ import { crmApi } from './chunk-D2WHUYAO.js';
3
+ import { navigationApi, storage } from './chunk-FG67NC4G.js';
4
+ export { Client, SERVICE_UNAVAILABLE_MESSAGE, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, classifyHttpError, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, getFieldErrors, getFormErrors, getHttpErrorMessage, config as hubContext, initializeHttpClient, isServiceUnavailableError, mergePurgeTargets, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, setConfig as setHubContext, toCachePurgeListQuery } from './chunk-FG67NC4G.js';
5
5
  import './chunk-6KKVGCXG.js';
6
6
  import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions7, userStore, actions2, tableStore, tableUiActions, tableUiStore } from './chunk-YEUFUGGT.js';
7
7
  export { configureLogger } from './chunk-YEUFUGGT.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woodsportal-client-sdk",
3
- "version": "4.0.4-dev.2",
3
+ "version": "4.0.4-dev.3",
4
4
  "description": "Official TypeScript/JavaScript SDK for WoodsPortal API - Authentication, user management, pipelines, and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",