@burdenoff/microfe-auth 2026.718.3 → 2026.725.1

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 (79) hide show
  1. package/dist/auth/AuthRoot.d.ts +29 -0
  2. package/dist/auth/AuthRoutes.d.ts +27 -0
  3. package/dist/auth/components/AuthIcons.d.ts +16 -0
  4. package/dist/auth/components/AuthLayout.d.ts +16 -0
  5. package/dist/auth/components/CaptchaV2.d.ts +25 -0
  6. package/dist/auth/components/ConfirmActionDialog.d.ts +15 -0
  7. package/dist/auth/components/index.d.ts +3 -0
  8. package/dist/auth/components/profile/UserProfileMenu.d.ts +41 -0
  9. package/dist/auth/components/workspace/WorkspaceSelector.d.ts +49 -0
  10. package/dist/auth/constants/permissions.d.ts +29 -0
  11. package/dist/auth/constants/sessionKeys.d.ts +17 -0
  12. package/dist/auth/hooks/index.d.ts +19 -0
  13. package/dist/auth/hooks/useAccountOperations.d.ts +18 -0
  14. package/dist/auth/hooks/useActiveContextBootstrapMirror.d.ts +91 -0
  15. package/dist/auth/hooks/useApiKeyOperations.d.ts +28 -0
  16. package/dist/auth/hooks/useAppOperations.d.ts +32 -0
  17. package/dist/auth/hooks/useAuthOperations.d.ts +59 -0
  18. package/dist/auth/hooks/useAuthPermissions.d.ts +19 -0
  19. package/dist/auth/hooks/useCaptchaV3.d.ts +12 -0
  20. package/dist/auth/hooks/useContextSwitcherData.d.ts +91 -0
  21. package/dist/auth/hooks/useDelegationOperations.d.ts +38 -0
  22. package/dist/auth/hooks/useMfaOperations.d.ts +17 -0
  23. package/dist/auth/hooks/useMyWorkspaces.d.ts +47 -0
  24. package/dist/auth/hooks/useOAuthOperations.d.ts +18 -0
  25. package/dist/auth/hooks/usePasswordOperations.d.ts +12 -0
  26. package/dist/auth/hooks/useSessionOperations.d.ts +57 -0
  27. package/dist/auth/hooks/useSignupCaptcha.d.ts +22 -0
  28. package/dist/auth/hooks/useSsoOperations.d.ts +67 -0
  29. package/dist/auth/hooks/useTokenRefresh.d.ts +55 -0
  30. package/dist/auth/hooks/useUserOperations.d.ts +32 -0
  31. package/dist/auth/hooks/useWorkspaceOperations.d.ts +34 -0
  32. package/dist/auth/hooks/useWorkspaceToken.d.ts +55 -0
  33. package/dist/auth/index.d.ts +63 -0
  34. package/dist/auth/pages/AuditLogPage.d.ts +11 -0
  35. package/dist/auth/pages/EmailVerifyPage.d.ts +4 -0
  36. package/dist/auth/pages/LoginPage.d.ts +5 -0
  37. package/dist/auth/pages/MagicLinkPage.d.ts +5 -0
  38. package/dist/auth/pages/MfaSetupPage.d.ts +4 -0
  39. package/dist/auth/pages/MfaVerifyPage.d.ts +6 -0
  40. package/dist/auth/pages/OAuthCallbackPage.d.ts +6 -0
  41. package/dist/auth/pages/PasswordResetPage.d.ts +5 -0
  42. package/dist/auth/pages/ReactivatePage.d.ts +5 -0
  43. package/dist/auth/pages/RegisterPage.d.ts +4 -0
  44. package/dist/auth/pages/SSOClearPage.d.ts +21 -0
  45. package/dist/auth/pages/SSODepositPage.d.ts +23 -0
  46. package/dist/auth/pages/SSORelayCallbackPage.d.ts +7 -0
  47. package/dist/auth/pages/SSORelayPage.d.ts +17 -0
  48. package/dist/auth/pages/SecurityPage.d.ts +6 -0
  49. package/dist/auth/pages/SessionBridgePage.d.ts +13 -0
  50. package/dist/auth/pages/SessionsPage.d.ts +7 -0
  51. package/dist/auth/pages/SsoCallbackPage.d.ts +7 -0
  52. package/dist/auth/pages/SsoConfigPage.d.ts +12 -0
  53. package/dist/auth/pages/SsoLoginPage.d.ts +6 -0
  54. package/dist/auth/pages/UserDetailsPage.d.ts +10 -0
  55. package/dist/auth/pages/UserDetailsPage.js.map +1 -1
  56. package/dist/auth/pages/UserProfilePage.d.ts +4 -0
  57. package/dist/auth/pages/UsersPage.d.ts +4 -0
  58. package/dist/auth/providers/AuthProvider.d.ts +17 -0
  59. package/dist/auth/providers/CaptchaProvider.d.ts +12 -0
  60. package/dist/auth/store/authStore.d.ts +110 -0
  61. package/dist/auth/types/index.d.ts +678 -0
  62. package/dist/auth/utils/captchaConfig.d.ts +3 -0
  63. package/dist/auth/utils/formatters.d.ts +36 -0
  64. package/dist/auth/utils/gatewayBaseUrls.d.ts +5 -0
  65. package/dist/auth/utils/index.d.ts +2 -0
  66. package/dist/auth/utils/ssoOrigins.d.ts +28 -0
  67. package/dist/auth/utils/validation.d.ts +29 -0
  68. package/dist/dev/main.d.ts +1 -0
  69. package/dist/generated/global-operations.d.ts +3095 -0
  70. package/dist/generated/global-types.d.ts +23528 -0
  71. package/dist/generated/wspace-operations.d.ts +123 -0
  72. package/dist/generated/wspace-types.d.ts +57850 -0
  73. package/dist/index.d.ts +3 -0
  74. package/dist/shared/hooks/index.d.ts +6 -0
  75. package/dist/shared/index.d.ts +5 -0
  76. package/dist/shared/types/index.d.ts +108 -0
  77. package/dist/translations/en.d.ts +320 -0
  78. package/dist/utils/nativeBridge.d.ts +2 -0
  79. package/package.json +5 -3
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Shared first-party SSO origin allow-list for the cross-domain auth pages
3
+ * (SSOClearPage, SSODepositPage, SSORelayPage, SessionBridgePage).
4
+ *
5
+ * These four pages each used to hand-roll an identical copy of this domain set
6
+ * plus its matching function, and they drifted independently — BOFF-4120 was
7
+ * exactly that drift (SSOClearPage's copy was missing admin./alphaadmin., so an
8
+ * admin logout returnTo was rejected on the bridge host and stranded the
9
+ * operator on app.burdenoff.com). Keep the list + matching logic HERE only so
10
+ * a new product domain or subdomain is added in one place. BOFF-4124.
11
+ */
12
+ /**
13
+ * True when `url` is a first-party Burdenoff shell origin permitted to take
14
+ * part in the cross-domain SSO relay / clear / deposit / session-bridge flow:
15
+ * - localhost / 127.0.0.1 (any port, local dev)
16
+ * - *.local.burdenoff.com (local dev behind nginx)
17
+ * - https://{"" | app. | alphaapp. | admin. | alphaadmin. | www.}<product-domain>
18
+ * — note admin./alphaadmin. are included: the admin app shells
19
+ * (admin.burdenoff.com / alphaadmin.burdenoff.com) are first-party origins
20
+ * that relay through and return from the central bridge host.
21
+ */
22
+ export declare function isAllowedSsoOrigin(url: URL): boolean;
23
+ /**
24
+ * String-origin variant for postMessage origin checks (SessionBridgePage),
25
+ * which receives a raw origin string rather than a parsed URL. Returns false on
26
+ * an unparseable origin.
27
+ */
28
+ export declare function isAllowedSsoOriginString(origin: string): boolean;
@@ -0,0 +1,29 @@
1
+ import { PasswordStrength } from '../types';
2
+
3
+ /**
4
+ * Validate email format
5
+ */
6
+ export declare function validateEmail(email: string): boolean;
7
+ /**
8
+ * Validate password requirements
9
+ */
10
+ export declare function validatePassword(password: string): {
11
+ valid: boolean;
12
+ errors: string[];
13
+ };
14
+ /**
15
+ * Calculate password strength using Zxcvbn-like algorithm
16
+ * Returns a score from 0-4 (0 = very weak, 4 = very strong)
17
+ */
18
+ export declare function calculatePasswordStrength(password: string): PasswordStrength;
19
+ /**
20
+ * Validate MFA code format (6 digits)
21
+ */
22
+ export declare function validateMfaCode(code: string): boolean;
23
+ /**
24
+ * Validate API key name
25
+ */
26
+ export declare function validateApiKeyName(name: string): {
27
+ valid: boolean;
28
+ error?: string;
29
+ };
@@ -0,0 +1 @@
1
+