2026-01-14 13:54:01 +09:00
|
|
|
/**
|
|
|
|
|
* Get Started Domain
|
|
|
|
|
*
|
|
|
|
|
* Unified "Get Started" flow for:
|
|
|
|
|
* - Email verification (OTP)
|
|
|
|
|
* - Account status detection
|
2026-01-15 16:11:11 +09:00
|
|
|
* - Guest eligibility check (no OTP required)
|
2026-01-14 13:54:01 +09:00
|
|
|
* - Account completion (SF-only → full account)
|
2026-01-15 16:11:11 +09:00
|
|
|
* - Signup with eligibility (full flow)
|
2026-01-14 13:54:01 +09:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
|
// Constants & Contract Types
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
ACCOUNT_STATUS,
|
|
|
|
|
OTP_ERROR_CODE,
|
|
|
|
|
GET_STARTED_ERROR_CODE,
|
|
|
|
|
type AccountStatus,
|
|
|
|
|
type OtpErrorCode,
|
|
|
|
|
type GetStartedErrorCode,
|
|
|
|
|
type SendVerificationCodeRequest,
|
|
|
|
|
type SendVerificationCodeResponse,
|
|
|
|
|
type VerifyCodeRequest,
|
|
|
|
|
type VerifyCodeResponse,
|
2026-01-14 17:14:07 +09:00
|
|
|
type GuestEligibilityRequest,
|
|
|
|
|
type GuestEligibilityResponse,
|
|
|
|
|
type GuestHandoffToken,
|
2026-01-14 13:54:01 +09:00
|
|
|
type CompleteAccountRequest,
|
2026-01-15 11:28:25 +09:00
|
|
|
type SignupWithEligibilityRequest,
|
|
|
|
|
type SignupWithEligibilityResponse,
|
2026-01-20 18:53:46 +09:00
|
|
|
type MigrateWhmcsAccountRequest,
|
2026-01-14 13:54:01 +09:00
|
|
|
type GetStartedSession,
|
|
|
|
|
type GetStartedError,
|
|
|
|
|
} from "./contract.js";
|
|
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
|
// Schemas (for validation)
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
// OTP schemas
|
|
|
|
|
sendVerificationCodeRequestSchema,
|
|
|
|
|
sendVerificationCodeResponseSchema,
|
|
|
|
|
otpCodeSchema,
|
|
|
|
|
verifyCodeRequestSchema,
|
|
|
|
|
verifyCodeResponseSchema,
|
|
|
|
|
accountStatusSchema,
|
2026-01-14 17:14:07 +09:00
|
|
|
// Guest eligibility schemas (no OTP required)
|
|
|
|
|
guestEligibilityRequestSchema,
|
|
|
|
|
guestEligibilityResponseSchema,
|
|
|
|
|
guestHandoffTokenSchema,
|
2026-01-14 13:54:01 +09:00
|
|
|
// Account completion schemas
|
|
|
|
|
completeAccountRequestSchema,
|
2026-01-15 11:28:25 +09:00
|
|
|
// Signup with eligibility schemas (full inline signup)
|
|
|
|
|
signupWithEligibilityRequestSchema,
|
|
|
|
|
signupWithEligibilityResponseSchema,
|
2026-01-20 18:53:46 +09:00
|
|
|
// WHMCS migration schema (passwordless migration)
|
|
|
|
|
migrateWhmcsAccountRequestSchema,
|
2026-01-14 13:54:01 +09:00
|
|
|
// Session schema
|
|
|
|
|
getStartedSessionSchema,
|
|
|
|
|
} from "./schema.js";
|