woodsportal-client-sdk 4.0.4-dev.0 → 4.0.4-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -0
  2. package/dist/adapters/angular/index.d.ts +8 -2
  3. package/dist/adapters/angular/index.js +5 -5
  4. package/dist/adapters/angular/index.js.map +1 -1
  5. package/dist/adapters/react/index.d.ts +8 -2
  6. package/dist/adapters/react/index.js +5 -5
  7. package/dist/adapters/react/index.js.map +1 -1
  8. package/dist/adapters/vue/index.d.ts +8 -2
  9. package/dist/adapters/vue/index.js +5 -5
  10. package/dist/adapters/vue/index.js.map +1 -1
  11. package/dist/{cache-purge-G5WkHckd.d.ts → cache-purge-Ca4idzyy.d.ts} +1 -1
  12. package/dist/{chunk-NBDLNQ5Y.js → chunk-3MOYNNS6.js} +74 -16
  13. package/dist/chunk-3MOYNNS6.js.map +1 -0
  14. package/dist/{chunk-I6DKZWSQ.js → chunk-4IPGDENW.js} +17 -7
  15. package/dist/chunk-4IPGDENW.js.map +1 -0
  16. package/dist/{chunk-S7PCM6XY.js → chunk-HIU3HVAH.js} +3 -3
  17. package/dist/{chunk-S7PCM6XY.js.map → chunk-HIU3HVAH.js.map} +1 -1
  18. package/dist/{chunk-D6Q7QHDA.js → chunk-OCAHDPIS.js} +209 -18
  19. package/dist/chunk-OCAHDPIS.js.map +1 -0
  20. package/dist/chunk-QLNLPV35.js +21 -0
  21. package/dist/chunk-QLNLPV35.js.map +1 -0
  22. package/dist/{chunk-3LETYSI7.js → chunk-TWOOR6U2.js} +313 -146
  23. package/dist/chunk-TWOOR6U2.js.map +1 -0
  24. package/dist/entries/auth.d.ts +9 -3
  25. package/dist/entries/auth.js +3 -3
  26. package/dist/entries/auth.js.map +1 -1
  27. package/dist/entries/crm.d.ts +3 -3
  28. package/dist/entries/crm.js +6 -6
  29. package/dist/{http-errors-CEpb2NVM.d.ts → http-errors-DqdtoJ1y.d.ts} +89 -8
  30. package/dist/{index-CCwMopD8.d.ts → index-Bh9eY8sA.d.ts} +5 -1
  31. package/dist/index.d.ts +26 -9
  32. package/dist/index.js +9 -9
  33. package/dist/{use-uploader-2F1zc7Cl.d.ts → use-file-BcO5l-Zf.d.ts} +7 -1
  34. package/package.json +4 -3
  35. package/dist/chunk-3LETYSI7.js.map +0 -1
  36. package/dist/chunk-D6Q7QHDA.js.map +0 -1
  37. package/dist/chunk-HVDTMVQG.js +0 -20
  38. package/dist/chunk-HVDTMVQG.js.map +0 -1
  39. package/dist/chunk-I6DKZWSQ.js.map +0 -1
  40. package/dist/chunk-NBDLNQ5Y.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { crmApi } from '../chunk-I6DKZWSQ.js';
2
- import { navigationApi, storage } from '../chunk-3LETYSI7.js';
3
- import '../chunk-S7PCM6XY.js';
4
- import { actions7, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore } from '../chunk-D6Q7QHDA.js';
1
+ import { crmApi } from '../chunk-4IPGDENW.js';
2
+ import { navigationApi, storage } from '../chunk-TWOOR6U2.js';
3
+ import '../chunk-HIU3HVAH.js';
4
+ import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions7, userStore, actions2, tableStore, tableUiActions, tableUiStore } from '../chunk-OCAHDPIS.js';
5
5
  import '../chunk-QPSCMK4W.js';
6
6
 
7
7
  // src/main/entries/crm.ts
@@ -13,10 +13,10 @@ var store = {
13
13
  storage,
14
14
  tableUi: { store: tableUiStore, actions: tableUiActions },
15
15
  table: { store: tableStore, actions: actions2 },
16
- user: { store: userStore, actions: actions6 },
16
+ user: { store: userStore, actions: actions7 },
17
17
  note: { store: noteStore, actions: actions4 },
18
18
  email: { store: emailStore, actions: actions5 },
19
- sync: { store: syncStore, actions: actions7 }
19
+ sync: { store: syncStore, actions: actions8 }
20
20
  };
21
21
 
22
22
  export { api, store };
@@ -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>): {
@@ -439,6 +511,15 @@ interface ClientSessionPayload {
439
511
  accessToken: string;
440
512
  refreshToken?: string;
441
513
  }
514
+ interface AuthHandoffPayload {
515
+ code: string;
516
+ hubId: number;
517
+ }
518
+ declare function handoff(options?: MutationOptions<LoginResponseData, any>): {
519
+ mutate: (payload?: AuthHandoffPayload | undefined) => Promise<LoginResponseData>;
520
+ handoff: (payload?: AuthHandoffPayload | undefined) => Promise<LoginResponseData>;
521
+ isLoading: () => boolean;
522
+ };
442
523
  declare function clientSession(options?: MutationOptions<LoginResponseData, any>): {
443
524
  mutate: (payload?: ClientSessionPayload | undefined) => Promise<LoginResponseData>;
444
525
  clientSession: (payload?: ClientSessionPayload | undefined) => Promise<LoginResponseData>;
@@ -491,4 +572,4 @@ declare function classifyHttpError(error: unknown): HttpErrorKind;
491
572
  declare function isServiceUnavailableError(error: unknown): boolean;
492
573
  declare function getHttpErrorMessage(error: unknown): string;
493
574
 
494
- export { type MfaPendingPasskeyOptionsRequest 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, clearAccessToken as T, isAuthenticated as U, isAuthenticateApp as V, isAccessTokenExpired as W, isExpiresAccessToken as X, type LoggerConfig as Y, type TwoFaVerificationRequest as Z, type MfaOtpSendRequest as _, logout as a, type MfaPendingPasskeyVerifyRequest as a0, type MfaStatusQuery as a1, type MfaPreferenceRequest as a2, type PhoneVerifyStartRequest as a3, type PhoneVerifyConfirmRequest as a4, type TotpEnrollVerifyRequest as a5, type TotpDisableRequest as a6, type WebAuthnVerifyRequest as a7, type PasskeyLoginOptionsRequest as a8, type PasskeyLoginVerifyRequest as a9, setEditorPreviewMockHandler as aA, type SecurityOverviewQuery as aa, type SecurityLoginActivityQuery as ab, type SecuritySessionsQuery as ac, type RevokeSecuritySessionPayload as ad, type ActiveSession as ae, type HttpClientConfig as af, type HttpErrorKind as ag, type LogLevel as ah, type LoginHistoryRow as ai, type LoginResponseData as aj, type MfaEnrollmentStatus as ak, type MfaMethod as al, type MfaMethodOption as am, type MfaPortalScopeContext as an, type PaginationResponse as ao, SERVICE_UNAVAILABLE_MESSAGE as ap, type SecurityOverview as aq, type StorageKeyConfig as ar, classifyHttpError as as, getFieldErrors as at, getFormErrors as au, getHttpErrorMessage as av, initializeHttpClient as aw, isServiceUnavailableError as ax, type EditorPreviewMockHandler as ay, type EditorPreviewMockResult as az, 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 };
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, a as logout, v as verifyEmail, r as registerExistingUser, f as forgetPassword, b as resetPassword, d as resetPasswordVerifyToken, e as verifyEmailResend, g as resendEmail, h as changePassword, m as me, i as profile, j as profileUpdate, k as verifyOtp, s as sendMfaOtp, n as pendingPasskeyOptions, o as pendingPasskeyVerify, q as getMfaStatus, t as setMfaPreferences, u as startPhoneVerify, w as confirmPhoneVerify, x as totpEnrollStart, y as totpEnrollVerify, z as totpDisable, A as webauthnRegisterOptions, B as webauthnRegisterVerify, C as webauthnAuthOptions, D as webauthnAuthVerify, E as listWebauthnCredentials, F as deleteWebauthnCredential, G as passkeyLoginOptions, H as passkeyLoginVerify, I as getSecurityOverview, J as getSecurityLoginActivity, K as getSecuritySessions, L as revokeSecuritySession, M as revokeOtherSecuritySessions, N as getSsoDetails, O as generateSsoUrl, P as ssoCallback, Q as getRefreshToken, R as getAuthRefreshToken, S as getAccessToken, T as clearAccessToken, U as isAuthenticated, V as isAuthenticateApp, W as isAccessTokenExpired, X as isExpiresAccessToken, Y as LoggerConfig, Z as TwoFaVerificationRequest, _ as MfaOtpSendRequest, $ as MfaPendingPasskeyOptionsRequest, a0 as MfaPendingPasskeyVerifyRequest, a1 as MfaStatusQuery, a2 as MfaPreferenceRequest, a3 as PhoneVerifyStartRequest, a4 as PhoneVerifyConfirmRequest, a5 as TotpEnrollVerifyRequest, a6 as TotpDisableRequest, a7 as WebAuthnVerifyRequest, a8 as PasskeyLoginOptionsRequest, a9 as PasskeyLoginVerifyRequest, aa as SecurityOverviewQuery, ab as SecurityLoginActivityQuery, ac as SecuritySessionsQuery, ad as RevokeSecuritySessionPayload } from './http-errors-CEpb2NVM.js';
5
- export { ae as ActiveSession, af as HttpClientConfig, ag as HttpErrorKind, ah as LogLevel, ai as LoginHistoryRow, aj as LoginResponseData, ak as MfaEnrollmentStatus, al as MfaMethod, am as MfaMethodOption, an as MfaPortalScopeContext, ao as PaginationResponse, ap as SERVICE_UNAVAILABLE_MESSAGE, aq as SecurityOverview, ar as StorageKeyConfig, as as classifyHttpError, at as getFieldErrors, au as getFormErrors, av as getHttpErrorMessage, aw as initializeHttpClient, ax as isServiceUnavailableError } from './http-errors-CEpb2NVM.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: {
@@ -12,6 +12,7 @@ declare const api: {
12
12
  preLogin: typeof preLogin;
13
13
  login: typeof login;
14
14
  clientSession: typeof clientSession;
15
+ handoff: typeof handoff;
15
16
  logout: typeof logout;
16
17
  verifyEmail: typeof verifyEmail;
17
18
  registerExistingUser: typeof registerExistingUser;
@@ -36,6 +37,10 @@ declare const api: {
36
37
  totpEnrollStart: typeof totpEnrollStart;
37
38
  totpEnrollVerify: typeof totpEnrollVerify;
38
39
  totpDisable: typeof totpDisable;
40
+ phoneUnverify: typeof phoneUnverify;
41
+ backupCodesRegenerate: typeof backupCodesRegenerate;
42
+ optOut: typeof mfaOptOut;
43
+ mfaOptOut: typeof mfaOptOut;
39
44
  webauthnRegisterOptions: typeof webauthnRegisterOptions;
40
45
  webauthnRegisterVerify: typeof webauthnRegisterVerify;
41
46
  webauthnAuthOptions: typeof webauthnAuthOptions;
@@ -52,6 +57,7 @@ declare const api: {
52
57
  revokeSession: typeof revokeSecuritySession;
53
58
  revokeOtherSessions: typeof revokeOtherSecuritySessions;
54
59
  };
60
+ loginBootstrap: typeof getLoginBootstrap;
55
61
  sso: {
56
62
  getDetails: typeof getSsoDetails;
57
63
  generateUrl: typeof generateSsoUrl;
@@ -240,11 +246,14 @@ declare const Client: {
240
246
  pendingPasskeyVerify: (data: MfaPendingPasskeyVerifyRequest) => Promise<unknown>;
241
247
  getStatus: (query?: MfaStatusQuery) => Promise<unknown>;
242
248
  setPreferences: (data: MfaPreferenceRequest, query?: MfaStatusQuery) => Promise<unknown>;
243
- startPhoneVerify: (data: PhoneVerifyStartRequest) => Promise<unknown>;
244
- confirmPhoneVerify: (data: PhoneVerifyConfirmRequest) => Promise<unknown>;
249
+ startPhoneVerify: (data: PhoneVerifyStartRequest, query?: MfaStatusQuery) => Promise<unknown>;
250
+ confirmPhoneVerify: (data: PhoneVerifyConfirmRequest, query?: MfaStatusQuery) => Promise<unknown>;
245
251
  totpEnrollStart: (query?: MfaStatusQuery) => Promise<unknown>;
246
252
  totpEnrollVerify: (data: TotpEnrollVerifyRequest) => Promise<unknown>;
247
- 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>;
248
257
  webauthnRegisterOptions: (query?: MfaStatusQuery) => Promise<unknown>;
249
258
  webauthnRegisterVerify: (data: WebAuthnVerifyRequest) => Promise<unknown>;
250
259
  webauthnAuthOptions: (query?: MfaStatusQuery) => Promise<unknown>;
@@ -315,6 +324,14 @@ declare const Client: {
315
324
  accessToken: string;
316
325
  refreshToken?: string;
317
326
  }) => Promise<unknown>;
327
+ handoff: (payload: {
328
+ code: string;
329
+ hubId: number;
330
+ }) => Promise<unknown>;
331
+ getLoginBootstrap: (payload?: {
332
+ hubId?: number;
333
+ portalId?: number;
334
+ }) => Promise<unknown>;
318
335
  };
319
336
  sso: {
320
337
  getSsoDetails: () => Promise<unknown>;
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { authApi } from './chunk-NBDLNQ5Y.js';
2
- import { crmApi } from './chunk-I6DKZWSQ.js';
3
- import { navigationApi, storage } from './chunk-3LETYSI7.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-3LETYSI7.js';
5
- import './chunk-S7PCM6XY.js';
6
- import { actions7, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore } from './chunk-D6Q7QHDA.js';
7
- export { configureLogger } from './chunk-D6Q7QHDA.js';
1
+ import { authApi } from './chunk-3MOYNNS6.js';
2
+ import { crmApi } from './chunk-4IPGDENW.js';
3
+ import { navigationApi, storage } from './chunk-TWOOR6U2.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-TWOOR6U2.js';
5
+ import './chunk-HIU3HVAH.js';
6
+ import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions7, userStore, actions2, tableStore, tableUiActions, tableUiStore } from './chunk-OCAHDPIS.js';
7
+ export { configureLogger } from './chunk-OCAHDPIS.js';
8
8
  import './chunk-QPSCMK4W.js';
9
9
 
10
10
  // src/main/api/compose-api.ts
@@ -79,10 +79,10 @@ var store = {
79
79
  storage,
80
80
  tableUi: { store: tableUiStore, actions: tableUiActions },
81
81
  table: { store: tableStore, actions: actions2 },
82
- user: { store: userStore, actions: actions6 },
82
+ user: { store: userStore, actions: actions7 },
83
83
  note: { store: noteStore, actions: actions4 },
84
84
  email: { store: emailStore, actions: actions5 },
85
- sync: { store: syncStore, actions: actions7 }
85
+ sync: { store: syncStore, actions: actions8 }
86
86
  };
87
87
 
88
88
  export { DEFAULT_HUBSPOT_TIMEZONE, api, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, normalizeToTimestamp, store };
@@ -20,4 +20,10 @@ interface UploaderState {
20
20
  attachments: AttachmentData[];
21
21
  }
22
22
 
23
- export type { MultiObjectTableState as M, UploaderState as U };
23
+ interface FileState {
24
+ files: any;
25
+ id: string;
26
+ queryParams: any;
27
+ }
28
+
29
+ export type { FileState as F, MultiObjectTableState as M, UploaderState as U };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woodsportal-client-sdk",
3
- "version": "4.0.4-dev.0",
3
+ "version": "4.0.4-dev.10",
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",
@@ -45,8 +45,9 @@
45
45
  "registry": "https://registry.npmjs.org/"
46
46
  },
47
47
  "scripts": {
48
- "dev": "npm run dev:watch",
49
- "dev:watch": "node scripts/dev-watch.mjs",
48
+ "local": "node scripts/dev-watch.mjs",
49
+ "dev": "npm run local",
50
+ "dev:watch": "npm run local",
50
51
  "start": "nodemon --watch src/main --ext ts --exec tsx src/main/index.ts",
51
52
  "clean": "rimraf dist",
52
53
  "build": "npm run clean && tsup",