export type TRegistrationSessionStatus = | 'announced' | 'emailValidated' | 'mobileVerified' | 'registered' | 'failed'; export interface IRegistrationSession { id: string; data: { emailAddress: string; hashedEmailToken: string; smsCodeHash?: string | null; smsvalidationCounter: number; status: TRegistrationSessionStatus; validUntil: number; createdAt: number; collectedData: { userData: { username?: string | null; connectedOrgs: string[]; email?: string | null; name?: string | null; status?: 'new' | 'active' | 'deleted' | 'suspended' | null; mobileNumber?: string | null; password?: string | null; passwordHash?: string | null; }; }; }; }