59 lines
1.6 KiB
TypeScript
59 lines
1.6 KiB
TypeScript
/**
|
|
* Get Started Domain
|
|
*
|
|
* Unified "Get Started" flow for:
|
|
* - Email verification (OTP)
|
|
* - Account status detection
|
|
* - Quick eligibility check (guest)
|
|
* - Account completion (SF-only → full account)
|
|
* - "Maybe Later" flow
|
|
*/
|
|
|
|
// ============================================================================
|
|
// 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,
|
|
type QuickEligibilityRequest,
|
|
type QuickEligibilityResponse,
|
|
type CompleteAccountRequest,
|
|
type MaybeLaterRequest,
|
|
type MaybeLaterResponse,
|
|
type GetStartedSession,
|
|
type GetStartedError,
|
|
} from "./contract.js";
|
|
|
|
// ============================================================================
|
|
// Schemas (for validation)
|
|
// ============================================================================
|
|
|
|
export {
|
|
// OTP schemas
|
|
sendVerificationCodeRequestSchema,
|
|
sendVerificationCodeResponseSchema,
|
|
otpCodeSchema,
|
|
verifyCodeRequestSchema,
|
|
verifyCodeResponseSchema,
|
|
accountStatusSchema,
|
|
// Quick eligibility schemas
|
|
quickEligibilityRequestSchema,
|
|
quickEligibilityResponseSchema,
|
|
// Account completion schemas
|
|
completeAccountRequestSchema,
|
|
// Maybe later schemas
|
|
maybeLaterRequestSchema,
|
|
maybeLaterResponseSchema,
|
|
// Session schema
|
|
getStartedSessionSchema,
|
|
} from "./schema.js";
|