/** * Verify Phone with Code by User Sub DTO * * Used for phone verification with 6-digit OTP code when allowing duplicate phones. * Requires user sub to identify which user's phone to verify. * * Security: * - UUID format validated (prevents injection) * - Code format validated (6 digits) * * @example * ```typescript * POST /auth/verify-phone/verify-by-sub * { * "sub": "a21b654c-2746-4168-acee-c175083a65cd", * "code": "123456" * } * ``` */ export declare class VerifyPhoneWithCodeBySubDTO { /** * User's external identifier (sub/UUID v4) * * Validation: * - Must be a valid UUID v4 format * - Matches DB constraint: char(36) or uuid * * Sanitization: * - Trimmed and lowercased for consistency * * @example "a21b654c-2746-4168-acee-c175083a65cd" */ sub: string; /** * 6-digit verification code * * Validation: * - Must be a numeric string * - Exactly 6 digits * * @example "123456" */ code: string; /** * Challenge session ID (internal use) * Optional - used internally to link verification to specific challenge session. * Provides security by ensuring codes are only valid for the session they were created for. * * Validation: * - Must be a positive integer if provided * - Optional (for backward compatibility and direct verification flows) */ challengeSessionId?: number; } //# sourceMappingURL=verify-phone-by-sub.dto.d.ts.map