/** * Auth Domain * * Contains ONLY authentication mechanisms: * - Login, Signup, Password Management * - Token Management (JWT) * - MFA, SSO * * User entity types are in customer domain (@customer-portal/domain/customer) */ // ============================================================================ // Constants & Contract Types // ============================================================================ export { AUTH_ERROR_CODE, TOKEN_TYPE, GENDER, type AuthErrorCode, type TokenTypeValue, type GenderValue, } from "./contract.js"; export type { // Request types LoginRequest, SignupRequest, PasswordResetRequest, ResetPasswordRequest, SetPasswordRequest, ChangePasswordRequest, LinkWhmcsRequest, ValidateSignupRequest, UpdateCustomerProfileRequest, AccountStatusRequest, SsoLinkRequest, CheckPasswordNeededRequest, RefreshTokenRequest, // Token types AuthTokens, AuthSession, // Response types AuthResponse, SignupResult, PasswordChangeResult, SsoLinkResponse, CheckPasswordNeededResponse, LinkWhmcsResponse, // Error types AuthError, } from "./contract.js"; // ============================================================================ // Schemas (for validation) // ============================================================================ export { // Request schemas loginRequestSchema, signupInputSchema, signupRequestSchema, passwordResetRequestSchema, passwordResetSchema, setPasswordRequestSchema, changePasswordRequestSchema, linkWhmcsRequestSchema, validateSignupRequestSchema, updateCustomerProfileRequestSchema, updateProfileRequestSchema, updateAddressRequestSchema, accountStatusRequestSchema, ssoLinkRequestSchema, checkPasswordNeededRequestSchema, refreshTokenRequestSchema, // Token schemas authTokensSchema, authSessionSchema, // Response schemas authResponseSchema, signupResultSchema, passwordChangeResultSchema, ssoLinkResponseSchema, checkPasswordNeededResponseSchema, linkWhmcsResponseSchema, } from "./schema.js"; export { buildSignupRequest } from "./helpers.js"; // ============================================================================ // Password Utilities // ============================================================================ export { PASSWORD_REQUIREMENTS, checkPasswordStrength, getPasswordStrengthDisplay, MIGRATION_TRANSFER_ITEMS, MIGRATION_STEPS, type PasswordRequirementKey, } from "./forms.js";